LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 07-30-2004, 08:07 AM   #1
mm3000
Member
 
Registered: Jul 2004
Location: Victoria, OZ
Distribution: Slackware x64_Current
Posts: 82

Rep: Reputation: 15
mounting error


When trying to mount my cdrom I get this message.
"mount /mnt/cdrom 2>&1" reported
mount: wrong fs type, bad option,bad superblock on /dev/hdb or to many mounted file systems.
here is my cdrom entry
/dev/hdb /mnt/cdrom iso9660 noauto,user,ro,unhide 0 0

any ideas would be great.
Cheers
 
Old 07-30-2004, 08:17 AM   #2
AhYup
Member
 
Registered: Mar 2004
Distribution: Suse
Posts: 85

Rep: Reputation: 15
I just went over this with somebody else. Probably you are trying to mount a disk with UDF fs while you only have it configured to read iso9660. Try autofs or subfs in the fstab.

example:

Fstab
/dev/cdrom /mnt/cdrom subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0

mtab
/dev/hdb/ /mnt/cdrom subfs ro,nosuid,nodev,fs=cdfss,procuid,iocharset=utf8 0 0
 
Old 07-30-2004, 08:22 AM   #3
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Do you need an entry in /etc/fstab? If I become root I have no trouble mounting CDs with
mount /dev/hdc /home/andy/tmp
That's if the CD's OK. If it's fubar then I get an error message, obviously.
 
Old 07-30-2004, 08:42 AM   #4
mm3000
Member
 
Registered: Jul 2004
Location: Victoria, OZ
Distribution: Slackware x64_Current
Posts: 82

Original Poster
Rep: Reputation: 15
Some extra info. my drive is a dvd rom drive. So it mounts dvd fine but not cdroms. would this from help
fstab
/dev/cdrom /mnt/cdrom subfs fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0

mtab
/dev/hdb/ /mnt/cdrom subfs ro,nosuid,nodev,fs=cdfss,procuid,iocharset=utf8 0 0

cheers
 
Old 07-30-2004, 09:20 AM   #5
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
Why don't you just do in fstab :
/dev/hdb /mnt/cdrom iso9660,udf noauto,user,ro,unhide 0 0

also what these commands report ?
cat /proc/ide/hdb/model
cat /proc/ide/hdb/media
ls -l /dev/cdrom
 
Old 07-30-2004, 09:44 AM   #6
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
You could read throug this thread:
http://www.linuxquestions.org/questi...98#post1077998

This was just today...

an entry like this should do the trick for every filesystem recognized by your kernel:

/dev/hdb /mnt/cdrom auto noauto,user,ro,unhide 0 0

Now - AhYup - as far as I know - autofs is something one needs to set up to be able to use it.
If there are problems, its best to stay simple until they are solved!?

The kernel has to be compiled with support for it and a user-space program has to be installed and configured for this to work - correct me if I'm wrong!

I did not really bother with installing/configuring it, because using Gnome it is just as easy to click some icon to mount/unmount and eject some media - but it could be cool: like in windows -you put the disc in and it is mounted automatically and unmounted after a time specified by config.
 
Old 07-30-2004, 10:29 AM   #7
AhYup
Member
 
Registered: Mar 2004
Distribution: Suse
Posts: 85

Rep: Reputation: 15
Actually you may be right. I thought that it was a base system default now but it may just be that some distros, like SuSE, tweak the kernel with it and subfs. I assume that subfs is the same.

I put subfs in slackware but never bothered to see if it worked right. I don't even know if I can find a UDF cd to test it. I use Slackware on my laptop and SuSE on my desktop. I hardly ever use the diskdrive on my laptop.

I just compiled the latest kernel on my laptop and don't remember seeing it in there unless it was one of the things I just breezed by. Are they both third party patches?
 
Old 07-30-2004, 10:57 AM   #8
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
I just checked by calling "make menuconfig" in linux-2.6.7
- autofs (or more correctly - the needed kernel-support to get it working) is under option:
-->Filesystems --> Kernel automounter support with a help-hint on where to find the needed user-space tools

I have never heard of "subfs" ... what is it - it is not a mount-option - at least not with the version I have. If I call "man mount" and search for subfs - it is not in there.
 
Old 07-30-2004, 11:16 AM   #9
AhYup
Member
 
Registered: Mar 2004
Distribution: Suse
Posts: 85

Rep: Reputation: 15
SuSE sets it up by default. Apparently its one of their kernel tweaks but I gonna have to do a little more research. It actually works quite well. Man pages are often a little behind so it didn't shock me when I coudn't find it there. When I looked it up after I first installed SuSE I'd found a little faq on the net explaining that it was a method that worked a little faster than autoufs but I forget all the techy details. I went and assumed that it was added to the standerd base system, I should know better than assuming.

Thanks for setting that straight anyhow. I'm gonna get more info.

Last edited by AhYup; 07-30-2004 at 11:18 AM.
 
Old 07-30-2004, 11:33 AM   #10
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
thanks for the info - I will have my eyes open and look for it. But not today or tomorrow - I'm just curious - one should never stop (trying to) learn...
 
Old 07-30-2004, 05:21 PM   #11
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Submount http://submount.sourceforge.net/ is a module you can install to enable removable media support. It has the advantage over supermount that you don't need to patch the kernel. I tried it a couple of months ago but it didn't seem to work as well as supermount but I didn't try very hard as supermount already does what I want. But I don't use supermount for CD's as I rarely mount them.
 
Old 07-31-2004, 06:16 AM   #12
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
Thank you again Andrew Benton for showing me where to find and read about it - I might give this a try sometime - seems not so hard to set up...
 
Old 07-31-2004, 07:12 AM   #13
mm3000
Member
 
Registered: Jul 2004
Location: Victoria, OZ
Distribution: Slackware x64_Current
Posts: 82

Original Poster
Rep: Reputation: 15
THanks for all the replies, however no luck. when i tried jomen suggestion I recieved the error message "I counld not determine filesystem type"
When I tried Cedrick I recieved the same error as before.
Quote:
This is my current fstab:
/dev/hdd5 swap swap defaults 0 0
/dev/hdd1 / ext2 defaults 1 1
/dev/hdd6 /usr ext2 defaults 1 2
/dev/hdd7 /opt ext2 defaults 1 2
/dev/hdd8 /home ext2 defaults 1 2
/dev/hda1 /c-drive vfat auto,rw,umask=000 1 0
/dev/hdb /mnt/cdrom iso9660,udf noauto,user,ro,unhide 0 0
/dev/hdc1 /mnt/d-drive ntfs auto,user,ro,unmask=0222 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

and mtab
/dev/hdd1 / ext2 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
/dev/hdd6 /usr ext2 rw 0 0
/dev/hdd7 /opt ext2 rw 0 0
/dev/hdd8 /home ext2 rw 0 0
/dev/hda1 /c-drive vfat rw,umask=000 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0

I can stillmount dvds fine but no normal cd's

Last edited by mm3000; 07-31-2004 at 07:13 AM.
 
Old 07-31-2004, 07:50 AM   #14
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
I'm not at all sure - but I don't think it is o.k. to have an entry like this in /etc/fstab:

/dev/hdb /mnt/cdrom iso9660,udf noauto,user,ro,unhide 0 0

...this is the one causing your problems, right?

I'd have just _one_ filesystm-type specified per line and drive - i.e. I would - if you really need it - write two lines - one for iso9660 and one for udf

/dev/hdb /mnt/cdrom iso9660 noauto,user,ro,unhide 0 0

/dev/hdb /mnt/cdrom udf noauto,user,ro,unhide 0 0

... or go with the auto entry as I suggested

DVD-s have udf on them - as far as I know - so this would indicate, that here just the last entry gets used (udf) and mounting an iso9660 as an udf disc just _has_ to fail.

You need to be sure, that the CD is o.k. and an iso9660 and also that your kernel supports it. If iso9660 is a module - it has to be loaded to be successful here.

check with: "lsmod"
 
Old 07-31-2004, 09:14 AM   #15
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
mm3000> What is the output with :

cat /proc/ide/hdb/model
cat /proc/ide/hdb/media
ls -l /dev/cdrom
cat /proc/filesystems
/sbin/modprobe -l | grep fs


Last edited by Cedrik; 07-31-2004 at 09:17 AM.
 
  


Reply



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 error javier_ccs Linux - Newbie 1 06-17-2005 10:57 AM
mounting error nedian123 Red Hat 1 12-08-2004 11:30 PM
mounting error Uldis Slackware - Installation 2 07-04-2004 01:58 PM
Error while Mounting Smooth Linux - Newbie 2 08-12-2003 11:01 PM
installation error: Error mounting sda1: Invalid Argument sadirmata Linux - Newbie 1 01-29-2002 02:28 AM

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

All times are GMT -5. The time now is 04:18 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