LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-03-2004, 02:16 AM   #1
intrepidtrefz
LQ Newbie
 
Registered: Sep 2003
Location: China
Distribution: One with KDE, apt-get, amd64 support
Posts: 15

Rep: Reputation: 0
my cd-rom "doesn't seem to exist anymore"


"file mnt/cdrom/doesn't seem to exist anymore"

If I click the icon on the kde desktop it says " could not enter directory mnt/cdrom."

Well, then, there remains the supernatural mystery of how exactly mandrake was installed.

from the tree the icon features a lock. All I want to do is listen to a bloody cd.

under hardrake teh following info is shown:
-
Model: ‎526

Vendor: ‎Lite-On Technology Corp.

Bus: ‎ide

Channel: ‎secondary

New devfs device: ‎/dev/ide/host0/bus1/target1/lun0/cd

Old device file: ‎/dev/hdd

Media class: ‎cdrom
-

Maybe something about mounting?

Thank you!!!!!!!!!!!!!!!!!!!!!!
 
Old 01-03-2004, 02:43 AM   #2
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
you need to mount your cdrom from the command line with this
mount /mnt/cdrom

But u need to be root to be able to mount the cd. Do
su - (from the command line and u will be prompted for the root password)

now type
mount /mnt/cdrom
 
Old 01-03-2004, 03:06 AM   #3
intrepidtrefz
LQ Newbie
 
Registered: Sep 2003
Location: China
Distribution: One with KDE, apt-get, amd64 support
Posts: 15

Original Poster
Rep: Reputation: 0
nothing happened

nothing changed.
 
Old 01-03-2004, 03:14 AM   #4
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
could u post the output of
less /etc/fstab

Also tell what happens when u do this
cd /mnt
ls
 
Old 01-03-2004, 03:20 AM   #5
intrepidtrefz
LQ Newbie
 
Registered: Sep 2003
Location: China
Distribution: One with KDE, apt-get, amd64 support
Posts: 15

Original Poster
Rep: Reputation: 0
new message

After screwing with it a bit, right clicking on the cdrom desktop icon and clicking 'mount' I'm informed that:

mount: can't find /mount/cdrom in /etc/fab or /etc/mtab"

How do I get it there?
 
Old 01-03-2004, 03:25 AM   #6
intrepidtrefz
LQ Newbie
 
Registered: Sep 2003
Location: China
Distribution: One with KDE, apt-get, amd64 support
Posts: 15

Original Poster
Rep: Reputation: 0
first question:

/dev/hda1 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hda6 /home ext3 defaults 1 2
none /mnt/cdrom supermount dev=/dev/hdd,fs=auto,ro,--,iocharset=iso8859-15,codep
age=850,umask=0 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=auto,--,iocharset=iso8859-15,sync,co
depage=850,umask=0 0 0
none /proc proc defaults 0 0
/dev/hda5 swap swap defaults 0 0

2nd question: typing "cd /mnt" did nothing, but typing ls produced

cd/ floppy/ hdd/ in fancy blue lettering.
 
Old 01-03-2004, 03:47 AM   #7
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
now,

cd /mnt (To change into the /mnt directory)
mkdir cdrom (To create a new directory named cdrom)

now as root user do
vi /etc/fstab (vi is a text editor)

(press the button a and move to the following line)
none /mnt/cdrom supermount

(change this to) /dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0

(now hit the escape key )
and type :wq

What this will do is edit your /etc/fstab file to make it recognize your cdrom.
Now when u do this as root

mount /mnt/cdrom
cd /mnt/cdrom
ls

You will see the file listings of your cd
 
Old 01-03-2004, 04:03 AM   #8
intrepidtrefz
LQ Newbie
 
Registered: Sep 2003
Location: China
Distribution: One with KDE, apt-get, amd64 support
Posts: 15

Original Poster
Rep: Reputation: 0
'fraid I'm a bit too thick

I think I got it right up to the pressing of the a button. that added an 'a' in a seemingly arbitrary location. I moved to the line and removed it, replacing with what you said to. then I pressed esc. when I began typing :wq the machine beeped at me. I have seen no such file listings. Sorry, I'm very green.
 
Old 01-03-2004, 06:18 AM   #9
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
okay we shall start again

1. you did
vi /etc/fstab
2. you pressed a, which printed an a, remove this a.
3. you have modified /etc/fstab but
esc :wq beeped. That is okay. Escape beeps.
what happened then? did you exit out?

Could u put the /etc/fstab again? again do less /etc/fstab and copy the result

What should have happened when you hit a was that bottom left of the screen should have read

--INSERT--

That is u can now enter text into the file. It should not have typed an a. Then Escape and :wq is to say write the file and quit. Just like save changes and quit.


What i meant was that now when u do

mount /mnt/cdrom
cd /mnt/cdrom
ls (that is a 'l', small L and a 's'. Just like dir command in dos)

you will see the files in ur cd

You don't have to be sorry friend.

Did u create that directory in /mnt like I said?
 
Old 01-03-2004, 06:30 AM   #10
intrepidtrefz
LQ Newbie
 
Registered: Sep 2003
Location: China
Distribution: One with KDE, apt-get, amd64 support
Posts: 15

Original Poster
Rep: Reputation: 0
here

/dev/hda1 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hda6 /home ext3 defaults 1 2
none /mnt/cdrom supermount dev=/dev/hdd,fs=auto,ro,--,iocharset=iso8859-15,codep
age=850,umask=0 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=auto,--,iocharset=iso8859-15,sync,co
depage=850,umask=0 0 0
none /proc proc defaults 0 0
/dev/hda5 swap swap defaults 0 0
/etc/fstab lines 1-7/7 (END)

I do believe I made the directory.

Thanks again!
 
Old 01-03-2004, 07:04 AM   #11
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
Fine. As you can see, your /etc/fsatb is the same as before.

Now open up a console. Type
vi /etc/fstab

Now u can move the cursor with the arrow keys but you can not type anything.

Press a. an --INSERT-- appears at the bottom left of the screen.
Change
none /mnt/cdrom supermount
to
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0

That is instead of none, type /dev/cdrom and instead of supermount type what i say above.

When u are through
hit escape
type
:wq (that is a colon and wq, the colon part being compulsary and neccessary)

Now the changes to your /etc/fstab are saved. Now u can mount your cd.
 
Old 01-03-2004, 08:04 AM   #12
intrepidtrefz
LQ Newbie
 
Registered: Sep 2003
Location: China
Distribution: One with KDE, apt-get, amd64 support
Posts: 15

Original Poster
Rep: Reputation: 0
read only file

doesn't want to be edited. , read only file warnings. a screen,

-- INSERT -- W10: Warning: Changing a readonly file
E325: ATTENTION
Found a swap file by the name "/etc/.fstab.swp"
owned by: root dated: Sat Jan 3 16:53:46 2004
[cannot be opened]
While opening file "/etc/fstab"
dated: Sat Jan 3 19:27:38 2004
NEWER than swap file!

(1) Another program may be editing the same file.
If this is the case, be careful not to end up with two
different instances of the same file when making changes.
Quit, or continue with caution.

(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r /etc/fstab"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file "/etc/.fstab.swp"
to avoid this message.

E325: ATTENTION
Found a swap file by the name "~/tmp/fstab.swp"
owned by: lee dated: Sat Jan 3 20:50:12 2004
file name: /etc/fstab


comes up.
 
Old 01-04-2004, 11:09 AM   #13
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
i have no clue as to the existence of the /etc/fstab.swp file.

Sorry but i cannot assist you here.
 
Old 01-04-2004, 05:35 PM   #14
then
Member
 
Registered: Oct 2002
Location: FDR India
Distribution: RH9, Knoppix, MEPIS
Posts: 65

Rep: Reputation: 15
Re: read only file

Hi

AFAIK .swp is what vi leaves behind when its improperly shutdown.

As long as the original file around you can safely delete the .swp file.

regards
akr
 
Old 01-05-2004, 04:49 AM   #15
LinuxLala
Senior Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305

Rep: Reputation: 45
So, it is safe to delete the swp file and then try to edit the /etc/fstab
 
  


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
what can i do with this promt"user machbuild does not exist - using root" wucheng Linux - Newbie 2 01-17-2011 08:41 AM
Postgresql error FATAL: user "root" does not exist" cgetty Ubuntu 4 06-21-2005 03:11 PM
"computers that are thousands of times more powerful than those that exist today." rksprst General 12 02-03-2005 08:25 PM
Sound device "doesn't exist" after program crash oot Linux - General 2 07-31-2004 12:47 AM
RH9 NIS login error: "home directory does not exist" airrr Linux - Networking 2 08-06-2003 02:47 PM

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

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