LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-27-2003, 01:01 PM   #1
Alybyzrp
LQ Newbie
 
Registered: Oct 2003
Posts: 11

Rep: Reputation: 0
Block Device and CD-Rom Mounting


I'm a newbie, trying to get an embedded USB controller/Linux processor to mount a TEAC CD-ROM drive. My system recognizes the device when I attach it, but I can't seem to be able to mount the drive. I have tried
mount /dev/cdrom /mnt/cdrom
mount /dev/sda /mnt/cdrom
mount /dev/sda1 /mnt/cdrom
mount /dev/sdb /mnt/cdrom
mount /dev/sdb1 /mnt/cdrom

and each time I get the following message:
mount: /dev/sdb is not a valid block device


I have viewed a few other posts similiar to this and have seen fstab settings, ect, however I'm not sure exactly what these are, what they currently are, or what they should be.

Any help would be GREATLY appreciated. Trying to mount this drive so that I might copy a few installation files over to the embedded controller!

Regards,
Colleen
 
Old 10-27-2003, 01:03 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well it'll need to be a hotplug USB device and must be detected correctly. try "dmesg | grep usb" to see if it has actually been found at all. also try using a tool like usbview to see what's known to the system
 
Old 10-27-2003, 01:48 PM   #3
Alybyzrp
LQ Newbie
 
Registered: Oct 2003
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks....I did try that command (although I am unsure of the usbview tool). How will I be able to tell if it has been correctly found? The grep command resulted in:
[root@linux root]$ dmesg | grep usb
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb.c: registered new driver audio
usb.c: registered new driver pegasus
usb.c: registered new driver usb-storage
usb.c: new USB bus registered, assigned bus number 1
usb.c: new USB bus registered, assigned bus number 2
usb.c: new USB bus registered, assigned bus number 3
usb.c: new USB bus registered, assigned bus number 4
usb.c: registered new driver otg_de1
usb.c: registered new driver de3_kbd

And my initial plug in of the device results in:
hub.c: USB new device connect on bus1/1, assigned device numb
er 2
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: TEAC Model: CD-210PU Rev: 10A3
Type: CD-ROM ANSI SCSI revision: 02
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 2


Does this mean that my system is recognizing the drive as a hub? How would I go about mounting this to gain access to the files?

Thanks,
Colleen
 
Old 10-27-2003, 02:08 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally posted by Alybyzrp

Does this mean that my system is recognizing the drive as a hub? How would I go about mounting this to gain access to the files?

Thanks,
Colleen
No, that doesn't mean it's being picked up asa hub.
It looks good, so far. What's the output of
lsmod,
and have you looked as /proc/scsi/scsi to see
which ID it's actually assigned?

Cheers,
Tink
 
Old 10-27-2003, 02:21 PM   #5
Alybyzrp
LQ Newbie
 
Registered: Oct 2003
Posts: 11

Original Poster
Rep: Reputation: 0
I think that the problem is potentially here? The output of lsmod is :
[root@linux root]$ lsmod
Module Size Used by
lsmod: QM_MODULES: Function not implemented

And when I changed to the /proc directory, I wasn't able to see which ID it was actually assigned (unless it is the usb-storage-0...which is in /proc/scsi, not /proc/scsi/scsi)

[root@linux proc]$ cd scsi
[root@linux scsi]$ ls
scsi usb-storage-0
[root@linux scsi]$ cd scsi
bash: cd: scsi: Not a directory


Thanks so much for the help...I really appreciate it!!

Colleen
 
Old 10-27-2003, 02:39 PM   #6
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
try mounting /dev/sr0
/dev/sdX is used for scsi disk devices.
 
Old 10-27-2003, 02:46 PM   #7
Alybyzrp
LQ Newbie
 
Registered: Oct 2003
Posts: 11

Original Poster
Rep: Reputation: 0
it doesn't like the sr0:

[root@linux scsi]$ mount /dev/sr0 /mnt/cdrom
mount: special device /dev/sr0 does not exist


these are the devices that are listed in the /dev folder:
asi_rawkey flash6 hdb8 loop1 psaux tty6
cdrom flh1 hdc mem ptmx tty7
console flh2 hdc1 mixer pts tty8
de1 flh3 hdc2 mouse ram0 ttyP0
de1drv h3600_key hdc3 mtd0 ram1 ttyP1
de3 h3600_ts hdc4 mtd1 ram2 ttyP2
de3drv h3600_tsraw hdc5 mtd2 ram3 ttyP3
de4 hda hdc6 mtd3 random ttyS0
dsp hda1 hdc7 mtd4 root ttyS1
fb hda2 hdc8 mtd5 rtc ttyS2
fb0 hda3 hdd mtdblock0 sda ttyS3
fb1 hda4 hdd1 mtdblock1 sda1 ttyS4
fb2 hda5 hdd2 mtdblock2 sdb ttyS5
fb3 hda6 hdd3 mtdblock3 sdb1 ttyS6
fb4 hda7 hdd4 mtdblock4 touch ttySA0
fb5 hda8 hdd5 mtdblock5 ts ttySA1
fb6 hdb hdd6 mtdr0 tsraw ttySA2
fb7 hdb1 hdd7 mtdr1 tty urandom
flash hdb2 hdd8 mtdr2 tty0 usbmouse
flash1 hdb3 initctl mtdr3 tty1 wdt
flash2 hdb4 kmem mtdr4 tty2 zero
flash3 hdb5 lcd mtdr5 tty3
flash4 hdb6 log null tty4
flash5 hdb7 loop0 nvram tty5


I tried mounting as dev/ cdrom and sdX with no avail.
 
Old 10-27-2003, 02:56 PM   #8
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
If you're running 2.4 kernel, try as root:
mknod /dev/sr0 b 11 0
then try mounting /dev/sr0 and see what it says
 
Old 10-28-2003, 06:25 AM   #9
Alybyzrp
LQ Newbie
 
Registered: Oct 2003
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Demonbane
If you're running 2.4 kernel, try as root:
mknod /dev/sr0 b 11 0
then try mounting /dev/sr0 and see what it says
The output of this attempt is as follows:
[root@linux root]$ mknod /dev/sr0 11 0
BusyBox v0.51 (2001.05.17-16:55+0000) multi-call binary

Usage: mknod [OPTIONS] NAME TYPE MAJOR MINOR

[root@linux root]$ mount /dev/sr0 /mnt
mount: special device /dev/sr0 does not exist
[root@linux root]$ mount /dev/sr0
mount: can't find /dev/sr0 in /etc/fstab or /etc/mtab
 
Old 10-28-2003, 06:34 AM   #10
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
you forgot the 'b'

mknod /dev/sr0 b 11 0

Last edited by Demonbane; 10-28-2003 at 06:35 AM.
 
Old 10-28-2003, 07:28 AM   #11
Alybyzrp
LQ Newbie
 
Registered: Oct 2003
Posts: 11

Original Poster
Rep: Reputation: 0
Aaaah that worked slightly better with the b (sorry about that!), but it still will not allow me to mount the drive:

[root@linux root]$ mknod /dev/sr0 b 11 0
[root@linux root]$ mount /dev/sr0
mount: can't find /dev/sr0 in /etc/fstab or /etc/mtab
[root@linux root]$ mount /dev/sr0 /mnt/cdrom
mount: /dev/sr0 is not a valid block device
[root@linux root]$ mount /dev/sr0 /mnt
mount: /dev/sr0 is not a valid block device
 
Old 10-28-2003, 07:41 AM   #12
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
can you

cat /proc/scsi/scsi

and see what it says?
 
Old 10-28-2003, 07:45 AM   #13
Alybyzrp
LQ Newbie
 
Registered: Oct 2003
Posts: 11

Original Poster
Rep: Reputation: 0
sure....

[root@linux root]$ cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: TEAC Model: CD-210PU Rev: 10A3
Type: CD-ROM ANSI SCSI revision: 02
 
  


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
CDROM mounting problem => /dev/cdrom is not a valid block device Vizy Linux - Hardware 8 11-04-2010 04:46 PM
Bad super block, too many mounted fs error when mounting CD rom Cogvos Linux - Hardware 2 02-18-2005 07:19 AM
Fedora Core 1 SCSI CD-ROM Won't Mount (always get "is not a valid block device") jerrykuch Linux - Hardware 2 04-18-2004 01:02 PM
Can't mount cd-rom drive (not a valid block device) patrickdepingui Linux - Hardware 3 04-14-2003 11:39 AM
mounting cd-rom(not a valid block device) reidstev Linux - Hardware 5 11-12-2002 12:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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