I'm just setting up my desktop with a dual-boot of Windows XP (which has been the main OS for too long) and Ubuntu Intrepid Ibex. During the install I shrunk the windows partition and gave linux 50GB's or so of space. I wanted to have access to the mass of files in my windows partition and to be able to share them on the network.
Ubuntu will mount the directory when you click on it in the Places menu, but I wanted it mounted all the time. I came across a program called ntfs-config that sets up your fstab for you.
sudo apt-get install ntfs-config
This will update your fstab and mount your windows partition on boot.
By default samba won't allow you to share the files on the network unless you own them, so you need to make a modification to the fstab entry that was just created by ntfs-config:
sudo vim /etc/fstab
*look for the line with ntfs-3g
*mine looks like this: /dev/sda1 /media/windows ntfs-3g defaults,locale=en_CA.UTF-8 0 0
*before the 0 0 with no space after the UTF-8 add: ,uid=yourusername,gid=yourusername
*It should look like this after:
/dev/sda1 /media/windows ntfs-3g defaults,locale=en_CA.UTF-8,uid=michelle,gid=michelle 0 0
Save the file and exit vi
sudo umount /media/windows
sudo mount /media/windows
Now you can go to the Places menu and click on your windows drive, you should now be able to share any folder you wish by right clicking on a folder and choosing "Sharing Options".
Michelle Agnew
No comments:
Post a Comment