LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-19-2009, 10:19 PM   #1
skinnchip
LQ Newbie
 
Registered: Jan 2009
Location: toronto
Distribution: slack
Posts: 16

Rep: Reputation: 0
updating fstab after drive swap


Good evening everyone!

i have a question regarding fstab, and a rom drive that i recently swapped out in my system.

just a couple days ago i had to swap a cd-rom drive out of a external usb case, and replace it with a dvd-rom.

no biggie! it still works.

catch!:
while booting the system, the system "takes fore-ever" searching for the cd-rom. this takes some time of course. and eventually finds the dvd-rom.
i want to fix this! im assuming i need to edit something in my fstab file.

this is how it reads: (after installing dvd-rom)

/dev/hda1 swap swap defaults 0 0
/dev/hda2 / ext3 defaults 1 1
/dev/hda3 /home ext3 defaults 1 2
/dev/sda1 /home ntfs-3g umask=000 1 0
/dev/sdb1 /home vfat defaults 1 0
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0

any sugestions would be a great help!

thanks in advance!
skinnchip
 
Old 02-19-2009, 10:26 PM   #2
akuthia
Member
 
Registered: Oct 2007
Location: triad, nc, usa
Distribution: Ubuntu
Posts: 232

Rep: Reputation: 29
i dont know, but im gonna give myself a cookie if im right, but i think

Code:
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
is gonna be the line you need to remove
 
Old 02-19-2009, 10:41 PM   #3
skinnchip
LQ Newbie
 
Registered: Jan 2009
Location: toronto
Distribution: slack
Posts: 16

Original Poster
Rep: Reputation: 0
hehehe! mmm cookies!

it doesn't seem like it needs to be there no!

but i assumed because it is hashed out "#" i shouldn't need to remove it.
i'ma lookin fer sum answers now, let u know if u can have a cookie!

heheh

mmm cookies!

thanks
skinnchip
 
Old 02-19-2009, 10:48 PM   #4
akuthia
Member
 
Registered: Oct 2007
Location: triad, nc, usa
Distribution: Ubuntu
Posts: 232

Rep: Reputation: 29
assuming thats a direct copy of your file, it also appears like you MAYBE missing a space between the hash and the line.... but i'm seeing it both ways else where in threads...

edit: forgot to mention, for this reason i prefer to remove no longer needed code completely instead of hashing/commenting them out. it's just personal taste, but reduces code bloat an leaves comments for explanations as to why things are a given way

Last edited by akuthia; 02-19-2009 at 10:54 PM.
 
Old 02-19-2009, 10:52 PM   #5
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
No, that already a comment. I'd suggest instead removing the comment symbol (the #) so udev (or your desktop manager) will not need to search the PCI bus for "unknown" devices.

You could,of course, cover all your bases:
Code:
$ cat /Fedora/etc/fstab | grep -i '\(dvd\)\|\(cd\)'
/dev/cdrom              /media/cdrom            udf,iso9660 user,noauto,exec,utf8       0 0
/dev/dvdrom             /media/dvdrom           udf,iso9660 user,noauto,exec,utf8       0 0
/dev/cdrw               /media/cdrw             udf,iso9660 rw,user,noauto,exec,utf8    0 0
/dev/dvdrw              /media/dvdrw            udf,iso9660 rw,user,noauto,exec,utf8    0 0
/dev/sr0                /media/cd               udf,iso9660 rw,user,noauto,exec,utf8    0 0
But that's probably overkill. (And I only have that all there 'cause I was playing around one day.) Note that the /dev/sr0 is the device that udev on Fedora 10 assigns when a disk is loaded. On Ubuntu Jaunty it's dev/scd0, so the name is, apparently, chosen by whoever wrote the udev rules for your distribution.
 
  


Reply

Tags
fstab


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
fstab and swap question radiodee1 Linux - Newbie 3 10-18-2006 07:35 AM
pc hangs when it gets to: Updating /etc/fstab Felix Kutame Linux - Software 2 03-02-2006 01:51 AM
updating by way of hardware swap jbeiter Linux - Enterprise 2 11-04-2004 10:41 PM
About fstab and swap research2004 Linux - Newbie 2 02-19-2004 06:10 AM
updating /etc/fstab JMK Linux - Newbie 7 01-20-2004 01:35 PM


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