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 01-23-2004, 10:57 AM   #1
Harp00
Member
 
Registered: Jun 2003
Location: Venice Italy
Distribution: Slackware 12.0 kernel 2.6.21.5
Posts: 284

Rep: Reputation: 30
newbie problems with mount


This is my fstab file

dev/hda4 / ext3 defaults 1 1
/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

And this is the message i get when i tri to mount a CDrom


mount /dev/cdrom
mount: wrong fs type, bad option, bad superblock on /dev/cdrom,
or too many mounted file systems
(could this be the IDE device where you in fact use
ide-scsi so that sr0 or sda or so is needed?)

What does it mean?

P.S. I also have a DVD player. Why is not it in the fstab list?
 
Old 01-23-2004, 11:20 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
a dvd drive is treated the same as a cd drive.
perhaps your cdrom device is no longer linked to /dev/cdrom.

you can try
mount /dev/hdc /mnt/cdrom
mount /dev/hdd /mnt/cdrom
mount /dev/hdb /mnt/cdrom
mount /dev/scd0 /mnt/cdrom

and whichever works is your cdrom drive
then whichever works,
ln -s /dev/cdrom /dev/hdc
you may have to rm /dev/cdrom first
 
Old 01-23-2004, 11:27 AM   #3
nesware
Member
 
Registered: Jan 2004
Location: belgium
Distribution: Slackware
Posts: 117

Rep: Reputation: 15
post the out put here of these two commands
dmesg | grep CD (if it doesn't work try lowercase cd)
fdisk -l
show's what you REALLY have... /etc/fstab is not what you really have, more what you are going to use...
 
Old 01-23-2004, 05:15 PM   #4
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 15
Posts: 546

Rep: Reputation: 43
Since you are trying to mount the drive "manually" I guess your request refers to slackware but I think it should also be valid for RH distros.
According to your /etc/fstab devices /dev/fd0 and /dev/cdrom are mounted at boot with root permissions as indicated by "owner" option. As "owner" in this case is root you cannot mount/unmont them as normal user.
The simplest remedy is you change "owner" with "user" in order you can do such operations as normal user.
I'm a little confused by your question about "ide-scsi emulation"
Is your drive a CDRom or a CDwriter ? If it was a CDRom scsi emulation is not necessary at all and you can remove it from your /etc/lilo.conf file.
You can check what device is using scsi emulation by the command
cdrecord -scanbus (as root) that will return a list, if present, of devices using scsi emulation.
Also remenber to edit your /etc/group file including your logname into "disk" group in order you can use cdrom/dvd drive to listen music/play DVDs as well.
Slackware usually includes only one removable device per bus. You have to add additional devices manually to your /etc/fstab.

Spero che ciņ sia stato di qualche aiuto
Ciao
 
Old 01-23-2004, 06:18 PM   #5
nesware
Member
 
Registered: Jan 2004
Location: belgium
Distribution: Slackware
Posts: 117

Rep: Reputation: 15
Quote:
According to your /etc/fstab devices /dev/fd0 and /dev/cdrom are mounted at boot with root permissions as indicated by "owner" option. As "owner" in this case is root you cannot mount/unmont them as normal user.
The simplest remedy is you change "owner" with "user" in order you can do such operations as normal user.
normally you get a different message then..
Code:
 mount: only root can do that
that;s why i'd like to see the out put of the kernel messages.. just to check what the cd drive is
 
Old 01-24-2004, 01:02 PM   #6
Rudebr00d
Member
 
Registered: Jun 2003
Posts: 34

Rep: Reputation: 15
same problem

I'm having the same problem as the original poster.

When trying to mount my cdrom drive I recieve the error:
wrong fs type, bad option, bad superblock on /dev/cdrom,
or too many mounted file systems

However, I know that my cdrom is linked to hdb so I'm using the command: mount -t iso9660 -r /dev/hdb /mnt/cdrom

My first inclination is that fstab has /mnt/cdrom already mounting /dev/cdrom but when I just try the mount command on its on, it doesn't show /dev/cdrom being mounted anywhere

Any ideas as to why I'm recieving this error?
 
Old 01-24-2004, 01:20 PM   #7
CartersAdvocate
Member
 
Registered: Sep 2003
Location: Columbus, OH
Distribution: Slackware 12.2
Posts: 166

Rep: Reputation: 30
I'm just taking a stab in the dark here, but you do have a cd in the drive when you are trying to mount it, right?

As a side note, if it's an audio cd, you don't have to mount it...it will work without mounting (and would give that message if you tried to)...you only need to mount data cds

Jeff

Last edited by CartersAdvocate; 01-24-2004 at 01:22 PM.
 
Old 01-24-2004, 01:38 PM   #8
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
mount will autodetect the filesystem and stuff, so you can just try
mount /dev/hdb /mnt/cdrom
make sure the directory /mnt/cdrom exists
is your cdrom being set up as ide-scsi?
if it is, you need to be mounting as /dev/scd0 probably instead, and
that wont work if you don't have the ide-scsi and sg modules loaded.
you can check with lsmod
cdrecord -scanbus will check for set up scsi drives and emulated drives.
 
Old 01-24-2004, 03:37 PM   #9
nesware
Member
 
Registered: Jan 2004
Location: belgium
Distribution: Slackware
Posts: 117

Rep: Reputation: 15
Re: same problem

Quote:
I'm having the same problem as the original poster.
However, I know that my cdrom is linked to hdb so I'm using the command: mount -t iso9660 -r /dev/hdb /mnt/cdrom
to solve this problem change the fstab entry
Code:
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
to:
Code:
/dev/hdb /mnt/cdrom iso9660 noauto,users,ro 0 0
btw: with
Code:
ls -la /dev/cdrom
you can check where /dev/cdrom is really liked to

Last edited by nesware; 01-24-2004 at 03:39 PM.
 
Old 01-24-2004, 03:47 PM   #10
MrPotatoHead
Member
 
Registered: Mar 2003
Location: NY
Distribution: Fedora Core 1,RH AS 2.1, RH AS 3.0, Mandrake 9.0
Posts: 33

Rep: Reputation: 15
Quote:
mount /dev/cdrom
mount: wrong fs type, bad option, bad superblock on /dev/cdrom,
or too many mounted file systems
(could this be the IDE device where you in fact use
ide-scsi so that sr0 or sda or so is needed?)
u mount the cdrom with this command

mount /mnt/cdrom

/dev/cdrom is only the rawdevices

MrP
 
Old 01-24-2004, 03:57 PM   #11
nesware
Member
 
Registered: Jan 2004
Location: belgium
Distribution: Slackware
Posts: 117

Rep: Reputation: 15
gee mrpotatohead... you got more than potato in there... or we've got potatos in our eyes
 
Old 01-24-2004, 05:12 PM   #12
Rudebr00d
Member
 
Registered: Jun 2003
Posts: 34

Rep: Reputation: 15
Changing the fstab file to mount from /dev/hdb worked. Thanks guys.

Gonna go read on how fstab works now so I understand why this worked.
 
Old 01-24-2004, 07:01 PM   #13
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
Quote:
Originally posted by MrPotatoHead
u mount the cdrom with this command

mount /mnt/cdrom

/dev/cdrom is only the rawdevices

MrP
sorry to mash yer taters, but you can mount a device by referencing either
its device or its mount point in fstab.

so, with the following entry

/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0

if fstab was set up correctly, and /dev/cdrom was symlinked correctly
mount /dev/cdrom
or
mount /mnt/cdrom
would work, as would a full specific mount command.

Last edited by whansard; 01-24-2004 at 07:04 PM.
 
Old 01-24-2004, 07:05 PM   #14
nesware
Member
 
Registered: Jan 2004
Location: belgium
Distribution: Slackware
Posts: 117

Rep: Reputation: 15
it probably work cos /dev/cdrom is not pointing to /dev/hdb
what does it say when you do this?
Code:
nes@nes [/home/nes> ls -la /dev/cdrom
should be something like
Code:
nes@nes [/home/nes> ls -la /dev/cdrom
lrwxrwxrwx    1 root     root            3 Dec 30 15:54 /dev/cdrom -> hdb
nes@nes [/home/nes>
if(not)
as root;
Code:
root@nes [/home/nes> cd /dev/
root@nes [/dev>  ln -s hdb cdrom
btw.. i advise you to change your cd to the second ide port (hdc/hdd)... cd roms slow down your hard disk on the same ide port... unless you're using scsi disks
 
Old 01-25-2004, 12:56 PM   #15
Rudebr00d
Member
 
Registered: Jun 2003
Posts: 34

Rep: Reputation: 15
Putting the CDrom drive on the first IDE port was the only way I could get the computer to boot from CD... for whatever reason *shrug*.
 
  


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
newbie mount problems ruzle0 Mandriva 6 09-16-2005 02:09 PM
CD Boot/mount problems (Rank Newbie - Sorry) Killdog Linux - Newbie 3 08-31-2005 04:25 AM
Newbie mount ? celticX Linux - Newbie 9 05-20-2004 04:41 PM
mount Windows...from a newbie ashesh Linux - General 4 02-04-2003 06:17 PM
newbie mount point problems bootlegr Linux - Newbie 5 05-03-2002 01:22 PM

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

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