LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-16-2004, 07:33 PM   #1
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 97
Having problems mounting a drive (with appropriate permissions...)


i've just installed the HDD from my old PC into my Linux machine, with the idea of using it for backing up. The drive is detected as /dev/hdd, and I have managed to re-partition and format it (msdos file system). I would appreciate it if someone could help with a couple of difficulties, please:

1) I would like it to mount on startup, and I understand that this is done in /etc/fstab (in SuSE 9.1). I've tried editing this file, but I'm not sure I've done it correctly, as I don't understand what I should put in the fourth column in the listing below (I put users, thinking it may have something to do in part with who/which groups have access to it):

/dev/hdc2 / reiserfs acl,user_xattr 1 1
/dev/hdc1 swap swap pri=42 0 0
/dev/hdd /media/hdd msdos users 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
usbf /proc/bus/usb usbfs noauto 0 0
sysfs /sys sysfs noauto 0 0
/dev/sda4 /media/zip auto noauto,user 0 0
/dev/cdrom /media/cdrom subfs fs=cdfss,ro,procuid,nosuidnodev,exec,
iocharset=utf8 0 0
/dev/fd0 /media/floppy subfs fs=floppyfss,procuid,nodev,nosuid,sync 0 0
Sorry the columns aren't very clear. The board is ignoring the extra spaces I inserted

2) Linux won't allow me to give group and others write permissions for the mounted drive. ls -l gives the following line for the directory I mounted it in:

drwxr-xr-x 2 root root 16384 Jan 1 1970 hdd
^^^^^^^ these are the permissions I'm trying to change
The listing for /dev/hdd is:

brw-rw---- 1 root disk 22, 64 Apr 6 2004 hdd

The system appears to have set a ceiling on the permissions, as I can (as root) remove permissions but I cannot add write permission for group and others. The other mounts in /media/ (CD ROM, floppy and the writable partition of the Zip-drive) all have full permissions.

Is the bizarre date shown above (Jan 1 1970) anything to do with the problem? The system date is correct on my PC, and while the PC the drive came from is fairly old, it certainly isn't that old!

Thanks,

Rob

Last edited by Robhogg; 10-16-2004 at 07:36 PM.
 
Old 10-16-2004, 07:46 PM   #2
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
users,umask=0000
for a certain group to only access the drive
umask=0007,gid=xxx
where xxx is the group id from /etc/group
 
Old 10-17-2004, 11:42 AM   #3
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Original Poster
Rep: Reputation: 97
Thanks! I added umask=0000 to the line in fstab, and I now have full access to the disk.

Rob
 
Old 11-01-2004, 02:14 PM   #4
0pal_t0ad
Member
 
Registered: Feb 2004
Location: Southampton, England
Distribution: Laptop:Gentoo-i686-2.6.9-r9 Desktop:Slackware10 2.4.26
Posts: 298

Rep: Reputation: 30
i'm having the same problem as had, where exactly did you add umask=0000?
this is what my fstab looks like....

/dev/hda3 swap swap defaults 0 0
/dev/hda4 / reiserfs defaults 1 1
/dev/hda2 /WinD vfat defaults 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0


i'm running slackware 10. on my gentoo box i added my normal user to the 'wheel' group and that sorted the problem out, but doesn't seem to do anything on slackware.

any ideas??
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
WOW mounting problems with permissions betomurcia Linux - Newbie 3 10-23-2005 09:07 PM
Mounting Problems - Permissions kosh42 Linux - Newbie 3 05-22-2004 02:12 AM
slackware 9.1 mounting problems (cd drive, cd writer drive, win partition (ntfs)) mr.gizm0 Slackware 8 05-11-2004 06:23 PM
mounting local hard drive, permissions plasticus Linux - Hardware 5 02-15-2004 03:14 PM
help im having problems with permissions on my fat32 drive!!! Devboy Linux - Newbie 10 07-29-2003 06:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration