Cannot get second hard drive to mount automatically.

Asked by rwakefie

Hi,
I just installed Gusty and tried to add a second hard drive; I got the second hard drive to add and I formatted it in EXT3. my problem is that it does not mount automatically, when I go to Places > Computer and double click on the drive it ask me for the privileged password, after I put that in then it mounts.

The drive in question is /dev/sda
Here is a fdisk -l

Disk /dev/sda: 60.0 GB, 60060155904 bytes
255 heads, 63 sectors/track, 7301 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x07eca173

   Device Boot Start End Blocks Id System
/dev/sda1 1 7302 58649600 7 HPFS/NTFS

Disk /dev/sdb: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0c840c83

   Device Boot Start End Blocks Id System
/dev/sdb1 * 1 9327 74919096 83 Linux
/dev/sdb2 9328 9729 3229065 5 Extended
/dev/sdb5 9328 9729 3229033+ 82 Linux swap / Solaris

so I also tried adding a line to my fstab to get it to mount automatically.
here is what that looks like.

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=16e3ff34-4a3c-41b9-82c5-303f5878f7e7 / ext3 defaults,errors=remount-ro 0 1
# /dev/sda5
#UUID=8830c8de-1439-49da-9942-28dd66db8b59 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec 0 0
#/dev/sda1 /media/60GB ext3 rw,user,auto,dev,sync,exec 0 2
/dev/sda1 /media/60GB ext3 rw,user,auto,umask=0000 0 2

It seems to take the umask=000 or umask=0000 when I specify it my its self, but not with other options.

Please let me know if you need anything else.
Thanks in advance

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Adam Caldwell
Solved:
Last query:
Last reply:
Revision history for this message
Grazieno Pellegrino (grazieno) said :
#1

Hi rwakefie,

I think that your partition is NTFS, look:

/dev/sda1 1 7302 58649600 7 HPFS/NTFS

Please, try '/dev/sda1 /media/60GB ntfs defaults,umask=0000 0 0'

I read in the mount manual, in ntfs section:

uid=value, gid=value and umask=value
              Set the file permission on the filesystem. The umask value is
              given in octal. By default, the files are owned by root and not
              readable by somebody else.

Because this, the root's password is been asked!

Cheers,

Grazieno

Revision history for this message
rwakefie (rwake24) said :
#2

Now I am getting Cannot mount volume You are not privileged to mount the volume '60GB' I think the problem is that I need to specify the UID.
Can I specify the UID in the fstab and if I can what would that look like?

Thanks

Revision history for this message
Best Adam Caldwell (adam-caldwell-deactivatedaccount) said :
#3

Try

/dev/sda1 /media/60GB ntfs defaults,umask=007,gid=46

Thats how ubuntu set up my ntfs drive when i installed, and its worked fine for me.

Revision history for this message
rwakefie (rwake24) said :
#4

Thanks Adam Caldwell, that solved my question.