kansasnoob wrote:
I hope that's helpful.
This is from my fresh install of Debian Squeeze.
Code: Select all
/home/andreas# dpkg -l | grep grub
ii grub-common 1.98~20100115-1 GRand Unified Bootloader, version 2 (common files)
ii grub-pc 1.98~20100115-1 GRand Unified Bootloader, version 2 (PC/BIOS version)
apt-cache search grub gives me this:
grub-choose-default - Control Grub Default through a GUI
grub-splashimages - a collection of great GRUB splashimages
grub-disk - GRUB bootable disk image (dummy package)
grub-doc - Documentation for GRand Unified Bootloader (dummy package)
grub-legacy-doc - Documentation for GRUB Legacy
grub-legacy - GRand Unified Bootloader (Legacy version)
grub - GRand Unified Bootloader (dummy package)
grub2-splashimages - a collection of great GRUB2 splashimages
grub-common - GRand Unified Bootloader, version 2 (common files)
grub-coreboot - GRand Unified Bootloader, version 2 (Coreboot version)
grub-efi-amd64 - GRand Unified Bootloader, version 2 (EFI-AMD64 version)
grub-efi-ia32 - GRand Unified Bootloader, version 2 (EFI-IA32 version)
grub-efi - GRand Unified Bootloader, version 2 (dummy package)
grub-emu - GRand Unified Bootloader, version 2 (emulated version)
grub-firmware-qemu - GRUB firmware image for QEMU
grub-ieee1275 - GRand Unified Bootloader, version 2 (Open Firmware version)
grub-linuxbios - GRand Unified Bootloader, version 2 (dummy package)
grub-pc - GRand Unified Bootloader, version 2 (PC/BIOS version)
grub-rescue-pc - GRUB bootable rescue images, version 2 (PC/BIOS version)
grub2 - GRand Unified Bootloader, version 2 (dummy package)
And a whole lot of other crap which is irrelevant.
Anyways, now I'm going to move the /boot/grub to /boot/backup_grub and try to install grub (0.97).
This is now the ls of /boot
Code: Select all
backup_grub grub initrd.img-2.6.32-trunk-amd64.bak vmlinuz-2.6.32-trunk-amd64
config-2.6.32-trunk-amd64 initrd.img-2.6.32-trunk-amd64 System.map-2.6.32-trunk-amd64
According to Kansasnoob, (which is outside and having fun with his goats! That's gotta be pretty fun!
) I should use synaptic to play with the installed grub and such. I dont use synaptic since I dont have gnome installed. Going to try my best anyways.
apt-get install grub-legacy which give me this:
Code: Select all
multiboot-doc grub-emu grub-legacy-doc mdadm
The following NEW packages will be installed:
grub-common grub-legacy os-prober
Then I had to update-grub and that gave me this:
Code: Select all
Searching for GRUB installation directory ... found: /boot/grub
Probing devices to guess BIOS drives. This may take a long time.
Searching for default file ... Generating /boot/grub/default file and setting the default boot entry to 0
entry not specified.
No problem, cause I'm going to run grub-install /dev/sda
And that gave me this:
root@debianUSB:/etc/apt# grub-install /dev/sda
Searching for GRUB installation directory ... found: /boot/grub
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
(hd0) /dev/sda
So far so good I guess.
Now it's time to update-grub
And voila, the end of it looked like this:
Code: Select all
root@debianUSB:/etc/apt# update-grub
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ...
Generating /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.32-trunk-amd64
Updating /boot/grub/menu.lst ... done
Now it's time to run grub and run find boot /boot/grub/stage1
And that gave me this, as suspected
Code: Select all
grub> find /boot/grub/stage1
(hd0,0)
grub>
And next up:
Code: Select all
grub> root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0,0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0,0)"... failed (this is not fatal)
Running "embed /boot/grub/e2fs_stage1_5 (hd0,0)"... failed (this is not fatal)
Running "install /boot/grub/stage1 (hd0,0) /boot/grub/stage2 p /boot/grub/menu.lst "... succeeded
Done.
grub>
Not sure about the first error there, since /dev/sda is ext3, but all systems are go so far in my view.
And now /boot/grub looks like this
Code: Select all
root@debianUSB:/boot/grub# ls -l
total 212
-rw-r--r-- 1 root root 197 2010-03-12 09:39 default
-rw-r--r-- 1 root root 15 2010-03-12 09:38 device.map
-rw-r--r-- 1 root root 8672 2010-03-12 09:39 e2fs_stage1_5
-rw-r--r-- 1 root root 8512 2010-03-12 09:39 fat_stage1_5
-rw-r--r-- 1 root root 9536 2010-03-12 09:39 jfs_stage1_5
-rw-r--r-- 1 root root 4047 2010-03-12 09:41 menu.lst
-rw-r--r-- 1 root root 7872 2010-03-12 09:39 minix_stage1_5
-rw-r--r-- 1 root root 10688 2010-03-12 09:39 reiserfs_stage1_5
-rw-r--r-- 1 root root 512 2010-03-12 09:39 stage1
-rw-r--r-- 1 root root 126728 2010-03-12 09:39 stage2
-rw-r--r-- 1 root root 10248 2010-03-12 09:39 xfs_stage1_5
Looking good in my opinion! (Not like the crap that fills the grub2 /boot/grub folder)
Now I'm going to boot this sucker to see if it works! And hopefully the classic grub front is presented.
About a minute later, it works pretty good.
But /etc/grub.d/ is still populated (not good, create confusion)
Same goes to /etc/default/grub
And to make this perfect, I would like to remove the UUID stuff from menu.lst
Code: Select all
title Debian GNU/Linux, kernel 2.6.32-trunk-amd64
root (hd0,0)
kernel /boot/vmlinuz-2.6.32-trunk-amd64 root=UUID=6271c35e-a80a-45c2-a4f8-441f54aec1fd ro
initrd /boot/initrd.img-2.6.32-trunk-amd64
A big thanks to Kansasnoob! What a ironic nick!
But I'm still a bit upset of grub-common, I don't see why I need to have that package installed. Don't worry I'm not going to remove it, yet.
Code: Select all
root@debianUSB:/etc/default# dpkg -l | grep grub
ii grub-common 1.98~20100115-1 GRand Unified Bootloader, version 2 (common files)
ii grub-legacy 0.97-59 GRand Unified Bootloader (Legacy version)
rc grub-pc 1.98~20100115-1 GRand Unified Bootloader, version 2 (PC/BIOS version)