mounting external disk for all users

If none of the more specific forums is the right place to ask

mounting external disk for all users

Postby bbolstad » 2006-01-28 11:26

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.
bbolstad
 
Posts: 2
Joined: 2006-01-28 11:23

Postby dawgie » 2006-01-28 23:06

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
dawgie
 
Posts: 431
Joined: 2004-06-16 21:30
Location: New Hampshire USA

Postby moonlight » 2006-01-29 08:12

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
User avatar
moonlight
 
Posts: 50
Joined: 2004-09-15 18:13
Location: Belgium

Postby bbolstad » 2006-01-29 15:13

I got it to work with ;

/dev/sda1 /media/scsidisk auto rw,users,umask=0000 0 0
bbolstad
 
Posts: 2
Joined: 2006-01-28 11:23

Postby dmartinsca » 2006-01-29 18:25

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
dmartinsca
 
Posts: 30
Joined: 2006-01-08 23:15
Location: Ontario, Canada

Postby mullins » 2006-01-29 18:52

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.
mullins
 
Posts: 35
Joined: 2006-01-29 17:42
Location: Kent, England

Postby moonlight » 2006-01-29 19:40

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
User avatar
moonlight
 
Posts: 50
Joined: 2004-09-15 18:13
Location: Belgium

Postby mullins » 2006-02-02 19:49

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?
mullins
 
Posts: 35
Joined: 2006-01-29 17:42
Location: Kent, England


Return to General Questions

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable