LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-25-2005, 12:16 PM   #1
Jakkyl
LQ Newbie
 
Registered: Oct 2003
Location: Raleigh, NC
Distribution: Slackware 10.2
Posts: 21

Rep: Reputation: 15
mounting problems


Ok, I've searched and read through it all.
I'm having trouble getting a user (non root) to mount my cd/dvd drives. I've put the user flag in fstab, but still nothing....

Code:
/dev/hdc2        /                ext2        defaults         1   1
/dev/hdc1        /store/c         vfat        defaults         1   0
/dev/hdd1        /store/f         ntfs        ro               1   0
/dev/hdd5        /store/g         ntfs        ro               1   0
/dev/hdd6        /store/h         vfat        defaults         1   0
/dev/cdrom       /mnt/cdrom       iso9660     noauto,user,ro   0   0
/dev/dvd	 /mnt/dvd	  iso9660     noauto,user,ro   0   0
/dev/fd0         /mnt/floppy      auto        noauto,user      0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
When I try it as a user, it gives my the "you must be root to mount" message.
It mounts fine under root.
 
Old 11-25-2005, 12:44 PM   #2
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
this is weird indeed ... you must be missing something. As for the cdrom, dvd and floppy should be user-mountable.

Just a thought: check out the mount points permissions

A little recommendation of mine: change the dvd's filesystem type to auto, most dvds are burnt with UDF filesystem
 
Old 11-25-2005, 01:03 PM   #3
Jakkyl
LQ Newbie
 
Registered: Oct 2003
Location: Raleigh, NC
Distribution: Slackware 10.2
Posts: 21

Original Poster
Rep: Reputation: 15
changed dvd type to auto

Code:
total 14
drwxrwxrwx  2 root root 4096 2002-03-16 02:34 cdrom
dr-xr-xr-x  1 root root 2048 1969-12-31 19:00 dvd
drwxr-xr-x  2 root root 4096 2002-03-16 02:34 floppy
drwxr-xr-x  2 root root 4096 2002-03-16 02:34 hd
 
Old 11-25-2005, 01:03 PM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,325

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
How do you try to mount cdrom, with mount /mnt/cdrom ?
 
Old 11-25-2005, 01:04 PM   #5
Jakkyl
LQ Newbie
 
Registered: Oct 2003
Location: Raleigh, NC
Distribution: Slackware 10.2
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by keefaz
How do you try to mount cdrom, with mount /mnt/cdrom ?
yes. I've also tried mount /dev/cdrom with the same result

Last edited by Jakkyl; 11-25-2005 at 01:06 PM.
 
Old 11-25-2005, 01:12 PM   #6
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,325

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
I notice the modification time for your /mnt/dvd is 1969, weird...

Could you post the output with :
Code:
ls -l /dev/cdrom
id
And the output of ls -l /dev/[the device that cdrom points to if any]
 
Old 11-25-2005, 01:17 PM   #7
Jakkyl
LQ Newbie
 
Registered: Oct 2003
Location: Raleigh, NC
Distribution: Slackware 10.2
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by keefaz
I notice the modification time for your /mnt/dvd is 1969, weird...

Could you post the output with :
Code:
ls -l /dev/cdrom
id
And the output of ls -l /dev/[the device that cdrom points to if any]
Code:
ls -l /dev/cdrom
  lrwxrwxrwx  1 root root 8 2005-11-17 08:04 /dev/cdrom -> /dev/hda
id
 uid=0(root) gid=0(root) 
 groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy)
ls -l /dev/hda
  brwxrwxrwx  1 root disk 3, 0 2002-06-09 15:27 /dev/hda
 
Old 11-25-2005, 01:20 PM   #8
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,325

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
The permissions are not correct for /dev/hda, try
Code:
chmod 660 /dev/hda
and add your user in the disk group in /etc/group
 
Old 11-25-2005, 01:25 PM   #9
Jakkyl
LQ Newbie
 
Registered: Oct 2003
Location: Raleigh, NC
Distribution: Slackware 10.2
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by keefaz
The permissions are not correct for /dev/hda, try
Code:
chmod 660 /dev/hda
and add your user in the disk group in /etc/group
I did both of those, still the same..
Code:
brw-rw----  1 root disk 3, 0 2002-06-09 15:27 /dev/hda
disk::6:root,adm,jakkyl

Last edited by Jakkyl; 11-25-2005 at 01:28 PM.
 
Old 11-25-2005, 01:30 PM   #10
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,325

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Did you logout and login to take the group change in account ?
 
Old 11-25-2005, 01:32 PM   #11
Jakkyl
LQ Newbie
 
Registered: Oct 2003
Location: Raleigh, NC
Distribution: Slackware 10.2
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by keefaz
Did you logout and login to take the group change in account ?
I hadn't, but I just did and same thing...
Code:
uid=1000(jakkyl) gid=100(users) groups=100(users),6(disk),11(floppy),17(audio),18(video),19(cdrom)

Last edited by Jakkyl; 11-25-2005 at 01:34 PM.
 
Old 11-25-2005, 01:32 PM   #12
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
Quote:
Originally posted by keefaz
The permissions are not correct for /dev/hda...
how those permissions were changed?
 
Old 11-25-2005, 01:34 PM   #13
Jakkyl
LQ Newbie
 
Registered: Oct 2003
Location: Raleigh, NC
Distribution: Slackware 10.2
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by raska
how those permissions were changed?
Code:
chmod 660 /dev/hda
chmod 660 /dev/hdb
 
Old 11-25-2005, 01:36 PM   #14
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31
Quote:
Originally posted by Jakkyl
Code:
chmod 660 /dev/hda
chmod 660 /dev/hdb
ejem .... I meant ... how come they were incorrect in the first case? All those devices have 660 since installation, don't they?
 
Old 11-25-2005, 01:38 PM   #15
Jakkyl
LQ Newbie
 
Registered: Oct 2003
Location: Raleigh, NC
Distribution: Slackware 10.2
Posts: 21

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by raska
ejem .... I meant ... how come they were incorrect in the first case? All those devices have 660 since installation, don't they?
lol I was messing with them trying to get it to work, then I broke down and posted here
 
  


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
Mounting problems NRHBasher Linux - Hardware 12 04-13-2004 02:20 PM
Mounting Problems broxys Linux - Newbie 4 07-10-2003 12:33 PM
mounting problems im1crazyassmofo Linux - General 5 03-25-2003 02:41 PM
Mounting problems tsitras Linux - Newbie 3 03-23-2003 03:40 PM
Mounting Problems! Chalky723 Linux - Newbie 4 10-27-2001 10:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:59 AM.

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