Thursday, September 4, 2008

How to mount a HDD partition in ubuntu

It's simple !

First of all, you have to create a mount point. A suitable place already is given: inside root, there is a directory named mnt. Inside mnt, you can create am empty directory where the HDD FAT/FAT32 partition will be mapped.

Create a mount point:

sudo mkdir /mnt/F

Now the next task is to find out the partition that we want to be mounted.

See the HDD partitions:

sudo fdisk -l

After this command, you'll see a list of partitions (both physical and logical). select the desired one for mounting. For example, you want to mount /dev/sda9 . So the command is:

sudo mount /dev/sda9 /mnt/F
But if the partition is of NTFS type; then use this command instead:
sudo mount /dev/sda9 /mnt/F -t ntfs -o nls=utf8,umask=0222
Done! now browse to /mnt/F and you'll get the HDD contents.

No comments: