Booting Linux from HardDisk on iSeries
wjfast at yahoo.com
Thu Oct 21 16:33:30 EST 2004
This is my first email on this group, and I am really hopeful to find solution to my problem here. I was installing linux on iSeries in my office but was getting problems. I have installed RedHat Linux 9 on an iSeries machine in LPAR. The version of kernel as given by uname -a command is 2.4.21-4.EL
However after installation is complete I want to boot from disk rather than the cd drive. I think there is some need to copy some boot image onto the disk. I looked at theTechnical FAQ for Linux on iSeries: http://www-1.ibm.com/servers/eserver/iseries/linux/tech_faq.html#kernel and performed the following steps.
I executed the command fdisk-l and the output was as follows:
Disk /dev/iseries/vda: 4194 MB, 4194892800 bytes
255 heads, 63 sectors/track, 510 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/iseries/vda1 * 1 2 16033+ 41 PPC PReP Boot
/dev/iseries/vda2 3 384 3068415 83 Linux
/dev/iseries/vda3 385 510 1012095 82 Linux swap
Hence my Prep Partition is /dev/iseries/vda1
Next the implementaion document tells me to execute the command dd if=/boot/vmlinux/good of=/dev/iseries/vda1 bs=4k
However the problem is that there is no file by the name of vmlinux.good in the boot directory. I'll show you the listing of boot directory.
[root at TestLinux /]# cd /boot
[root at TestLinux boot]# ls
cmdline-2.4.21-4.EL kernel.h System.map-2.4.21-4.EL
config-2.4.21-4.EL message vmlinitrd-2.4.21-4.EL
grub message.ja vmlinux-2.4.21-4.EL
Now I am at a loss at to what should be the input file for the dd command. I tried the command:
dd if=/boot/vmlinitrd-2.4.21-4.EL of=/dev/iseries/vda1 bs=4k
but when I booted from "IPL Source" = *NWSSTG ,"Stream file" = *NONE, "IPL parameters" = 'root=/dev/iseries/vda1," , the Linux doesnt boot and I get the following error:
iseries/vda: iseries/vda1 iseries/vda2 iseries/vda3
iSeries virtual I/O: viod: Disk 00 size 4000M, sectors 63, heads 255, cylinders 510, sectsize 512
iSeries virtual I/O: viod: Disk 00 partition 01 start sector 63, # sector 32067
iSeries virtual I/O: viod: Disk 00 partition 02 start sector 32130, # sector 6136830
iSeries virtual I/O: viod: Disk 00 partition 03 start sector 6168960, # sector 2024190
Loading jbd.o module
Journalled Block Device driver loaded
Loading ext3.o module
Mounting /proc filesystem
Creating block devices
Creating root device
Mounting root filesystem
VFS: Can't find ext3 filesystem on dev viod(112,1).
mount: error 22 mounting ext3
pivotroot: pivot_root(/sysroot,/sysroot/initrd) failed: 2
umount /initrd/proc failed: 2
Freeing unused kernel memory: 156k init
Kernel panic: No init found. Try passing init= option to kernel.
Rebooting in 180 seconds..
Can anyone tell me the exact command specifying what to copy from where and to where. I'll be very thankful if you could help me in this.
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Linuxppc64-dev