the psycho cat on an HP Mini with Ubuntu
Just Beginning
Which Ubuntu to pick?
Ubuntu inside Windows
Install Software Next Steps Beyond the Basics Playing Around Troubleshooting * Off-site link
Cheap Plugs You may also want to consider donating directly to the Ubuntu project.
|
Mounting Windows Partitions in Ubuntu
Examine the partition table Create a mount point Edit the /etc/fstab file For FAT32 (instead of NTFS) Save changes Enable read/write for NTFS
Unmount the partitionIf you already have your Windows partitions mounted (but with the wrong permissions), unmount them before beginning these instructions. For example, if your Windows partition is mounted as /media/hda1, then open up a terminal and typesudo umount /media/hda1
Examine the partition tableThe first thing we need to do is figure out where the Windows partitions are in the partition table. Paste the commandsudo fdisk -l into the terminal, and it will tell you the location and the filesystem type (FAT32 or NTFS). For example, my sudo fdisk -l looks like this:
Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System From this, I can see that my Windows partition is type NTFS and is located at /dev/hda1.
Create a mount pointThe next thing I need to do is create a mount point. This mount point may already exist as /media/hda1, but I like creating a separate directory altogether:sudo mkdir /windows
Edit the /etc/fstab fileNow, we need to edit the /etc/fstab file to make the Windows partition mount with the proper permissions (NTFS is read-only in Ubuntu). First, let's make a back-up copy of the /etc/fstab file:sudo cp /etc/fstab /etc/fstab_backup . Next, let's edit the fstab file: sudo nano /etc/fstab
This is what it might look like before we change it:
proc /proc proc defaults 0 0
/dev/hda6 / ext3 defaults,errors=remount-ro 0 1 /dev/hda5 /home ext3 defaults 0 2 /dev/hda1 /media/hda1 ntfs defaults 0 0 /dev/hda7 none swap sw 0 0 /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0 /dev/hdd /media/cdrom1 udf,iso9660 user,noauto 0 0
Note: Starting with Edgy Eft (Ubuntu 6.10), the appearance of the /etc/fstab file has changed a bit, but the principle still remains. Instead of looking like this: /dev/hda1 /media/hda1 ntfs defaults 0 0
it may look more like this: # Entry for /dev/hda1:
UUID=FC98E2C598E27E10 /windows ntfs defaults,nls=utf8,umask=007,gid=46 0 1
This is what it should look like after we change it:
proc /proc proc defaults 0 0
/dev/hda6 / ext3 defaults,errors=remount-ro 0 1 /dev/hda5 /home ext3 defaults 0 2 /dev/hda1 /windows ntfs-3g defaults,locale=en_US.UTF-8 0 0 /dev/hda7 none swap sw 0 0 /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0 /dev/hdd /media/cdrom1 udf,iso9660 user,noauto 0 0 I live in the United States, so that's my locale, but you should input the appropriate locale for your country of residence.
For FAT32 (instead of NTFS)If we also had a FAT32 partition, say at /dev/hdb1, we would unmount it and create a new mount directory for it:sudo umount /dev/hdb1 sudo mkdir /fat_files Then we would add in a line so that our final /etc/fstab would look like this:
proc /proc proc defaults 0 0
/dev/hda6 / ext3 defaults,errors=remount-ro 0 1 /dev/hda5 /home ext3 defaults 0 2 /dev/hda1 /windows ntfs nls=utf8,umask=0222 0 0 /dev/hdb1 /fat_files vfat iocharset=utf8,umask=000 0 0 /dev/hda7 none swap sw 0 0 /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0 /dev/hdd /media/cdrom1 udf,iso9660 user,noauto 0 0
Save changesWhen you're done editing the /etc/fstab file, save (Control-X), confirm (y), and exit (Enter).
Finally, we'd remount them both: sudo mount -a
If, for some reason, that doesn't work, try rebooting the computer.
|
If you have suggestions or corrections for these tutorials, please post in this Ubuntu Forums thread or leave a comment on my blog. I will not give help to people posting in the above places. If you require technical support, start a support thread on the Ubuntu Forums. That is the appropriate place to ask for help. |