LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   updating fstab after drive swap (https://www.linuxquestions.org/questions/linux-newbie-8/updating-fstab-after-drive-swap-706065/)

skinnchip 02-19-2009 09:19 PM

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

akuthia 02-19-2009 09:26 PM

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

skinnchip 02-19-2009 09:41 PM

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

akuthia 02-19-2009 09:48 PM

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

PTrenholme 02-19-2009 09:52 PM

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.


All times are GMT -5. The time now is 04:25 AM.