Saturday, May 06, 2006

Mounting Partitions in Linux

In Ubuntu I always mount my windows partitions. I use to mount sda1 and sda2. Now the thing was these were primary partitions. sda3 was extended. sda4 (ext3) was primary again. Since this is where my Ubuntu was installed. Now to mount sda1 and sda2

sudo mount /dev/sda1 /media/c-drive
sudo mount /dev/sda2 /media/d-drive

These commands works

But we cannot mount an extended partition so what we have to do is mount the logical partition in this. which is sda5( it is purely logical)

sudo mount -t vfat /dev/sda5 /media/e-drive

If you have more logical partitions in this then go on with sda6, sda7 and so on and so forth.

No comments: