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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
01-03-2004, 01:16 AM
|
#1
|
LQ Newbie
Registered: Sep 2003
Location: China
Distribution: One with KDE, apt-get, amd64 support
Posts: 15
Rep:
|
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!!!!!!!!!!!!!!!!!!!!!!
|
|
|
01-03-2004, 01:43 AM
|
#2
|
Senior Member
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305
Rep:
|
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
|
|
|
01-03-2004, 02:06 AM
|
#3
|
LQ Newbie
Registered: Sep 2003
Location: China
Distribution: One with KDE, apt-get, amd64 support
Posts: 15
Original Poster
Rep:
|
nothing happened
nothing changed.
|
|
|
01-03-2004, 02:14 AM
|
#4
|
Senior Member
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305
Rep:
|
could u post the output of
less /etc/fstab
Also tell what happens when u do this
cd /mnt
ls
|
|
|
01-03-2004, 02:20 AM
|
#5
|
LQ Newbie
Registered: Sep 2003
Location: China
Distribution: One with KDE, apt-get, amd64 support
Posts: 15
Original Poster
Rep:
|
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?
|
|
|
01-03-2004, 02:25 AM
|
#6
|
LQ Newbie
Registered: Sep 2003
Location: China
Distribution: One with KDE, apt-get, amd64 support
Posts: 15
Original Poster
Rep:
|
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.
|
|
|
01-03-2004, 02:47 AM
|
#7
|
Senior Member
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305
Rep:
|
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
|
|
|
01-03-2004, 03:03 AM
|
#8
|
LQ Newbie
Registered: Sep 2003
Location: China
Distribution: One with KDE, apt-get, amd64 support
Posts: 15
Original Poster
Rep:
|
'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.
|
|
|
01-03-2004, 05:18 AM
|
#9
|
Senior Member
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305
Rep:
|
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?
|
|
|
01-03-2004, 05:30 AM
|
#10
|
LQ Newbie
Registered: Sep 2003
Location: China
Distribution: One with KDE, apt-get, amd64 support
Posts: 15
Original Poster
Rep:
|
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!
|
|
|
01-03-2004, 06:04 AM
|
#11
|
Senior Member
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305
Rep:
|
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.
|
|
|
01-03-2004, 07:04 AM
|
#12
|
LQ Newbie
Registered: Sep 2003
Location: China
Distribution: One with KDE, apt-get, amd64 support
Posts: 15
Original Poster
Rep:
|
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.
|
|
|
01-04-2004, 10:09 AM
|
#13
|
Senior Member
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305
Rep:
|
i have no clue as to the existence of the /etc/fstab.swp file.
Sorry but i cannot assist you here.
|
|
|
01-04-2004, 04:35 PM
|
#14
|
Member
Registered: Oct 2002
Location: FDR India
Distribution: RH9, Knoppix, MEPIS
Posts: 65
Rep:
|
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
|
|
|
01-05-2004, 03:49 AM
|
#15
|
Senior Member
Registered: Aug 2003
Location: New Delhi, India
Distribution: Fedora 7
Posts: 1,305
Rep:
|
So, it is safe to delete the swp file and then try to edit the /etc/fstab
|
|
|
All times are GMT -5. The time now is 07:51 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|