Auto-Mount and Permissions for Disks Problem

Asked by Kyle Brady

I'm having problems with auto-mounting my external hard-drive, as well as it's permissions. It used to work perfectly, and then all of a sudden it stopped working.

The external is /dev/sdb1, and I've posted the contents of /etc/fstab below

Thanks in advance

[file]
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda3
UUID=774120ee-c6e9-4598-99b2-c75396bb5099 / ext3 defaults,errors=remount-ro 0 1
# /dev/sda5
UUID=73a12b4f-6977-4135-b8e4-4df0b692bc3f none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0

/dev/sda1 /media/sda1 vfat iocharset=utf8,umask=000 0 0
/dev/sdb1 /media/sdb1 vfat iocharset=utf8,umask=000 0 0
[/file]

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Hanusz leszek
Solved:
Last query:
Last reply:
Revision history for this message
Benoit Malet (benoit-malet) said :
#1

Hello !

Can you try to replace the line

/dev/sdb1 /media/sdb1 vfat iocharset=utf8,umask=000 0 0

by this

/dev/sdb1 /media/sdb1 auto defaults,iocharset=utf8,umask=000 0 0

?

Regards,
Benoît

Revision history for this message
Kyle Brady (brady-k) said :
#2

Sure, but before I do... will this also solve the fact that I can't access the drive, even as root/sudo? I don't think I made that clear in my first post.

Thanks

Revision history for this message
Benoit Malet (benoit-malet) said :
#3

Hello !

In fact that depends on the cause of the problem ...

Regards,
Benoît

Revision history for this message
Kyle Brady (brady-k) said :
#4

Well, not only did it not change the drive permissions, it also did not automount.

Revision history for this message
Benoit Malet (benoit-malet) said :
#5

Mmh ... Then I missed something ... Apologies ...

Does it usually automount ? Or is it random (sometimes it works and sometimes not) ? Or maybe never ?

Can you issue the command 'ls -l /media' in a terminal ?

Regards,
Benoît

Revision history for this message
Kyle Brady (brady-k) said :
#6

As I said, it used to work, and now it doesn't.

The output of that command:
[terminal]
total 16
lrwxrwxrwx 1 root root 6 2007-04-25 16:56 cdrom -> cdrom0
drwxr-xr-x 2 root root 4096 2007-04-25 16:56 cdrom0
drwxrwxrwx 13 root root 8192 1969-12-31 16:00 sda1
drwxr-xr-x 2 root root 4096 2007-05-08 01:08 sdb1
[/terminal]

Thanks

Revision history for this message
Kyle Brady (brady-k) said :
#7

So...any ideas?

Thanks

Revision history for this message
Hanusz leszek (leszek-skynet) said :
#8

Hello,

What happen when you type "sudo mount /dev/sdb1" in a terminal when the hard-disk is connected ?

Revision history for this message
Kyle Brady (brady-k) said :
#9

Well, nothing.

And the drive isn't even appearing on the "Computer" display as
unmounted...it's simply not there.

Thanks
--Kyle

Revision history for this message
Hanusz leszek (leszek-skynet) said :
#10

In fact you should check if after you launched the command I sent you, you can access your files on /media/sdb1
can you see your files if you type
ls /media/sdb1/*
in a terminal ?

Revision history for this message
Kyle Brady (brady-k) said :
#11

No, I don't have access ./sdb at all....

Revision history for this message
Hanusz leszek (leszek-skynet) said :
#12

hmm I'm sorry but maybe there is a misunderstanding.

please paste those 2 lines in a terminal and paste the result here in a comment:
sudo mount /dev/sdb1
ls /media/sdb1/*

The reason I am asking this is because if the mount command worked (you said nothing happened) then you should be able to see your files.
And if you cannot see your files, you probably had an error during the mount command.

Revision history for this message
Kyle Brady (brady-k) said :
#13

Oh, wow. Now it magically works? Uh ok. Hahah

I didn't get an print out from "sudo mount /dev/sdb1" but then it printed
out the contents on the ls, as expected. Weird.

Hopefully this works every time I boot now.

I'll be in touch...

Thanks man
--Kyle

Revision history for this message
Best Hanusz leszek (leszek-skynet) said :
#14

It won't work at boot.

Maybe your user don't have enough privileges to automount.

go to System->Administration->User and groups
click on your user then on properties
go to the "User Privileges" tab
Be sure that the "Access external storage devices automatically" option is checked

Revision history for this message
Kyle Brady (brady-k) said :
#15

Thanks again

Revision history for this message
Kyle Brady (brady-k) said :
#16

Yeah, it's checked.

Thanks though, it works. I appreciate the help