Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

mounting external disk for all users

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
bbolstad
Posts: 2
Joined: 2006-01-28 11:23

mounting external disk for all users

#1 Post by bbolstad »

I have a external firewire disk with ntfs which i wish to mount read for all users, but I can not figure how to get it to work. Right now I can only get root to access it.

User avatar
dawgie
Posts: 430
Joined: 2004-06-16 21:30
Location: New Hampshire USA

#2 Post by dawgie »

Post your /etc/fstab
You probably need to use "umask".
eg:
I have a vfat partition listed in my fstab file. The entry looks like this:
/dev/hda10 /mnt/pub vfat defaults,users,umask=000 0 0

User avatar
moonlight
Posts: 49
Joined: 2004-09-15 18:13
Location: Belgium
Contact:

#3 Post by moonlight »

Indeed, find below a snapshot of my external usb harddisk with 3 ntfs partions :

Code: Select all

/dev/sdb1       /mnt/usbdiskp1  ntfs    noauto,ro,umask=000     0       2
/dev/sdb2       /mnt/usbdiskp2  ntfs    noauto,ro,umask=000     0       2
/dev/sdb3       /mnt/usbdiskp3  ntfs    noauto,ro,umask=000     0       2
noauto : Can only be mounted explicitly
ro : Mount the file system read-only
umask=value
Set the umask (the bitmask of the permissions that are not
present). The default is the umask of the current process. The
value is given in octal.

By the way, all the necessary information about how to configure your fstab can be found via the manpages of fstab and mount.

Cheers, Moonlight

bbolstad
Posts: 2
Joined: 2006-01-28 11:23

#4 Post by bbolstad »

I got it to work with ;

/dev/sda1 /media/scsidisk auto rw,users,umask=0000 0 0

dmartinsca
Posts: 30
Joined: 2006-01-08 23:15
Location: Ontario, Canada

#5 Post by dmartinsca »

whoa, if it's a ntfs disk, don't mount it read/write. Linux doesn't write properly to NTFS at this point. You will end up with a corrupt filesystem

mullins
Posts: 34
Joined: 2006-01-29 17:42
Location: Kent, England

#6 Post by mullins »

I'm having the same problem! :evil:

"winxp" mounts fine but "josie" doesn't and needs to be mounted via root

/dev/hda1 /mnt/winxp ntfs ro,umask=0222 0 0
/dev/sda1 /mnt/josie ntfs ro,umask=0222 0 0


Anyone know how to have "josie" mount automatically?
I assume it's not working because "josie" is sda1 which is an external USB hdd.

User avatar
moonlight
Posts: 49
Joined: 2004-09-15 18:13
Location: Belgium
Contact:

#7 Post by moonlight »

Hi,

I am also curious to know if there is a gentle solution for your problem with external usb harddisks. Currently I am always first checking the output of /var/log/syslog when plugging in an external harddisk or usb key, in order to know exactly which file system is selected (sda, sdb, ...)

Cheers, Moonlight

mullins
Posts: 34
Joined: 2006-01-29 17:42
Location: Kent, England

#8 Post by mullins »

mullins wrote:I'm having the same problem! :evil:

"winxp" mounts fine but "josie" doesn't and needs to be mounted via root

/dev/hda1 /mnt/winxp ntfs ro,umask=0222 0 0
/dev/sda1 /mnt/josie ntfs ro,umask=0222 0 0


Anyone know how to have "josie" mount automatically?
I assume it's not working because "josie" is sda1 which is an external USB hdd.
Bump, can anyone help?

Post Reply