Zenwalk Linux

Ever tried Zen computing?

Fresh grub install

 

From Zenwalk Wiki

Jump to: navigation, search


This article is part of the Zenwalk HOWTO.
Installing/Setting Up | Internationalisation | Networks | Software | Package Management | Misc

image:russian.jpgThis page in Russian

[edit] Installing Zenwalk on a Windows machine and installing grub as the loader

I'm not an expert so others may have to make these instructions more general or more detailed... Right now this assumes:

   *  You have used grub and know how it designates drives.
   *  You have partitioned a disk before 

I'm starting with a windows system. This one has a SATA disk and an IDE disk which makes for some interesting gotcha's.

The general order of things is:

  1. Resize my NTFS partition to make room for linux.
  2. Partition the hard-drive.
  3. Install Zenwalk.
  4. Install grub.

[edit] Resize NTFS

How to Resize your NTFS partition

[edit] Partition

I like to create a seperate boot partition. I often will have multiple root filesystems.

/dev/sda1 (windows)
/dev/sda2 100Mb /boot
/dev/sda3 512Mb swap
/dev/sda4 (extended partition)
/dev/sda5 6Gb /
/dev/sda6 4Gb /home

[edit] Install Zenwalk

Install it as you normally would. Remember to point /boot to your boot partition and /home to your home partition. When asked to install LILO... SKIP it. When the installation finishes and returns you to the bash prompt:

#ls /mnt/boot
...
vmlinuz-2.6.18.6
...

write down the name of the kernel, in this case it's vmlinuz-2.6.18.6

[edit] Install grub

Reboot with a live CD that contains grub. I use RIP linux.

Seed /boot/grub with the proper files.

#mkdir /mnt/boot
#mount /dev/sda2 /mnt/boot
#mkdir /mnt/boot/grub
#cp /usr/lib/grub/i386-pc/* /mnt/boot/grub

[edit] Install grub

(in my case grub on RIP identifies my SATA drive as the second drive (hd1), even though I boot off it and use my IDE drive for data only. When I reboot from the disk, grub will identify my SATA drive as the first drive (hd0))


#grub
>root (hd1,1)
>setup (hd1)
>quit

grub drive (hd1,1) is /dev/sda2 which is where /boot (and the grub install files) are. setup (hd1) replaces the MBR with grub.

[edit] Create menu.lst

You can get info for your specific case at The grub manual

Mine looks like: (notice the different drive designators from the install command...)

timeout 5
default 0

title Zenwalk
root (hd0,1)
kernel vmlinuz-2.6.18.6 root=/dev/sda5

title Windows
rootnoverify (hd0,0)
chainloader +1
makeactive
boot

[edit] Reboot and see what happens!

Personal tools