Fixing fstab and grub.conf





Here is my /etc/fstab file after I have added the line that let's
any user mount /dev/hdb5 to /fc5. This works fine. Also I got rid of the
Stupid LIST= things that mess up fstab. Here it is:

# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/hdb7 / ext3 defaults 1 1
/dev/devpts /dev/pts devpts gid=5,mode=620 0 0
/dev/shm /dev/shm tmpfs defaults 0 0
/dev/proc /proc proc defaults 0 0
/dev/sys /sys sysfs defaults 0 0
/dev/hdb3 swap swap defaults 0 0
/dev/hdb5 /fc5 ext3 noauto,user 0 0
/dev/fd0 /media/floppy auto
pamconsole,exec,noauto,utf8,managed 0 0
/dev/hdd /media/cdrecorder auto
pamconsole,exec,noauto,managed 0 0
/dev/hdc /media/cdrom auto
pamconsole,exec,noauto,managed 0 0

This is my fstab after I plugged in my external hard drive to the
usb port.

/dev/proc /proc proc defaults 0 0
/dev/sys /sys sysfs defaults 0 0
/dev/hdb3 swap swap defaults 0 0
/dev/hdb5 /fc5 ext3 noauto,user 0 0
/dev/fd0 /media/floppy auto
pamconsole,exec,noauto,utf8,managed 0 0
/dev/hdd /media/cdrecorder auto
pamconsole,exec,noauto,managed 0 0
/dev/hdc /media/cdrom auto
pamconsole,exec,noauto,managed 0 0
/dev/sda1 /media/usbdisk ext3
pamconsole,exec,noauto,fscontext=system_u:object_r:removable_t,managed 0 0

Notice the last entry in fstab This whole thing was added to the file by
fstab-sync which is part of the automatic system.

Now to keep things in synch I have been changing
/boot/grub/grub.conf along with the fstab files So this is what it looks
like:

title Fedora Core (2.6.16-1.2108_FC4)
root (hd1,6)
kernel /boot/vmlinuz-2.6.16-1.2108_FC4 ro root=/dev/hdb7 rhgb quiet
initrd /boot/initrd-2.6.16-1.2108_FC4.img

title Fedora Core (2.6.15-1.2054_FC5)
root (hd1,4)
kernel /boot/vmlinuz-2.6.15-1.2054_FC5 ro root=/dev/hdb5 rhgb quiet
initrd /boot/initrd-2.6.15-1.2054_FC5.img

title Fedora Core (2.6.11-1.1369_FC4)
root (hd1,1)
kernel /boot/vmlinuz-2.6.11-1.1369_FC4 ro root=/dev/hdb2 rhgb quiet
initrd /boot/initrd-2.6.11-1.1369_FC4.img

title Fedora Core (2.6.5-1.358)
root (hd1,0)
kernel /boot/vmlinuz-2.6.5-1.358 ro root=/dev/hdb1 rhgb quiet
initrd /boot/initrd-2.6.5-1.358.img

title Other
rootnoverify (hd0,0)
chainloader +1


As you see all the Anaconda LIST= are deleted.

Here is what fstab for FC5 looks like after a simple install with no
problems of any sort.

[karl@k5di fc5]$ cat etc/fstab
LABEL=/1234 / ext3 defaults 1 1
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
LABEL=\uffff\uffff\uffff\uffff\uffff\uffff\uffff\uffff\uffff\uffff\uffff\uffff\
swap swap defaults 0 0
LABEL=+\uffffQ\uffff\uffff@\uffff{\u03c1 swap swap
defaults 0 0
[karl@k5di fc5]$

Notice the botched up swap files?

I will fix the FC5 fstab too. It is simpler than the FC4 file. And
notice it doesn't say it's using fstab-synch but I bet it is.


/dev/hdb5 / ext3 defaults 1 1
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/hdb3 swap swap defaults 0 0

And above is the corrected fstab for FC5. It takes just a few
minutes and it makes me happy to see these files that are basic to a Linux
system written properly.

Karl


--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • FC4->FC5 kernel 2.6.17-1.2139 panic
    ... I did an upgrade from FC4 to FC5 yesterday. ... Setuproot: error mounting /proc: No such file or directory ... root ... title Fedora Core ...
    (Fedora)
  • Re: fstab missing line
    ... >> i seem to miss one line in the fstab in my FC5 machine. ... I had other odd things happen with this FC5 installation and thought it was merely related to those peculiarities? ... I had installed FC5 from the same DVD on another computer via my LAN connection while this one ran FC4 and that went as expected, ...
    (Fedora)
  • Re: [SLE] Almost in a panic here...
    ... I use SuSE 9.3 by the way. ... so I then went to fstab and removed the one I'd ... As root, I open konqueror to browse directories and when I click on ... 255 heads, 63 sectors/track, 9964 cylinders ...
    (SuSE)
  • Re: /-partition : lilo.conf - root= vs. fstab
    ... >> to let him know where to start and once in fstab. ... Does lilo or kernel already ... the root partition is usually mounted read-only so it can ... The first place the kernel looks for a "root=" specification is on the command ...
    (comp.os.linux.misc)
  • Re: Recent updates caused Grub installation to be damaged?
    ... as fstab and grub.conf have been changed by upgrade; i fixed them mounting disk on an external usb box. ... title Fedora ... root ... initrd /initrd-2.6.25.6-55.fc9.i686.img ...
    (Fedora)