Sunday, 6 September 2009

Mount NTFS drive from boot

So, looks like you want to mount /dev/hda1 & /dev/hdb2. Edit /etc/fstab from a terminal with

Code:

gksudo gedit /etc/fstab

and add these two lines to the end of it.

Code:

/dev/hda1   /media/hda1   ntfs-3g   defaults   0   0

/dev/hdb2   /media/hdb2   ntfs-3g   defaults   0   0

Save it and close down gedit editing window. Then, install ntfs-3g driver, create those two new mount points, and mount them.

Code:

sudo apt-get update

sudo apt-get install ntfs-3g

sudo mkdir /media/hda1 /media/hdb2

sudo mount -a

df -h

Two two ntfs partitions will be mounted to /media/hda1 & /media/hdb2 from now on, every time you boot Ubuntu.

Labels: mount NTFS on linux

So, looks like you want to mount /dev/hda1 & /dev/hdb2. Edit /etc/fstab from a terminal with

Code:

gksudo gedit /etc/fstab

and add these two lines to the end of it.

Code:

/dev/hda1   /media/hda1   ntfs-3g   defaults   0   0

/dev/hdb2   /media/hdb2   ntfs-3g   defaults   0   0

Save it and close down gedit editing window. Then, install ntfs-3g driver, create those two new mount points, and mount them.

Code:

sudo apt-get update

sudo apt-get install ntfs-3g

sudo mkdir /media/hda1 /media/hdb2

sudo mount -a

df -h

Two two ntfs partitions will be mounted to /media/hda1 & /media/hdb2 from now on, every time you boot Ubuntu.

No comments:

Post a Comment