no second media in fstab

Asked by Rocco

hi,

my desktop has 2 hard drive, the fstab see the first one, with error but the second one is not on ??

my first drive is /dev/sba
my second is /dev/sdb

I know the second one is NTFS and I need to mount it manually.

here is a copy of my fstab:

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=16be161b-d3d2-45f8-995f-f887bba0ca6f / ext3 relatime,errors=remount-ro 0 1
# /dev/sda5
UUID=e75ff0f1-af75-4fcd-876b-8941361b4992 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

Why the /dev/sdb is not nin nthe file, even if it is an NTFS ?

how can I edit the file to add it ?

Can someone help me

thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Philip Muškovac
Solved:
Last query:
Last reply:
Revision history for this message
Best Philip Muškovac (yofel) said :
#1

afaik only the drives you set for ubuntu use during intallation are set in fstab by default. You have to mount any other drives yourself. The fstab line would be like shown in # <file system> <mount point> <type> <options> <dump> <pass>:
(I assume that your ntfs drive is sdb1, you can check with 'sudo fdisk -l /dev/sdb' and I'll mount it in /mnt - you can specify any other location you want as long it exists)
/dev/sdb1 /mnt ntfs-3g relatime 0 0

note: ntfs-3g is the recommended ntfs driver and can be installed from the repositories (it should be installed afaik).

Revision history for this message
Rocco (racicot-sylvain) said :
#2

I add the following line in fstab:

/dev/sdb1 /mnt ntfs-3g relatime 0 0

and did not nwork

I tried

/dev/sdb1 media ntfs-3g relatime 0 0

and not working either

any ideas ?

Revision history for this message
Rocco (racicot-sylvain) said :
#3

to nall:

I add the following line i the fstab file:

UUID=xxxxxxx /media ntfs defaults,umask=007,gid=46 0 1

and it is working

did not worked with ntfs-3g ?!

what is the difference with: ntfs-3g relatime 0 0 ?

Revision history for this message
Rocco (racicot-sylvain) said :
#4

this line worked:

UUID=xxxxxxx /media ntfs defaults,umask=007,gid=46 0 1

Revision history for this message
Rocco (racicot-sylvain) said :
#5

Thanks Philip Muskovac, that solved my question.