BT4 PreFinal Manual Installation
:: HDD Partitioning
+64M merely means 64 MB which is more that enough to hold the GRUB folder along with the kernel. It is a good practice to install the boot manager in a separate partition from the root partition.
LILO is no longer our default bootloader.
/dev/sda1 +64M Partition Boot Sector
In case you run out of physical memory, swap space will kick in. A rule of thumb is: double your memory size if you have low memory (e.i 1GB), same size if you have high memory (e.i 4Gb). It is all about personal taste!
/dev/sda2 Varies Swap
/dev/sda3 Varies /
/dev/sda4 Varies Windows
:: Formatting Drives
root@bt:~# mke2fs /dev/sda1
root@bt:~# mkswap /dev/sda2
root@bt:~# swapon /dev/sda2
root@bt:~# mkreiserfs /dev/sda3
:: Manually Install
root@bt:~# mkdir /mnt/bt4
root@bt:~# mount /dev/sda3 /mnt/bt4/
root@bt:~# mkdir /mnt/bt4/boot
root@bt:~# mount /dev/sda1 /mnt/bt4/boot
root@bt:~# cp --preserve -R /{bin,home,pentest,root,usr,boot,etc,lib,opt,sbin,var} /mnt/bt4/
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/
:: Bootsplash Support
root@bt:~# cd /media/cdrom0/boot
root@bt:~# cp --preserve -R {bootsplash,vmlinuz,initrd.gz} /mnt/bt4/boot/
root@bt:~# chroot /mnt/bt4/ /bin/bash
:: Editting GRUB /boot/grub/menu.lst
root@bt:~# nano /boot/grub/menu.lst
timeout 5 #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 failing
splashimage=(hd0,0)/grub/bt4.xpm.gz
# This is an example of using a separate partition for /boot
title BT4 PreFinal
root (hd0,0) # Boot Partition
kernel /vmlinuz root=/dev/sda3 rw vga=0x317
initrd /initrd.gz
title Microsoft Windows XP Home
root (hd0,3)
makeactive
chainloader +1
:: Installing GRUB (When /boot resides in its own partition)
root@bt:~# grub
grub> find /grub/stage1
(hd0,0)
grub> root (hd0,0)
grub> setup (hd0)
grub> quit
Note: The “root” line must point to the location of your /boot/ partition if you have one. If you do not have one, point it at your / partition.
Thanks Remote-Exploit.org
No comments:
Post a Comment