How to add a new partition to fstab?

Asked by purnateja

Hi,
I made a new partition on my hdd of 50gb and ntfs. though Ubuntu detects it, it doesn't auto mount. every time I've to manually mount it.
I checked fstab but that partition is not being listed. how do i add this new partition to fstab so that it auto mounts at every boot?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Bhavani Shankar
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

Please make a mount point directory:

Open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo mkdir /media/hd50ntfs

give your user password when requested, you don't see nothing when you type it, then press enter.

to get all permission to the mount point of partition type:

sudo chmod 777 /media/hd50ntfs

Then edit the /etc/fstab, type:

sudo gedit /etc/fstab

and add a row like this for example i have a row my default lang is italian: locale=it_IT.UTF-8

/dev/XXXX /media/hd50ntfs ntfs-3g defaults,locale=it_IT.UTF-8 0 0

Please replace the XXXX with your NTFS partition name (hda1,hda2 or sda1 ... )
check your hard disk partitions with this command:

sudo fdisk -l

Hope this helps

Revision history for this message
purnateja (purnateja-gmail) said :
#2

hi,
In my fstab, the partitions have a UUID and looks like this

UUID=6E0009E70009B6DD /media/sdb1 ntfs rw,defaults,umask=007,gid=46 0 1
# /dev/sdb6

now how do i get this UUID for this partition so that i can ad it to the fstab?

Revision history for this message
Best Bhavani Shankar (bhavi) said :
#3

Hello:

If you want to add a new partition in /etc/fstab under file system you no longer have /dev/xxx but an UUID (Unique unit ID).
To find out the UUID of your partition just use the following command:

sudo vol_id -u device

Regards

Bhavani Shankar.

Revision history for this message
purnateja (purnateja-gmail) said :
#4

Thanks Bhavani Shankar, that solved my question.