Removed NTFS > Moved /sda4 to the left > BROKE GRUB SETTINGS! HELP!
Long story short my NTFS Drive was infected with a nasty rootkit and I decided to do away with it. Later down the line I wanted to reallocate the freespace to the BT partition, since the NTFS partition was on the 1st cylinder and separated from the reiserfs partition by an ext2 boot and swap I could not do that without deleting both the ext2 and swap and starting them at the first cylinder. 9 Hours later I have a partition that looks like so...
Device Boot Start End Blocks Id System
/dev/sda1 1 32 257008+ 83 Linux
/dev/sda2 33 542 4096575 82 Linux swap / Solaris
/dev/sda4 543 30401 239842417+ 83 Linux
I booted from my USB and ran:
root@bt:~# mkdir /mnt/bt4
root@bt:~# mount /dev/sda4 /mnt/bt4
root@bt:~# mkdir /mnt/bt4/boot
mkdir: cannot create directory `/mnt/bt4/boot': File exists
root@bt:~# mount /dev/sda1 /mnt/bt4/boot
root@bt:~# mkdir /mnt/bt4/{dev,mnt,tmp,proc,sys}
root@bt:~# mount -t proc proc /mnt/bt4/proc/
root@bt:~# mount -o bind /dev /mnt/bt4/dev/
root@bt:~# chroot /mnt/bt4/ /bin/bash
root@bt:/# nano /boot/grub/menu.lst
Here is a copy of the menu.lst
Timeout 30 #The number of seconds GRUB should wait before booting an OS
default 0 #The entry which should be booted by default
fallback 1 #The entry which should be booted in the event of the first one fail$
splashimage=(hd0,0)/grub/bt4.xpm.gz
title BT4 Final
root (hd0,0) # Boot Partition
kernel /vmlinuz-2.6.30.9 root=/dev/sda4 rw vga=0x317
initrd /initrd.img-2.6.30.9
makeactive
chainloader +1
Somewhere in the process of all this it screwed up the GRUB bootloader. How do I go from here and make it so it will boot /dev/sda4 clean from /dev/sda1?
Re: Removed NTFS > Moved /sda4 to the left > BROKE GRUB SETTINGS! HELP!
Reformat and start over. Easiest way.