Difference between revisions of "Installing Sylver's Image on a new Kuro"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
(Mount the Partitions)
m (Installing Slyver's Image on a new Kuro moved to Installing Sylver's Image on a new Kuro)

Revision as of 20:27, 24 March 2006

I thought that I would right up a little how-to that contains all of the information that I used to get Sylver's image running and update the kernel to 2.6.15. I've taken from other guides posted on the wiki and other threads on this BB to create one comprehensive guide.

This process assumes that you have the KuroBox? in "EM" mode and that you have used "telnet" to connect to the box.

Contents

Run mfdisk in interactive mode

mfdisk -c /dev/hda 

Create partition 1 ("/") as 2-10 GB

To use Sylver's image you need at least 2 GB. The extracted the tar file takes about 1.2GB. The tar is about 350K. I used 4 GB

Command (m for help): n 
Command action 
e extended 
p primary partition (1-4) 
p 
Partition number (1-4): 1 
First cylinder (1-48641, default 1): 
Using default value 1 
Last cylinder or +size or +sizeM or +sizeK (1-48641, default 48641): +4096M 

Create partition 2 (swap) as 512 MB

Command (m for help): n 
Command action 
e extended 
p primary partition (1-4) 
p 
Partition number (1-4): 2 
First cylinder (132-48641, default 132): 
Using default value 132 
Last cylinder or +size or +sizeM or +sizeK (132-48641, default 48641): +512M 

Set the System ID of the swap partition (partition 2) to "Linux Swap"

Command (m for help): t 
Partition number (1-4): 2 
Hex code (type L to list codes): 82 
Changed system type of partition 2 to 82 (Linux swap) 

Create partition 3 ("/mnt")

Create partition 3 ("/mnt") as the remainder of the disk. Use the default, which will very depending on your disk size

Command (m for help): n 
Command action 
e extended 
p primary partition (1-4) 
p 
Partition number (1-4): 3 
First cylinder (198-48641, default 198): 
Using default value 198 
Last cylinder or +size or +sizeM or +sizeK (198-48641, default 48641): 
Using default value 48641 

Write the new partition table and exit

Command (m for help): w

The partition table has been altered! 

Syncing disks.  

Fromat the partitions

Now that you have created and saved the partitions, ie fdisk, you need to use the mkfs to format each partition

mkfs -j /dev/hda1 
mkfs -j /dev/hda3 
mkswap /dev/hda2 

Mount the Partitions

Now that you have formated each partition, you need to make it available by mounting it

mount /dev/hda1 /mnt 

You might ask yourself, as I did, why mount hda1 as mnt? What about hda3? Don't I have to mount that too? Well that magic happens when you leave EM mode.. /mnt becomes / and hda3 becomes /mnt, cool huh? Download the image @

imagev500.part1.rar 
imagev500.part2.rar 
imagev500.part3.rar 
imagev500.part4.rar 
imagev500.part5.rar 
imagev500.part6.rar 
imagev500.part7.rar 
imagev500.part8.rar

Download the kernel @ http://www.kurobox.com/sylver/image/patch/kernel2.6.15.6.tar.gz I used winrar to merge the rar files into one tar file imagev500.tar.gz. Next ftp the image and kernel tar file to /mnt

Untar the image and kernel tar file

cd /mnt 
tar xvfz imagev500.tar.gz 
tar xvfz kernel2.6.15.6.tar.gz 

Remove both tar files to save space. Now that the package is extracted lets set everything so we can leave EM mode

write_ok 

reboot 

When your Kuro reboots you should notice that it is no longer in EM mode. Also you should also see your filesystems changed up like I mentioned earlier

[root@KURO-BOX:/]$\ df -h 
Filesystem Size Used Avail Use% Mounted on 
/dev/hda1 4.0G 1.2G 2.7G 31% / 
/dev/hda3 183G 33M 174G 1% /mnt 

Update the kernel. Sylver made this very easy to do

cd to /etc/init.d vi bootnewos file

cd /etc/init.d 
vi bootnewos 

This will open up a vi text editor. Check the last line:

# bootnewos.sh Boots OS if needed. 
# 

. /etc/kernel 

# detect current kernel 
BOOT_NEW_OS=`uname -r | grep ${KERNEL_TO_LOAD}` 

if [ "${BOOT_NEW_OS}" ] ; then 
echo kernel $KERNEL_TO_LOAD already loaded ! 
else 
echo loading kernel $KERNEL_TO_LOAD 
/bin/sync 
/bin/sleep 1 
/bin/sync 
/sbin/insmod /boot/loader.o kernel=/boot/vmlinux-2.6.15-kurobox 
fi 

Change kernel=/boot/vmlinux-2.6.15-kurobox to

kernel=/boot/vmlinux-2.6.15.6-kuroboxhg if you have a HG Kuro or to 
kernel=/boot/vmlinux-2.6.15.6-kurobox if you have a non-HG 

Save the file and cd to /scripts

cd /scripts 

Now run set_kernel2.6.sh with the install parameter and reboot

./set_kernel2.6.sh install 

reboot 

When your Kuro restarts check the top of the screen when you telnet in

Kuroutoshikou KURO-BOX/HG (IESHIGE) 
Linux/ppc 2.6.15.6-kuroboxhg  

Success