Jump to content

screwed up my lilo conf


jmanjeff
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.............

 

resume=/dev/hda7

 

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

 

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...........

 

mount /dev/fd0

 

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

 

cp /etc/fstab /mnt/floppy

 

otis

Edited by chris z
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...