Howto Install linux via grub.
- February 1st, 2007
- Write comment
What I used to install FC6 on the dell4100, from the information found on the
web below my write up.
1) Copy vmlinuz and initrd from isolinux directory on the first CD,
to /boot of the machine you want to install on.
2) Create grub entry on the machine you want to install on.
title Fedora Core 6 Install
kernel /vmlinuz-fc6install
initrd /initrd-fc6install.img
3) Setup up FTP, NFS or HTTP install location.
4) Boot installation target, and choose Fedora Core 6 Install.
5) When prompted, select the method that you setup in step 3.
How I setup install to use HTTP:
1) Copied the install to a common directory by mounting each CD using You
can overwrite on not overwrite the file prompted about. They are not
important or are the same:
mount -t iso9660 -o loop FC-6-i386-disc1.iso /mnt/tmp
cp -r /mnt/tmp/* /home/FC6
2) After all the CDs are copied, set the permissions to:
drwxr-xr-x 7 root root 4096 Oct 25 09:59 FC6
chown -R 755 /home/FC6
3) Create link in web server directory:
lrwxrwxrwx 1 root root 10 Oct 25 10:11 FC6 -> /home/FC6/
cd /var/www/html
ln -s /home/FC6
============================================================================
From the web:
1. Loopmount diskboot.img
2. Copy vmlinuz and initrd.img (with unique names) to your /boot directory
3. Configure grub (you should be on grub with RH7.3) to boot from the
copied kernel
4. At boot time type ‘linux askmethod’ and you’ll get to specify the
CDROM
I used this method to install FC3 online. Just downloaded the boot.iso
and chose ‘ftp’ as the install method…
or
1. Copy boot.iso to your hard disk
2. Configure grub to boot from the iso [0]
3. At boot time type ‘linux askmethod’ and you’ll get to specify the
CDROM
This assumes that there is a suitable scsi driver available in the
initrd.img. If not, you can go about it this way.
1. copy the contents of the CDs to the hard disk (second and subsequent
CDs’ rpm files go in the RPMS directory copied from the first CD
2. Use either of the above boot methods and specify ‘hard disk’ as the
source.
NB. Make sure you copy the CD contents to a filesystem that is _not_
going to be formatted at install time otherwise there’ll be nothing
there for the installer to use!
Conor
[0] Booting direct from an iso is mentioned here:
http://www.linux.ie/lists/pipermail/ilug/2005-February/022062.html
Basically, it’s:
grub> chainloader hd(0,0)/image.iso
grub> boot
—
Conor Daly
The loopmount is so you can get at the vmlinuz and initrd.img that you’re
going to use to boot from. Where did you get the files you copied? When
you say you modified grub.conf, do you mean to say you changed the
existing boot config rather than adding an extra one? Ooops! You’ll be
able to boot your original system in any case by using the grub shell at
boot time. My RH9 grub.conf has two sections, one to boot the system and
one to boot the FC3 installer (I plugged the spare disk into this machine
to start the install…). Each section looks like this:
title Red Hat Linux (2.4.20-8)
root (hd0,0)
kernel /boot/vmlinuz-2.4.20-8 ro root=/dev/hda1 hdc=ide-scsi
initrd /boot/initrd-2.4.20-8.img
title Fedora Core 3 install
root (hd0,0)
kernel /boot/vmlinuz-FC3-install text askmethod
initrd /boot/initrd-FC3-install.img
The “Red Hat Linux” section boots my main kernel and your main kernel will
look similar but with different version numbers. The “Fedora Core 3
install” section boots the installer’s kernel instead. You need to modify
your grub.conf so that you have both sections. This actually won’t matter
once the upgrade happens since it will overwrite your grub.conf but, in
the meantime…
Since you can’t boot your RH7.3 kernel at present, you can go about things
two ways. 1. Boot interactively using grub. 2. Boot the installer,
mount your current partitions, edit grub.conf and reboot.
1. Interactively using grub
o boot the machine, at the grub screen, press ‘e’ to edit
o select the ‘kernel’ line and press ‘e’ again to edit
o Set the kerenl line to the correct vmlinuz-… root=/dev/hd… and press
o select the ‘initrd’ line and press ‘e’ to edit
o set the initrd line to the correct initrd… and press
o press ‘b’ to boot
o once booted, edit /etc/grub.conf to include correct values.
2. Using the FC installer
o boot the machine, at the grub screen, press ‘e’ to edit
o select the ‘kernel’ line and press ‘e’ again to edit
o remove the ‘askmethod’ keyword and instead type ‘rescue’ and press
o press ‘b’ to boot
o once booted, it should tell you where your original system is mounted
it may even do a chroot
o edit /etc/grub.conf to include correct values.
o type ‘exit’ to reboot.
That should get you back to being able to boot your RH7.3 system. Of
course, you could just go ahead and run the FC3 installer and do the
system upgrade…
Conor`
—
Conor Daly
Domestic Sysadmin 🙂
———————
Hobbiton.cod.ie
10:34:05 up 2 days, 21:54, 1 user, load average: 0.04, 0.03, 0.00