LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-07-2008, 12:36 AM   #1
mathimca05
Member
 
Registered: Oct 2007
Posts: 66

Rep: Reputation: 15
Thumbs up 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?
 
Old 01-07-2008, 01:04 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
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
lrwxrwxrwx 1 root root 3 Jan  4 07:13 /dev/cdrom -> sr0
lrwxrwxrwx 1 root root 3 Jan  4 07:13 /dev/cdrom1 -> sr1
My internal cdrom should be at /dev/hdc but it is kapoot.

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).
 
Old 01-07-2008, 01:26 AM   #3
mathimca05
Member
 
Registered: Oct 2007
Posts: 66

Original Poster
Rep: Reputation: 15
Thumbs up 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?
 
Old 01-07-2008, 01:35 AM   #4
mathimca05
Member
 
Registered: Oct 2007
Posts: 66

Original Poster
Rep: Reputation: 15
Thumbs up 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.
 
Old 01-08-2008, 03:15 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
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.
 
Old 01-08-2008, 03:18 PM   #6
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,296

Rep: Reputation: 65
fstab doesn't need an entry for the cdrom.

try mount /dev/hdb /mnt/cdrom
 
Old 01-08-2008, 03:21 PM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680Reputation: 680
The mount command he last used was OK. He already tried your mount command as well.
 
  


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
mounting digital camera, mounting in general? lugoteehalt Linux - Hardware 6 08-29-2006 12:52 PM
Mounting an ISO image from a CD different than mounting from HD? NoTiG Linux - Software 4 08-03-2005 04:40 PM
Gnome 2.6 Right click mounting and the mounting system Acetylcholine Linux - Hardware 0 07-25-2004 07:34 AM
Mounting HDD vs. Mounting Filesystem snailophone Linux - Hardware 4 08-12-2003 11:00 AM
Mounting mounting extended partition and its Logical drives desbyleo Linux - Newbie 10 02-18-2002 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:55 AM.

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