LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-24-2004, 05:08 PM   #1
drrnsk8ter4
Member
 
Registered: Apr 2004
Posts: 40

Rep: Reputation: 15
fstab got messed up after adding cd burner


i set up a cd burner and it appears everything is fine (cdrecord -scanbus recognizes it and i can play audio cds with xmms still) but now when i try to use abcde or apt-get i get a message like "cant find cd device". i tried mounting a data disc and got this:
darrin@debian:~$ mount /cdrom
[mntent]: line 8 in /etc/fstab is bad
mount: can't find /cdrom in /etc/fstab or /etc/mtab

so then i looked at my fstab and found this:
#/etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/hda1 / ext2 errors=remount-ro 0 1
/dev/hda2 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/fd0 /floppy auto user,noauto 0 0
/dev/scd0 /cdrom auto noauto, user,exec 0 0


i added the last line myself on a previous attempt to add the cd burner but im sure its the problem. can u explain how to fix it?
 
Old 04-24-2004, 05:12 PM   #2
mandeltuete
Member
 
Registered: Mar 2003
Location: Switzerland
Distribution: Fedora 3
Posts: 75

Rep: Reputation: 15
I think you can't use auto and noauto together. Use auto if you want to automount it (if root does 'mount -a', he will do that while booting, for example). If you could use auto and noauto together, there should be a ',' between them.

HTH
 
Old 04-24-2004, 05:21 PM   #3
drrnsk8ter4
Member
 
Registered: Apr 2004
Posts: 40

Original Poster
Rep: Reputation: 15
well i cahnged my fstab and it seems that it works now except that when i tried the mount command again i got:

debian:~# mount /cdrom
mount: block device /dev/scd0 is write-protected, mounting read-only


and then when i tried to use apt-get i got this:
debian:~# apt-get install grip
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?


???????????
also, i ran apt-get as root
 
Old 04-24-2004, 05:49 PM   #4
mandeltuete
Member
 
Registered: Mar 2003
Location: Switzerland
Distribution: Fedora 3
Posts: 75

Rep: Reputation: 15
Quote:
Originally posted by drrnsk8ter4
well i cahnged my fstab and it seems that it works now except that when i tried the mount command again i got:

debian:~# mount /cdrom
mount: block device /dev/scd0 is write-protected, mounting read-only
If you have a finished cd in your drive, that's normal. It just means, that you can't write to the media.

Quote:
and then when i tried to use apt-get i got this:
debian:~# apt-get install grip
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
What says
# ls /var/lib/dpkg/lock

Try rebooting, and try it again, maybe there's another apt-get running in background?

# ps ax
will tell you that, for example.

HTH
 
  


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
Need with messed up fstab. Tiyogi Linux - General 11 03-26-2008 12:57 AM
Messed up my fstab, now wont boot! Help, please. MillyFish Linux - Newbie 11 05-13-2004 07:37 AM
RH9 - won't boot - messed up fstab amanu1 Linux - Newbie 1 05-06-2004 07:52 PM
fstab, dvd and burner kdach Linux - Hardware 2 02-23-2004 07:01 AM
messed up my fstab file aditya Linux - Newbie 1 10-07-2002 12:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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