LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-28-2007, 03:49 AM   #1
diablo_
Member
 
Registered: Dec 2005
Distribution: Slackware 11.0
Posts: 30

Rep: Reputation: 15
Unable to mount/eject.


Everything was working fine until now (1 and a half year) and after the last install i am unable to eject/mount my External USB DVD+RW Drive. I just get this messages:

Code:
/home/diablo_# mount /mnt/cdrom
mount: /dev/cdrom is not a valid block device
/home/diablo_# eject /mnt/cdrom
not an sg device, or old sg driver
eject: unable to eject, last error: No such device
/home/diablo_#
 
Old 01-28-2007, 03:58 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
/home/diablo_# mount /mnt/cdrom
mount: /dev/cdrom is not a valid block device

This is correct ... ls -l /dev/cdrom
(It should be a symlink to your CD drive block device say: /dev/hdc... bet it isn't)

Try: mount -t iso9660 /dev/hdc /mnt/cdrom

Last edited by Simon Bridge; 01-28-2007 at 04:00 AM.
 
Old 01-28-2007, 04:03 AM   #3
diablo_
Member
 
Registered: Dec 2005
Distribution: Slackware 11.0
Posts: 30

Original Poster
Rep: Reputation: 15
I get and done that:

Code:
lrwxrwxrwx 1 root root 8 2007-01-13 17:04 /dev/cdrom -> /dev/hdb
mount -t iso9660 /dev/hdb /mnt/cdrom
But the answer was:

Code:
mount: /dev/hdb is not a valid block device
 
Old 01-28-2007, 05:58 AM   #4
avallach
Member
 
Registered: Sep 2006
Location: Silesia
Distribution: Debian GNU/Linux 4.0, ArchLinux, OpenBSD
Posts: 190
Blog Entries: 2

Rep: Reputation: 31
Maybe your kernel got some problem with such USB devices, have you recompiled it ?
 
Old 01-28-2007, 11:47 AM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
Quote:
Originally Posted by diablo_
Everything was working fine until now (1 and a half year) and after the last install i am unable to eject/mount my External USB DVD+RW Drive. I just get this messages:

Code:
/home/diablo_# mount /mnt/cdrom
mount: /dev/cdrom is not a valid block device
/home/diablo_# eject /mnt/cdrom
not an sg device, or old sg driver
eject: unable to eject, last error: No such device
/home/diablo_#
...
lrwxrwxrwx 1 root root 8 2007-01-13 17:04 /dev/cdrom -> /dev/hdb
mount -t iso9660 /dev/hdb /mnt/cdrom
Well, if it's an external usb DVD+RW drive then it would be sd* not hd*, right ? So it would be /dev/sda or /dev/sdb not /dev/hdb. Are you sure you are trying to mount unmount the right device ?

run this and post output:

Code:
ls -l /dev/disk/by-id
 
Old 01-28-2007, 06:54 PM   #6
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Quote:
Well, if it's an external usb DVD+RW drive then it would be sd* not hd*
Yeah... I don't believe I missed that!

The "last install" would have been slack 11 - was the previous install also slack?

Distros with udev usually have things set up to stick an icon on the desktop when external media is hotplugged. I would imagine that one just inserts the media and closes the drawer manually, then the kernel does the rest.

However, slack has a great deal of flexibility in terms of what to install... do some people still use devfs itself in slack?

Anyway - I'd want to plug in (and switch on) the device, check dmesg | tail (or so) for usb messages. Insert media and do the same. This should tell what is going on.

I doubt that the usb drive was ever at /dev/hdb.
 
Old 01-30-2007, 09:20 AM   #7
diablo_
Member
 
Registered: Dec 2005
Distribution: Slackware 11.0
Posts: 30

Original Poster
Rep: Reputation: 15
Thanks for help. I will try that in a few hours (didn't have time until now ) About versions i installed: all were slackware 10.1 to 11.0). Drive was working an all of that versions but for unknown reason it don't after the last install of 11.0.
 
Old 01-31-2007, 06:39 AM   #8
diablo_
Member
 
Registered: Dec 2005
Distribution: Slackware 11.0
Posts: 30

Original Poster
Rep: Reputation: 15
Nothing works. Tried mounting /dev/sda and /dev/sdb as well as ls -l /dev/disk/by-id but for the first i get "not a valid block device" and for the second "no such file or directory".
 
Old 01-31-2007, 02:12 PM   #9
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
Which kernel are you using ? If it's a 2.4.x, might wanna try a 2.6.x
 
Old 02-01-2007, 07:13 AM   #10
rkrishna
Member
 
Registered: Mar 2005
Location: chennai(madras), India
Distribution: slackware ofcourse
Posts: 654

Rep: Reputation: 32
do a "mount" command (means no options) see what all device are mounted.

do a a "dmesg |more " get the right device. check for errors.
somitimes u may need to enable/disable dma.

try "eject /dev/device" as root. and see if it works
then edit /etc/fstab.

identify the problem, if nothing is working go for other kernels.
if u want to try an alternate 2.6 kernel go to http://rkrishna.tp.googlepages.com/slackerbasics#alt

regards
 
Old 02-01-2007, 01:46 PM   #11
LittleA
LQ Newbie
 
Registered: Feb 2003
Location: in a house
Distribution: Slackware/Linux From scratch
Posts: 8

Rep: Reputation: 0
Question

Wooha, steady on chaps ...

Before jumping to ( wrong ) conclusions let`s get some data shall we ?

What kernel are you using NOW ? 2.4, 2.6
Did you use one of the Slackware 11 install or did you compile it yourself ?
If you just "installed" one, which one?
if you "compiled" one yourself: did you compiled it with support for USB ?
Do you use "Hotplugging" ? And/Or did you switch from devfs/udev ?

confused on how to check ( these ) things ? Ask us again

Last edited by LittleA; 02-01-2007 at 06:37 PM.
 
Old 02-02-2007, 01:08 PM   #12
diablo_
Member
 
Registered: Dec 2005
Distribution: Slackware 11.0
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by LittleA
Wooha, steady on chaps ...

Before jumping to ( wrong ) conclusions let`s get some data shall we ?

What kernel are you using NOW ? 2.4, 2.6
Did you use one of the Slackware 11 install or did you compile it yourself ?
If you just "installed" one, which one?
if you "compiled" one yourself: did you compiled it with support for USB ?
Do you use "Hotplugging" ? And/Or did you switch from devfs/udev ?

confused on how to check ( these ) things ? Ask us again
I am using 2.4.33.3 kernel.
I installed it from Slackware installation DVD.
bare.i
No, it worked without it last time i installed. Hm, i was in a rush when i was instaling so i passed few "end" steps by pressing enter without reading... Who knows what i enabled/disabled
I think i am using it, but i am not sure
I don't know what is that but i am
 
Old 02-02-2007, 03:32 PM   #13
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
I would try a 2.6.x kernel and see if it works in there.
 
Old 02-02-2007, 05:20 PM   #14
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,623

Rep: Reputation: Disabled
Diablo,

Please follow the suggestions of rkrishna and Simon Bridge: After you plug in/turn on the drive, check the output of dmesg. This should show you what dev was assigned to your usb drive and/or any error messages.

OTOH, I found usb devices to be painful under 2.4 and easy under (at least recent) 2.6. So upping your kernel is IMHO quite worthwhile.

Brian
 
Old 02-02-2007, 05:42 PM   #15
LittleA
LQ Newbie
 
Registered: Feb 2003
Location: in a house
Distribution: Slackware/Linux From scratch
Posts: 8

Rep: Reputation: 0
Quote:
Originally Posted by diablo_
I am using 2.4.33.3 kernel.
I installed it from Slackware installation DVD.
bare.i
No, it worked without it last time i installed. Hm, i was in a rush when i was instaling so i passed few "end" steps by pressing enter without reading... Who knows what i enabled/disabled
I think i am using it, but i am not sure
I don't know what is that but i am
Well ... no use telling you know that you should have taken time and took care and read everything flashing on the screen, is it?
Now, let us see ...

There are two possibilities: -> You have a system which does not process USB -> in that case consider checking your kernel AND if you're running the appropriate modules ( bare.i is compiled with USB support under module ! How do I know this? There is a directory on the dvd /kernel/bare.i in which you find the precompiled bzImage= the kernel and 'config' the textfile with the options en/dis-abled for this particular kernel. Size could be a indication of which kernel you are using. And yes, you can (re)-install a precompiled kernel from the DVD, without changing anything else ... )
If you are using bare.i: did you install the Kernel-2.4.33.3 modules ?
Remember you can always check under /var/log/packages what SL11 package you installed or use pkgtool.

Other thing you can do is running lsusb. It should give you any USB-device attached to your system. If your DVD do show up you have
The second possibility: -> you configuration is wrong.
So, how is this DVD been setup in /etc/fstab ?
Does this device has a 'link' in /dev ?
Is there a line with '/proc/bus/usb usbfs' perhaps ?

I'am guessing you could have a USB mouse, since nowadays these things work more on USB then anything else. IF that thing is working correctly, then 9 out of 10 you have a configuration problem !

If you're in for a big ride: you can always restart the setup from the installation and redo the part you missed, or reinstall a more suitable kernel at least ... or just restart the whole process of installing from scratch

Whatever you do: READ what is on the screen and take your time !

And yes 2.6 IS a better system for everything USB - but I would not recommend compiling a new kernel to somebody with ... eh ... so little time

Last edited by LittleA; 02-02-2007 at 05:46 PM.
 
  


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
Unmount and Eject with CD-Rom Eject Button? CrownAmbassador Linux - Hardware 3 12-26-2006 08:45 PM
Unable to Build ELDK3.1 for kernel 2.4.25. On Booting Unable to mount root fs.. kannath Debian 0 05-11-2006 09:26 AM
lock cd-eject-funktion without mount overlord73 Linux - Software 1 03-21-2006 03:02 PM
User eject/mount of next CD-ROM? dunkel Linux - General 1 12-23-2005 03:53 AM
VCD does not eject even eject button pressed ic_torres Linux - Software 4 12-01-2005 05:40 PM

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

All times are GMT -5. The time now is 03:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration