public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] lilo and SW-RAID-boot-partition
@ 2007-03-01 10:12 Stefan G. Weichinger
  2007-03-02 22:13 ` Stefan G. Weichinger
  2007-03-03  9:25 ` Mark Kirkwood
  0 siblings, 2 replies; 7+ messages in thread
From: Stefan G. Weichinger @ 2007-03-01 10:12 UTC (permalink / raw
  To: gentoo-user


Greets, gentoo-users.

I have a lilo-related problem and can't find a solution on the net, so I
ask you for ideas.

This box should boot from SW-RAID-1, and it has also already done that.
After editing a label inside lilo.conf I issued "lilo" and got this:


# lilo -v5
LILO version 22.7.3, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2006 John Coffman
Released 11-Aug-2006 and compiled at 10:53:57 on Mar  1 2007

raid_setup: dev=000C  rdev=0901
pf_hard_disk_scan: (3,0) /dev/hda
pf_hard_disk_scan: (3,1) /dev/hda1
lookup_dev:  number=0300
lookup_dev:  number=0300
pf:  dev=0300  id=12D0E48D  name=/dev/hda
geo_query_dev: device=0300
lookup_dev:  number=0300
exit geo_query_dev
bios_dev:  device 0300
lookup_dev:  number=0300
bios_dev:  masked device 0300, which is /dev/hda
bios_dev: geometry check found 0 matches
bios_dev: (0x85)  vol-ID=00000000  *PT=0807055E
bios_dev: (0x84)  vol-ID=00000000  *PT=08070516
bios_dev: (0x83)  vol-ID=00000000  *PT=080704CE
bios_dev: (0x82)  vol-ID=00000000  *PT=08070486
bios_dev: (0x81)  vol-ID=288B2D7D  *PT=0807043E
bios_dev: (0x80)  vol-ID=12D0E48D  *PT=080703F6
bios_dev: PT match found 2 matches (0x80)
bios_dev: S/N match found 1 match (0x80)
pf_hard_disk_scan: (3,2) /dev/hda2
pf_hard_disk_scan: (3,3) /dev/hda3
pf_hard_disk_scan: (3,4) /dev/hda4
part_nowrite: read:: No such file or directory


-- The configs:

# /etc/lilo.conf

menu-scheme=Wb:kw:Wb:Wb
lba32

boot=/dev/md1
raid-extra-boot="/dev/hda,/dev/hdc"
change-rules
reset
read-only
default=Gentoo
timeout=5

#image=/boot/kernel-genkernel-x86-2.6.18-gentoo-r6
#label=2.6.18-r6
#vga=0x314
#initrd=/boot/initramfs-genkernel-x86-2.6.18-gentoo-r6

image=/boot/kernel-genkernel-x86-2.6.19-gentoo-r5
label=Gentoo
vga=0x314
initrd=/boot/initramfs-genkernel-x86-2.6.19-gentoo-r5

# ls -l /boot
total 9.1M
drwxr-xr-x  3 root root 1.0K Mar  1 10:54 .
drwxr-xr-x 19 root root 4.0K Feb 26 12:05 ..
-rw-r--r--  1 root root    0 Aug  3  2006 .keep
-rw-r--r--  1 root root    0 Mar  1 10:54 .keep_sys-boot_lilo-0
-rw-r--r--  1 root root 764K Feb 26 12:43
System.map-genkernel-x86-2.6.18-gentoo-r6
-rw-r--r--  1 root root 786K Feb 26 14:12
System.map-genkernel-x86-2.6.19-gentoo-r5
lrwxrwxrwx  1 root root    1 Feb 26 11:48 boot -> .
-rw-r--r--  1 root root  512 Feb 26 12:54 boot.0300
-rw-r--r--  1 root root  512 Feb 26 12:54 boot.0901
-rw-r--r--  1 root root  512 Feb 26 12:54 boot.1600
-rw-r--r--  1 root root 1.6M Feb 26 12:44
initramfs-genkernel-x86-2.6.18-gentoo-r6
-rw-r--r--  1 root root 1.6M Feb 26 14:13
initramfs-genkernel-x86-2.6.19-gentoo-r5
-rw-r--r--  1 root root 2.3M Feb 26 12:43
kernel-genkernel-x86-2.6.18-gentoo-r6
-rw-r--r--  1 root root 2.1M Feb 26 14:12
kernel-genkernel-x86-2.6.19-gentoo-r5
drwx------  2 root root  12K Jun 26  2006 lost+found
-rw-------  1 root root  90K Feb 26 19:08 map

# mount
/dev/md/3 on / type ext3 (rw,noatime)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec)
udev on /dev type tmpfs (rw,nosuid)
devpts on /dev/pts type devpts (rw,nosuid,noexec)
shm on /dev/shm type tmpfs (rw,noexec,nosuid,nodev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc
(rw,noexec,nosuid,nodev)
/dev/md/4 on /mnt/data type ext3 (rw,noatime)
/dev/md/1 on /boot type ext2 (rw,noatime)

# cat /proc/partitions
major minor  #blocks  name

   3     0   78184008 hda
   3     1      96358 hda1
   3     2     996030 hda2
   3     3    9767520 hda3
   3     4   67320382 hda4
  22     0   78184008 hdc
  22     1      96358 hdc1
  22     2     996030 hdc2
  22     3    9767520 hdc3
  22     4   67320382 hdc4
   8     0  390711384 sda
   8     1  390708801 sda1
   8    16  390711384 sdb
   8    17  390708801 sdb1
   8    32  390711384 sdc
   8    33  390708801 sdc1
   8    48  390711384 sdd
   8    49  390708801 sdd1
   9     4  781417472 md4
   9     3    9767424 md3
   9     2     995904 md2
   9     1      96256 md1

# cat /proc/version
Linux version 2.6.19-gentoo-r5 (root@samba) (gcc version 4.1.1 (Gentoo
4.1.1-r1)) #3 Mon Feb 26 14:12:20 CET 2007

# cat /etc/fstab

/dev/md1                /boot           ext2            noauto,noatime  1 2
/dev/md3                /               ext3            noatime         0 1
/dev/md2                none            swap            sw              0 0
/dev/md4                /mnt/data       ext3            noatime         0 1
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro       0 0
proc                    /proc           proc            defaults        0 0
shm                     /dev/shm        tmpfs
nodev,nosuid,noexec     0 0


---

Did I forget something?

Ah, yes, lilo-22.7.3-r1 used and already re-emerged.
I even tried to install LILO to /dev/hda only, without the
raid-extra-boot parameter, same messages.

Originally LILO was installed inside the chroot, maybe I did something
wrong there (although it installed clean and also booted fine). I used
LILO because I wasn't able to install GRUB with the SW-RAID-stuff.

Maybe this doesn't properly work with the now running kernel?

Any ideas how to solve that?

This box has to be rebooted early next week due to a change of location ;)

Thanks, greets, Stefan.

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] lilo and SW-RAID-boot-partition
  2007-03-01 10:12 [gentoo-user] lilo and SW-RAID-boot-partition Stefan G. Weichinger
@ 2007-03-02 22:13 ` Stefan G. Weichinger
  2007-03-03  1:28   ` Dan Farrell
  2007-03-03  9:25 ` Mark Kirkwood
  1 sibling, 1 reply; 7+ messages in thread
From: Stefan G. Weichinger @ 2007-03-02 22:13 UTC (permalink / raw
  To: gentoo-user

Stefan G. Weichinger schrieb:
> Greets, gentoo-users.
> 
> I have a lilo-related problem and can't find a solution on the net, so I
> ask you for ideas.

[..]

> Any ideas how to solve that?

I *bump* this one ... noone with any hint on this?

Stefan
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] lilo and SW-RAID-boot-partition
  2007-03-02 22:13 ` Stefan G. Weichinger
@ 2007-03-03  1:28   ` Dan Farrell
  0 siblings, 0 replies; 7+ messages in thread
From: Dan Farrell @ 2007-03-03  1:28 UTC (permalink / raw
  To: gentoo-user

On Fri, 02 Mar 2007 23:13:02 +0100
"Stefan G. Weichinger" <lists@xunil.at> wrote:

> Stefan G. Weichinger schrieb:
> > Greets, gentoo-users.
> > 
> > I have a lilo-related problem and can't find a solution on the net,
> > so I ask you for ideas.
> 
> [..]
> 
> > Any ideas how to solve that?
> 
> I *bump* this one ... noone with any hint on this?
> 
> Stefan
i seem to sense you'd be slightly offended if i suggested grub
instead...
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] lilo and SW-RAID-boot-partition
  2007-03-01 10:12 [gentoo-user] lilo and SW-RAID-boot-partition Stefan G. Weichinger
  2007-03-02 22:13 ` Stefan G. Weichinger
@ 2007-03-03  9:25 ` Mark Kirkwood
  2007-03-03 11:52   ` Stefan G. Weichinger
  1 sibling, 1 reply; 7+ messages in thread
From: Mark Kirkwood @ 2007-03-03  9:25 UTC (permalink / raw
  To: gentoo-user

Stefan G. Weichinger wrote:
> Greets, gentoo-users.
> 
> I have a lilo-related problem and can't find a solution on the net, so I
> ask you for ideas.
> 
> This box should boot from SW-RAID-1, and it has also already done that.
> After editing a label inside lilo.conf I issued "lilo" and got this:
> 

> # /etc/lilo.conf
> 
> menu-scheme=Wb:kw:Wb:Wb
> lba32
> 
> boot=/dev/md1
> raid-extra-boot="/dev/hda,/dev/hdc"
> change-rules
> reset
> read-only
> default=Gentoo
> timeout=5
> 
> #image=/boot/kernel-genkernel-x86-2.6.18-gentoo-r6
> #label=2.6.18-r6
> #vga=0x314
> #initrd=/boot/initramfs-genkernel-x86-2.6.18-gentoo-r6
> 
> image=/boot/kernel-genkernel-x86-2.6.19-gentoo-r5
> label=Gentoo
> vga=0x314
> initrd=/boot/initramfs-genkernel-x86-2.6.19-gentoo-r5
> 

> # cat /etc/fstab
> 
> /dev/md1                /boot           ext2            noauto,noatime  1 2
> /dev/md3                /               ext3            noatime         0 1
> /dev/md2                none            swap            sw              0 0
> /dev/md4                /mnt/data       ext3            noatime         0 1
> /dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro       0 0
> proc                    /proc           proc            defaults        0 0
> shm                     /dev/shm        tmpfs
> nodev,nosuid,noexec     0 0
> 

I think you might need a root=/dev/md3 inside the specification for 
'Gentoo':

  image=/boot/kernel-genkernel-x86-2.6.19-gentoo-r5
  label=Gentoo
  vga=0x314
  initrd=/boot/initramfs-genkernel-x86-2.6.19-gentoo-r5
  root=/dev/md3

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] lilo and SW-RAID-boot-partition
  2007-03-03  9:25 ` Mark Kirkwood
@ 2007-03-03 11:52   ` Stefan G. Weichinger
  2007-03-15  9:03     ` Bryan Whitehead
  0 siblings, 1 reply; 7+ messages in thread
From: Stefan G. Weichinger @ 2007-03-03 11:52 UTC (permalink / raw
  To: gentoo-user

Mark Kirkwood schrieb:

> I think you might need a root=/dev/md3 inside the specification for
> 'Gentoo':
> 
>  image=/boot/kernel-genkernel-x86-2.6.19-gentoo-r5
>  label=Gentoo
>  vga=0x314
>  initrd=/boot/initramfs-genkernel-x86-2.6.19-gentoo-r5
>  root=/dev/md3

Thanks for that, but it didn't work.
Same error as before.
S



-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] lilo and SW-RAID-boot-partition
  2007-03-03 11:52   ` Stefan G. Weichinger
@ 2007-03-15  9:03     ` Bryan Whitehead
  2007-03-15 10:39       ` [gentoo-user] lilo and SW-RAID-boot-partition [SOLVED] Stefan G. Weichinger
  0 siblings, 1 reply; 7+ messages in thread
From: Bryan Whitehead @ 2007-03-15  9:03 UTC (permalink / raw
  To: gentoo-user

This is what I have for sw-raid for lilo:

disk=/dev/hda
bios=0x80
disk=/dev/hdc
bios=0x81
menu-scheme=Wb
boot = /dev/md0
prompt
map = /boot/System.map
raid-extra-boot=/dev/hda,/dev/hdc
lba32
timeout=150
delay = 50
default = 2.6.14
serial = 0,9600n8
vga = normal    # Normal VGA console
        image = /boot/vmlinuz-2.6.14-gentoo
        append= "console=ttyS0,9600 console=tty0"
        root = /dev/md1
        label = 2.6.14
        read-only # read-only for checking

My /etc/fstab:
/dev/md0                /boot           ext2            noatime         1 1
/dev/md1                /               ext3            noatime         0 0
/dev/md3                none            swap            
sw                      0 0
/dev/md2                /tmp            ext3            noatime 0 0
/dev/md4                /var            ext3            noatime         0 0
/dev/md5                /export/home    xfs             noatime         0 0
none                    /proc           proc            
defaults                0 0
none                    /dev/shm        tmpfs           
defaults                0 0
/export/home            /home           xfs             
bind                    0 0


Stefan G. Weichinger wrote:
> Mark Kirkwood schrieb:
>
>   
>> I think you might need a root=/dev/md3 inside the specification for
>> 'Gentoo':
>>
>>  image=/boot/kernel-genkernel-x86-2.6.19-gentoo-r5
>>  label=Gentoo
>>  vga=0x314
>>  initrd=/boot/initramfs-genkernel-x86-2.6.19-gentoo-r5
>>  root=/dev/md3
>>     
>
> Thanks for that, but it didn't work.
> Same error as before.
> S
>
>
>
>   

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] lilo and SW-RAID-boot-partition [SOLVED]
  2007-03-15  9:03     ` Bryan Whitehead
@ 2007-03-15 10:39       ` Stefan G. Weichinger
  0 siblings, 0 replies; 7+ messages in thread
From: Stefan G. Weichinger @ 2007-03-15 10:39 UTC (permalink / raw
  To: gentoo-user

Bryan Whitehead schrieb:
> This is what I have for sw-raid for lilo:
> 
> disk=/dev/hda
> bios=0x80
> disk=/dev/hdc
> bios=0x81
> menu-scheme=Wb
> boot = /dev/md0
> prompt
> map = /boot/System.map
> raid-extra-boot=/dev/hda,/dev/hdc
> lba32
> timeout=150
> delay = 50
> default = 2.6.14
> serial = 0,9600n8
> vga = normal    # Normal VGA console
>        image = /boot/vmlinuz-2.6.14-gentoo
>        append= "console=ttyS0,9600 console=tty0"
>        root = /dev/md1
>        label = 2.6.14
>        read-only # read-only for checking
> 
> My /etc/fstab:
> /dev/md0                /boot           ext2            noatime         1 1
> /dev/md1                /               ext3            noatime         0 0
> /dev/md3                none            swap           
> sw                      0 0
> /dev/md2                /tmp            ext3            noatime 0 0
> /dev/md4                /var            ext3            noatime         0 0
> /dev/md5                /export/home    xfs             noatime         0 0
> none                    /proc           proc           
> defaults                0 0
> none                    /dev/shm        tmpfs          
> defaults                0 0
> /export/home            /home           xfs            
> bind                    0 0

Thanks a lot for the help, in the meantime I have done another try with
grub and was successful. lilo didn't install anymore so I removed it  ...

Stefan

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-03-15 10:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-01 10:12 [gentoo-user] lilo and SW-RAID-boot-partition Stefan G. Weichinger
2007-03-02 22:13 ` Stefan G. Weichinger
2007-03-03  1:28   ` Dan Farrell
2007-03-03  9:25 ` Mark Kirkwood
2007-03-03 11:52   ` Stefan G. Weichinger
2007-03-15  9:03     ` Bryan Whitehead
2007-03-15 10:39       ` [gentoo-user] lilo and SW-RAID-boot-partition [SOLVED] Stefan G. Weichinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox