How to access a new linux partition

For example you have just installing a new partition using gparted, now you could do these steps to access your new partition:

$ cd /
$ sudo mkdir /data
$ sudo mount -t ext3 /dev/hda4 /data

Now you already access the new partition. If you want to check whether your new partition already mounted, use this command:

$ df -h

if you don’t want to access your partition each time your computer restarting, execute:

$ sudo cp /etc/fstab /etc/fstab.backup
$ sudo nano /etc/fstab

And add this new line on the fstab.

/dev/hda4 /data ext3 nodev,nosuid 0 2

Save the file and iexit.

What if it doesn’t work?

If anything goes wrong, you could use livecd linux and copy fstab.backup that you have backuped by executing

$ sudo mv /etc/fstab.backup /etc/fstab

Tags: , , ,

Google
 

Leave a Reply

55 views