Help - Search - Members - Calendar
Full Version: screwed up my lilo conf
MandrivaUsers.org > General Help > Software
jmanjeff
Ok screwed up my lilo conf by repartition my winXP partition

# File generated by DrakX/drakboot
# WARNING: do not forget to run lilo after modifying this file

boot=/dev/hda
map=/boot/map
default="linux"
keytable=/boot/us.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
label="linux"
root=/dev/hda7
initrd=/boot/initrd.img
append="devfs=mount acpi=ht resume=/dev/hda7 splash=silent"
vga=788
read-only
image=/boot/vmlinuz
label="linux-nonfb"
root=/dev/hda7
initrd=/boot/initrd.img
append="devfs=mount acpi=ht resume=/dev/hda7"
read-only
image=/boot/vmlinuz-2.6.3-7mdk
label="263-7"
root=/dev/hda7
initrd=/boot/initrd-2.6.3-7mdk.img
append="devfs=mount acpi=ht resume=/dev/hda7 splash=silent"
read-only
image=/boot/vmlinuz
label="failsafe"
root=/dev/hda7
initrd=/boot/initrd.img
append="failsafe acpi=ht resume=/dev/hda7 devfs=nomount"
read-only
other=/dev/hda1
label="windows"
table=/dev/hda
other=/dev/fd0
label="floppy"
unsafe

image=/boot/vmlinuz-2.6.3-15mdk
label=263-15
root=/dev/hda7
read-only
optional
vga=788
append=" devfs=mount acpi=ht resume=/dev/hda7 splash=silent"
initrd=/boot/initrd-2.6.3-15mdk.img

it should be hda6 not hda7
ok i booted from cd 1>pressed F1 at the splash screen .
typed rescue>choose Mount partitions under /mnt it fond root and mounted hda6
Then i went to the console and ran
chroot /mnt
then ran cat /etc/lilo.conf

then vi /etc/lilo.conf to edit

then ran lilo -v
and reboot but it dos not change still try s to boot hda7

How do i save the changes that i make in vi

I still can boot to XP and OS is mandrake 10 o

Thanks
Jeff
liquidzoo
You can save the changes in vi by making the changes (press i for insert mode) then, when you are done, press the Esc key, then :wq <enter>

These are for vim, but I'm sure they are the same in vi
pmpatrick
You will also have to edit your /etc/fstab to correspond to the new partition structure. Apparrently your root partition shifted from hda7 to hda6, probably because you deleted some partition ahead of hda7. Your fstab still shows the root partition mounted on hda7, your swap and other linux partitions mounted on hda(x+1), where 'x' is the current partition after the change. Editing lilo.conf won't change fstab. You have to do that separately.
jmanjeff
Thanks for the help
1: Ok i got my lilo.conf changed and my fstab has hda6 as ext 3and hda7 as swap
but now i get
resuming from /dev/hda6
Resuming from device hda6
Kernel panic Resume Machine: Unable to find Suspended-data signature ( -misspelled ?

2: is there a way to copy my fstab to a floppy from the rescue console so i can post it . I can't get Knoppix to see any of my partitions for some resion
chris z
if i'm understanding correctly, since you changed /root to hda6 your /swap has now changed also to hda6, unless you have /swap on a partition other than hda6. you would need to also change any of the entries in lilo that read.............

CODE
resume=/dev/hda7


to............

CODE
resume=/dev/hda6


make sure you sun lilo -v after saving the changes.

if you want to copy fstab to a floppy, you're gonna need to mount the floppy drive first. to mount the floppy drive, insert a blank floppy & at the terminal prompt, as root, type...........

CODE
mount /dev/fd0


then to copy fstab type............

CODE
cp /etc/fstab /mnt/floppy


otis
SwiftDeath
Its always a good idea to a the System Rescue Cd (A live cd distro based on fixing a *nix distro).
Which had qpart which is good for editing paritions.

Knoppix is also a good idea to have lying around.
jmanjeff
root should be hda6 and swap partition is hda7

hda1 ntsf XP
hda5 fat32
hda6 ext2 root
hda7 linux swap
jmanjeff
Fixed had to remove any thing to do with resume in lilo.conf

Thanks LiquidZoo i fond one of your old post
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.