jmanjeff Posted July 20, 2004 Report Share Posted July 20, 2004 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 Quote Link to comment Share on other sites More sharing options...
liquidzoo Posted July 20, 2004 Report Share Posted July 20, 2004 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 Quote Link to comment Share on other sites More sharing options...
pmpatrick Posted July 20, 2004 Report Share Posted July 20, 2004 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. Quote Link to comment Share on other sites More sharing options...
jmanjeff Posted July 21, 2004 Author Report Share Posted July 21, 2004 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 Quote Link to comment Share on other sites More sharing options...
chris z Posted July 21, 2004 Report Share Posted July 21, 2004 (edited) 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 July 21, 2004 by chris z Quote Link to comment Share on other sites More sharing options...
SwiftDeath Posted July 21, 2004 Report Share Posted July 21, 2004 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. Quote Link to comment Share on other sites More sharing options...
jmanjeff Posted July 21, 2004 Author Report Share Posted July 21, 2004 (edited) root should be hda6 and swap partition is hda7 hda1 ntsf XP hda5 fat32 hda6 ext2 root hda7 linux swap Edited July 21, 2004 by jmanjeff Quote Link to comment Share on other sites More sharing options...
jmanjeff Posted July 22, 2004 Author Report Share Posted July 22, 2004 Fixed had to remove any thing to do with resume in lilo.conf Thanks LiquidZoo i fond one of your old post Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.