Hard disk install (no CD-ROM) with GRUB or LILO
From Zenwalk Wiki
| Installing/Setting Up | Internationalisation | Networks | Software | Package Management | Misc |
This entry is a result of the thread here. The tips credit should go to energiya. Thanks to Dam for starting the thread and fushark for the lilo entry.
This is useful if you don't have any means to install from a CD or think it's faster this way - needs GRUB (even grub for dos) or LILO.
Devices
To make this easier to understand, I'm going to give as an example what I did on my PC, but change the device names.
/dev/sda7 becomes /dev/sdXY - this is where I want to install zenwalk
/dev/sda10 becomes /dev/sdXZ - this is where I will extract the contents of the zenwalk iso
Note:when changing this for your needs keep in mind that "a" from sda7 means my first hdd, so you might need to change it on you machine
Installation steps
- If you have a slow CD-ROM and want to copy the Zenwalk iso without the need to download it, mount the CD (usually "mount -t iso9660 /dev/sr0 /mnt/cdrom", but can be different paths) and execute the next command to copy the contents of the CD to "zenwalk.iso" in your current directory:
dd if=/mnt/cdrom of=zenwalk.iso
- If you downloaded the iso, skip the above step and check the name of your file.
Before trying to install, check the ISO md5sum !!!
1) Extract iso contents
su
mkdir /mnt/zeniso
mount -o loop -t iso9660 <path_to_iso>/zenwalk.iso /mnt/zeniso
cp -r /mnt/zeniso <where_/dev/sdXZ_is_mounted>zenwalk
umount /mnt/zeniso
rmdir /mnt/zeniso
2) Add the install to the boot loader
- GRUB USERS, under linux edit /boot/grub/menu.lst and add
title Zenwalk install
root (hdX,Z-1) #<-- MODIFY
kernel /zenwalk/kernels/ata/bzImage
initrd /zenwalk/isolinux/initrd.img
- For example: I have extracted the iso to /dev/sda10 so I will have "root (hd0,9)" (0 = a = first hdd, 9 = 10-1)
- Some users might need to use the scsi kernel (just replace ata with scsi)
- LILO USERS, edit your /etc/lilo.conf and add this line
# ZENWALK INSTALL from HD
image = /zenwalk/kernels/ata/bzImage
root = /dev/sdXZ <--MODIFY sdXZ
label = ZW_install_from_HD
initrd = /zenwalk/isolinux/initrd.img
append = "nolapic" #<--You can add any parameters you wish. Mine need this
- Some users might need to use the scsi kernel (just replace ata with scsi)
- Now execute lilo -v
lilo -v
3) Reboot and select "Zenwalk install" in the boot loader screen. The zenwalk setup will begin.
4) At the setup screen choose "Exit setup" and we have a root shell.
5) Mount the extracted iso
cd /
mkdir zeniso
mount /dev/sdXZ /zeniso #<-- MODIFY /dev/sdXZ
setup
6) Usual Zenwalk install until it askes for source selection. Choose "Install from a pre-mounted directory" and when you are asked for the directory where the installation files are, write
/zeniso/zenwalk/
7) Continue install
If you choose to install lilo as boot loader on MBR, it will overwrite the current one (my case grub). I like it better so I'm not going to install lilo al all, but you might want/need it. Grub doesn't handle the nice boot splash theme.
8) Reboot and enjoy ;-)
If you didn't install lilo and use grub, modify /boot/grub/menu.lst, otherwise skip this
title Zenwalk
root (hdX,Y-1) #<--MODIFY
kernel /boot/vmlinuz-2.6.21.3 root=/dev/sdXY #<--MODIFY /dev/sdXY and kernel version if needed
If you use lilo, add this to your /etc/lilo.conf
image = /mnt/sdXY/boot/vmlinuz-2.6.21.3 #<--MODIFY /dev/sdXY and kernel version as needed
root = /dev/sdXY #<--MODIFY /dev/sdXY to your actual location of ZenWalk installation
label = ZenWalk-4.6.1
initrd = /mnt/sdXY/boot/initrd.splash #<--MODIFY sdXY to correct location
append = "nolapic" #<--- You can add any parameters if you wish. Mine needs this
- Then, make your mountpoint and mount it if it is not automatically done, and execute lilo -v
su
mkdir /mnt/sdXY #<--MODIFY sdXY to match the name in your lilo.conf
mount /dev/sdXY /mnt/sdXY #<-- Check to maker sure the sdXY is correct
lilo -v
Also see
http://support.zenwalk.org/index.php/topic,3894.0.html
http://wiki.zenwalk.org/index.php?title=Fresh_grub_install

