February 3, 2010

Mounting Windows Drives In Ubuntu 9.10

Generally, Windows partitions get mounted automatically. But, if any of the partitions don't, do the following:

1. In the terminal, type,

varsha@varsha-laptop:~$ mount /media/disk-2

Here, disk-2 (for instance) is the disk that fails to mount. It may be different in your case.

If the drive fails to be recognized, try the following.

2. Open /etc/fstab to see if the particular partition is listed there.

varsha@varsha-laptop:~$ sudo gedit /etc/fstab

If not, then try one of the following:

i) Open the terminal and type,

varsha@varsha-laptop:~$ sudo mount -a

ii) If the above command doesn't work, type,

varsha@varsha-laptop:~$ mkdir /mnt/disk-2

Then try mounting,

varsha@varsha-laptop:~$ sudo mount /dev/sda5 -t ntfs /mnt/disk-2

sda5 is the concerned partition on the HDD, it may be different in your case.

To auto-mount, add it to /etc/fstab.

/dev/sda5 /mnt/disk-2 ntfs user,uid= 0 0

[Source: http://ubuntuforums.org/archive/index.php/t-933441.html]