Mounting a CD
hai all
i want know how to mount a cd/usb stick. i tried this command.but its not working. mount -t auto /dev/cdrom /mnt/cdrom its telling that Media not found. This is the output of fdisk command. # fdisk -l Disk /dev/hda: 120.0 GB, 120034123776 bytes 255 heads, 63 sectors/track, 14593 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hda1 1 13 104391 83 Linux /dev/hda2 6827 14593 62388427+ 8e Linux LVM /dev/hda3 * 2222 4873 21302190 7 HPFS/NTFS /dev/hda4 4874 6826 15687472+ f W95 Ext'd (LBA) /dev/hda5 4874 5521 5205028+ e W95 FAT16 (LBA) [/B] i followed this link. http://linux.about.com/od/linux101/l/blnewbie4_2_2.htm i tried all the options given in that link. can anyone help me? |
First determine whether the /dev/cdrom device exists:
ls -l /dev/cdrom. It might be a pointer to the actual device: Code:
ls -l /dev/cdrom Data cdroms use the iso9660 filesystem. So I would use sudo mount -t iso9660 /dev/cdrom /mnt/cdrom or sudo mount -t iso9660 /dev/sr0 /mnt/cdrom if I needed to manually mount it. For a music CDROM, there isn't a filesystem. There is an IO slave called "cdrom:" that you can use in konqueror to perform conversions. Different types of music file types like ogg, flac will show up in a window as if they existed in a filesytem. When you copy one of these files somewhere, using drag and drop, the conversion will take place. If your distro uses HAL and udev, then the /dev/cdrom is created on the fly. Inserting a cdrom should result in a popup dialog asking you what you want to do, such as play music (music cd) or open the directory (data cd). |
Mounting a CD
hai
thanks 4 ur reply. 1.this is the output of ls -l /dev/cdrom command. lrwxrwxrwx 1 root root 3 Jan 4 09:12 /dev/cdrom -> hdb 2.this is my fstab entry. /dev/VolGroup00/LogVol00 / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 devpts /dev/pts devpts gid=5,mode=620 0 0 tmpfs /dev/shm tmpfs defaults 0 0 proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 /dev/VolGroup00/LogVol01 swap swap defaults 0 0 here i m not finding anything related to cdrom.can i make an entry in the fstab file for cd as root? |
Output of mount command
Hai
thanks. i got the output like this, [root@localhost ~]# ls -l /dev/cdrom lrwxrwxrwx 1 root root 3 Jan 4 09:12 /dev/cdrom -> hdb [root@localhost ~]# mount -t iso9660 /dev/hdb /mnt/cdrom mount: No medium found waiting for ur reply. |
I was sick last night and so I wasn't on the computer, so I didn't reply earlier.
What is the cdrom that you are trying to mount? There needs to be a CD in the drive and it needs to be a data CD. It is the filesystem on the CD that you are trying to mount. So two additional problems can crop up. A smudge or scratch on the disc can cause a problem mounting it. A bad cdrom drive or a dirty laser can also cause a problem mounting. Often if the cdrom drive has a problem /var/log/messages will contain I/O Error messages. |
fstab doesn't need an entry for the cdrom.
try mount /dev/hdb /mnt/cdrom |
The mount command he last used was OK. He already tried your mount command as well.
|
All times are GMT -5. The time now is 09:54 AM. |