[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: LILO and big HD's



On Sun, Feb 25, 2001 at 14:08, David B. Harris wrote:
> To quote Pann McCuaig <pann@ourmanpann.com>,
> # Reaches everywhere on my 30G disk partitioned like so:
> # <snip>
> # That is, all 4 partitions are bootable via lilo.
> 
> Hmm... Try putting a kernel on the last partition, and then get LILO to
> boot from it. If it works, would you mind sharing your lilo.conf?

As luck would have it, there _IS_ a kernel on /dev/hdc4. Here is my
lilo.conf, comments and blank lines stripped, and then blank lines
inserted for legibility:

lba32
boot=/dev/hda
install=/boot/boot.b
map=/boot/map
	prompt
	delay=100
	timeout=100
vga=normal

default=potato
image=/boot/potato/vmlinuz-2.2.17
root=/dev/hdc3
	label=potato
	read-only

image=/boot/potato/vmlinuz-2.2.17-old
root=/dev/hdc3
	label=potato-old
	read-only

image=/boot/rescue/vmlinuz-2.2.17
root=/dev/hda3
	label=rescue
	read-only

image=/mnt/boot/rescue/vmlinuz-2.2.17-compact
root=/dev/hdc4
	label=rescueOLD
	read-only
	optional

other=/dev/hdc2
	label=bsd
	table=/dev/hdc

other =/dev/hda4
	label=win95
	table=/dev/hda

Here are the disk partitions:

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1             1         5     40131   83  Linux
/dev/hda2             6        38    265072+  82  Linux swap
/dev/hda3            39       169   1052257+  83  Linux
/dev/hda4   *       170      1027   6891885    c  Win95 FAT32 (LBA)

/dev/hdc1             1     14899   7509064+  83  Linux
/dev/hdc2         14900     29799   7509600   a6  OpenBSD
/dev/hdc3         29800     44699   7509600   83  Linux
/dev/hdc4         44700     59598   7509096   83  Linux

And here is /etc/fstab from /dev/hdc4 (note that both swap and the
separate boot partition are commented out):

/dev/hdc4	/	ext2	defaults,errors=remount-ro	0	1
#/dev/hda3	none	swap	sw			0	0
proc		/proc	proc	defaults			0	0
/dev/fd0	/floppy	auto	defaults,user,noauto		0	0
/dev/scd0	/cdrom	iso9660	defaults,ro,user,noauto		0	0
#/dev/hda1 /boot ext2 rw			0	2

OK, I just mounted /dev/hdc4 on /mnt, ran lilo using the lilo.conf file
above, and booted rescueOLD. Here is the output of mount:

/dev/hdc4 on / type ext2 (rw,errors=remount-ro,errors=remount-ro)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)

Voila!

Luck,
Pann
-- 
geek by nature, Linux by choice                     L I N U X       .~.
                                                    The Choice      /V\
http://www.ourmanpann.com/linux/                     of a GNU      /( )\
                                                    Generation     ^^-^^



Reply to: