Menu

#24 /dev/[cciss,rd,ida], grub & label mounts

open
None
5
2003-04-10
2002-11-16
No

I think i've got bugs SI 639221 & 639216 mostly licked.
I was able to get through the partition/file copy
sections, but the install
failed when trying to install grub w/ SC.

here's a transcribed copy of the error:

Probing devices to guess BIOS drives. This may take a
long time.
ide-floppy driver 0.97.sv
hdc: driver not present
df: Warning: cannot read table of mounted filesystems
df: Warning: cannot read table of mounted filesystems
: Not found or not a block device.
WARNING: Label / not found anywhere on the system! at
/usr/lib/systemconfig/Boo\t/Grub.pm line 207
readline() on closed filehandle Boot::Label::IN at
/usr/lib/systemconfig/Boot/L\abel.pm line 84.
Couldn't find grub root at
/usr/lib/systemconfig/Boot.pm line 87

Couldn't find grub root at
/usr/lib/systemconfig/Boot.pm line 87

Error: None of hte following bootloaders were
successfully setup on your system\:
YaBoot,Iseries,EFI,Elilo,Lilo,Grub,Palo

however, SI seems to have labelled it properly:
# chroot /a e2label /dev/ida/c0d0p1
/
#

i'm using the SC 2.0.3-1 rpms.
if i explicitly specify the root device in
/etc/systemimager/autoinstallscript.conf & regen a
master script, things work fine all the way through reboot.

Discussion

  • Michael Chase-Salerno

    • assigned_to: nobody --> pramath
     
  • Nobody/Anonymous

    Logged In: NO

    Hi

    As indicated by Ian Braithwaite and dann frazier,
    post-install needs a mtab file on a client during boot phase
    and
    manually creating a suitable /etc/mtab file on the server
    can solve
    temporarily this problem (chroot /a/ /sbin/grub-install
    works fine
    after to do that)

    But also (I am working with Rehhat 8.0

    Post-install with systemconfigurator-2.0.5 fail when the
    network
    client try to configure grub may be due to LABEL indication
    in
    /etc/fstab.

    I have this error:

    Could not find device for /boot:Not found or not a block
    devices
    WARNING= LABEL / not found anywhere on the system!
    at /usr/lib/systemconfig/Boot/Grub.pm line 207
    readline() on closed filehandle IN at
    /usr/lib/systemconfig/Boot/Label.pm line 84

    Grub.pm--------------------------------------------------
    sub find_grub_root {
    207 my $fstab = Boot::Label::fstab_struct("/etc/fstab");
    Label.pm------------------------------------------------

    sub fstab_struct {
    my $file = shift;
    my $struct;
    my %labels;
    84 open(IN,"<$file") or (carp ("Couldn't open $file for
    reading"),
    return undef);
    while(<IN>) {
    # get rid of starting spaces
    s/^\s+//;
    --------------------------------------------------------
    Here you will find /etc/fstab used

    images/linuxdrk/etc/fstab file on the server
    LABEL=/ / ext3
    defaults
    1 1
    LABEL=/home /home ext3
    defaults
    1 2
    LABEL=/opt /opt ext3
    defaults
    1 2
    none /dev/pts devpts
    gid=5,mode=620
    0 0
    none /proc proc
    defaults
    0 0
    none /dev/shm tmpfs
    defaults
    0 0
    LABEL=/tmp /tmp ext3
    defaults
    1 2
    LABEL=/usr /usr ext3
    defaults
    1 2
    LABEL=/var /var ext3
    defaults
    1 2
    /dev/rd/c0d1p2 swap swap
    defaults
    0 0

    thanks for your help