Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Usually /dev/cdrom is a link that points to the actual CDROM device i.e /dev/hdc, /dev/scd0 etc. In the case of a USB drive the device ID will be /dev/scd0.
The output of the command will display if it is a link and what it is linked to.
ls -l /dev/cdrom
Look at the output of the command dmesg and look for any CDROM messages to verify the drive is being recognized and its device ID.
Make sure the /mnt/cdrom directory exist and try to mount the drive (as root).
mount -t iso9660 /dev/scd0 /mnt/cdrom
There might be some USB or SCSI modules not loading but lets see what happens.
Thanks for your helpful and informative reply, michaelk!
OK, here's what I got.....hope to get more input... ;-)
Code:
#ls -l /dev/cdrom
ls: /dev/cdrom: No such file or directory
#mount -t iso9660 /dev/scd0 /mnt/cdrom
cdrom: sr0: mrw address space DMA selected
mount: block device /dev/scd0 is write-protected, mounting read-only
end_request: I/O error, dev sr0, sector 64
isofs_fill_super: bread failed, dev=sr0, iso_blknum=16, block=16
mount: wrong fs type, bad option, bad superblock on /dev/scd0,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
So did dmesg and most of what it shows is what I wrote down as laptop was finishing boot....but here's what dmesg shows:
Code:
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
sr0: scsi3-mmc drive: 2x24x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 5
eth0: no IPv6 routers present
cdrom: sr0: new address space DMA selected
end_request: I/O error, dev sr0, sector 64
isofs_fill_super: bread failed, dev=sr0, iso_blknum=16, block=16
Meanwhile, here's what I got just before bootup finished:
Code:
login: usb 1-1 new full speed USB device using address 4
Initializing USB Mass Storage driver....
scsi0: SCSI emulation for USB Mass Storage Devices
vendor: SAMSUNG model: CDRW/DVD SN-324F Rev: U201
type: CD-ROM ANSI SCSI revision 02
usbcore: registered new driver usb-storage
USB Mass Storage Support registered
sr0: scsi3-mmc drive: 2x24x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver
Revision: 3.20
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0, type 5
Not sure what you mean by "what type of disk were you trying to mount?"
Thought that the info I posted above described all the info on the CDRW/DVD drive I'm trying to use.....or are you referring to the Mass Storage stuff?? If so, I assume that it is referring to the little USB flash drive I tried to get working the other day....
Let me know if this answers your question or you need other info....
Thanks!
Mark
Quote:
Originally posted by michaelk Just out of curiousity what type of disk were you trying to mount?
Music CDs do not get mounted because they do not contain a valid filesystem. You need to configure the application to use the CDROM device i.e. /dev/scd0. I believe the same is true for the eject utility.
In my case I had to recompile the kernel in order to add scsi device support (scsi cdrom support), which adds module sr_mod (check with modprobe -l or lsmod if you already have it), since usb devices are accessed via scsi devices.
After that (make xconfig, make modeles_install) , reboot and mounted /dev/scd0 on /mdeia/dvdrecorder (or any other mount point).
mount -t iso9660 /dev/scd0 <mountpoint>
In some cases, depending on the number of usb devices attached, the device id may differ from scd0, being another number. In such case, use lsusb (figure out bus and device ids), /proc/scsi files, /var/log/messages.
regards,
F.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.