Kevin Hatfield's Blog

Kevin's blurry train of thought……

Archive for the ‘Funny Pictures’ Category

Read and write filesystems (ext, xfs, jfs,zfs) under Windows!

Monday, March 2nd, 2009

The Idea:
Windows XP install a VMware workstation, make a new Ubuntu virtual machine with NAT networking, install Ubuntu onto the virtual machine, stop it, go to the virtual machine’s settings, connect your HDDs which contains Linux-like partitions and You want to use them to Your virtual machine. Then boot it up, locate the drives, than put them into the fstab. After that setup a SAMBA server, and share your drives. Now you can discover your drives via windows networks.

What you need:
- Microsoft Windows XP SP2
- VMware Workstation (You can download and use it for 30 days for free. When You finetuned your virtual machine You can change workstation to player which is full free.)
- Ubuntu 7.04
- Linux like partitions connected
- Time

Tested with:
- Windows XP Professional SP2 (With fresh drivers.)
- Ubuntu Feisty Fawn 7.04 Desktop
- VMware workstation 6
- My config is: Intel Hyperthread 3.0ghz +, 768GB RAM, WD HDD with XFS partitions

Howto:
1. Boot up Your Windows. Be sure, your Linux HDDs are connected. Check in Device Manager. The HDDs must appear there. (Not the partitions.)

2. Download VMware workstation, get a registration key, and install it.

3. Create a new virtual machine for Ubuntu or 2.6 Linux OS. I recommend 6-8GB virtual drive, half of your system RAM, and NAT networking.

4. Insert Your Ubuntu CD, and start the virtual machine. Install a normal Ubuntu system.

5. Shutdown Your installed virtual machine, open its settings, add your HDDs to the virtual machine. Then start it again.

Be careful! After the previous step your partitions are online, and accessible, writable etc… So look after your important files!

6. Locate the names of your partitions device name. (Tip: You can find it at System->Settings->Hardware information find your HDDs with them volumes, than click on Advanced. There you can see the device name.)

7. Insert your partitions into fstab:
You must know the filesystem’s name. (You can get this information from Hardwareinformation too.)
Open a new folder in /media as a mounting point for the partition and set its permissions.
Open a terminal:
Code:
su
mkdir /media/*mountpoint
chmod 777 /media/*mountpoint

Replace *mountpoint with the directory name what you want. (But I recommend the device name. For example: hdb1, hdb2, hdc1 etc…)
Now open the fstab for editing.
Code:
gedit /etc/fstab
Open a new line, and insert your partitions data like that:
Code:
*devicename *mountingpoint *filesystem defaults 0 0
(* You must replace with the correct data.)
For example:
Code:
/dev/hdb1 /media/hdb1 xfs defaults 0 0
Save it, than reboot, and check how is it works.

8. Install, and configure Samba. When you finished installion, and added yourself to the server, open System->Administration->Shared folders Set the workgroup, and check in “The computer is a WINS server.”

9. Now You can share your partitions. You can permit write permissions if you want.

10. Minimize the virtual machine’s resurces. Decrease the shared RAM. Exactly I didn’t finish that point. You can dull the system. I think you can stop gdm and other unnecessary services.

11. I recommend a windows reboot, than start the linux virtual machine.

Now you can discover your partitions in the windows networks.

Originally Posted: Ubuntu-Unleashed

OpenSolaris nge0 issue? Solved!!!

Friday, January 16th, 2009

Ok… So I have to post my experience with OpenSolaris thus far and not being able to access the internet on my HP desktop.

Weirdest thing… It would find the interface but couldn’t pull DHCP.

I can’t tell you how many hours I spent trying to make this NVIDIA nForce Networking Controller work until I found this. I have to applaud this guy ‘stephenb’.

Very last message states:

I did not need to go that far, though. He said nge driver was fixed in the newer release and I installed OpenSolaris over my Solaris express.
it still did not work right away, but this got it working:


svcadm disable nwam
scb@immanuel:~# ifconfig nge0
nge0: flags=201004843 mtu 1500 index 2
inet 0.0.0.0 netmask ff000000
ether 5:3c:db:21:19:0
scb@immanuel:~$ cat /etc/dhcp.nge0
cat: /etc/dhcp.nge0: No such file or directory
scb@immanuel:~$ cat /etc/nodename
immanuel
scb@immanuel:~$ ls /etc/host*
/etc/hosts // there is no /etc/hostname.nge0
scb@immanuel:~# touch /etc/dhcp.nge0
scb@immanuel:~# touch /etc/hostname.nge0
scb@immanuel:~# ifconfig nge0 dhcp start
ifconfig: nge0: wait timed out, operation still pending...
scb@immanuel:~# ifconfig nge0 ether 0:19:21:db:3c:5 // reversing the ether address
scb@immanuel:~# ifconfig nge0
nge0: flags=201004843 mtu 1500 index 2
inet 0.0.0.0 netmask ff000000
ether 0:19:21:db:3c:5
scb@immanuel:~# ifconfig nge0 dhcp start
scb@immanuel:~# netstat -rn
svcadm enable nwam

SWEET! How the hell switching the MAC Address makes a difference…I have no idea… I’ve just added it to the startup script now.

Thanks a ton! Hope this helps someone else who may be scratching their head on this issue.

Check out the full thread over at the OpenSolaris Forums

And we wonder…

Wednesday, October 8th, 2008

We really wonder why foreigners think we are idiots…