LinuxQuestions.org
Visit Jeremy's Blog.
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 12-22-2005, 06:58 AM   #1
schakrs
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Rep: Reputation: 0
Question cdrom shows no files with ls command and with GUi


Hi,
The CDs that are running in windows on my machine are not doing so in linux(RedHat7.3).
I have made necessary entry in /etc/fstab and my cdrom is placed in /mnt/cdrom.
as i do ls in /mnt/cdrom it shows 0 files.
i donot know exactly what to wite in fstab under the
/mnt/cdrom entry. i mean the device details. is writing defaults 0 0 alright?
If not then how do i get to know what to write?
 
Old 12-22-2005, 07:09 AM   #2
jbetten
LQ Newbie
 
Registered: Jan 2005
Posts: 19

Rep: Reputation: 0
It seems like your problem could be one of two things:

1) Your /etc/fstab file isn't setup correctly. If you post the contents that is easy enough to check.

2) You haven't mounted the cdrom. Running "mount /mnt/cdrom" as root should do it.

So try #2 because it is the easiest... but if that fails post /etc/fstab.
 
Old 12-22-2005, 07:16 AM   #3
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Modern Linux systems provide you with a functionality similar to "autorun" on Windows, so you
may not need to mount the CD yourself.

What you are seeing, an empty mount point (=directory where the CD is mounted), occurs
typically if the mount failed.

Have you tried mounting the cdrom manually? (using the options in /etc/fstab for the "mount" command).

Your /etc/fstab entry should at least mention:
/dev/cdrom as device that's mounted
/mnt/cdrom as mount point
iso9660 as format (iso format is the standard for cdroms, I think)
0 0 is just fine.
and a few other options.

Can you please post your /etc/fstab entry?

See also "man mount" and "man 8 mount"
 
Old 12-22-2005, 08:08 AM   #4
schakrs
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Thaks for your response. Presently i'm not having my PC because i'm attending a session. i'll send you my fstab contents tomorrow.
Hopefully you will help me through this tomorrow.
Regards,
Subhasish.
 
Old 12-22-2005, 08:12 AM   #5
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally Posted by jbetten
Running "mount /mnt/cdrom" as root should do it.
You mount the device, not the mount point! It should be something like "mount /dev/cdrom".
 
Old 12-22-2005, 08:29 AM   #6
jbetten
LQ Newbie
 
Registered: Jan 2005
Posts: 19

Rep: Reputation: 0
Actually... if it is in /etc/fstab, then you do mount the mount point.
 
Old 12-22-2005, 08:30 AM   #7
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
As mentionned in "man 8 mount", if you specify it in /etc/fstab,
you can actually use either the "mount <mount point>" OR "mount <device>".
Both should work.
Haven't tried it though...

Edit: but looking at your posts, it surely will work either way
 
Old 12-23-2005, 08:02 AM   #8
schakrs
LQ Newbie
 
Registered: Dec 2005
Posts: 3

Original Poster
Rep: Reputation: 0
Smile the problem solved

i executed mount /mnt/cdrom and it's working. /etc/fstab contents i set appropriately. i checked man 8 mount and man 5 fstab.
Thaks for the help
 
  


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
Transferring 40000+ files with FTP (mget) shows 0 files tim1235 Linux - Software 5 10-17-2004 06:06 PM
who command shows me and root??????? dimgr Linux - Security 1 10-15-2004 11:22 AM
I need a command that shows installation directories. Seqenenre Linux - Newbie 11 07-28-2004 09:30 PM
df command shows wrong information vdemuth Mandriva 3 06-04-2004 02:30 AM
locate command shows some files which are not listed by ls .... m_a Linux - Newbie 2 08-03-2003 07:10 AM


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