LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Kickstart - Kernal panic (https://www.linuxquestions.org/questions/linux-newbie-8/kickstart-kernal-panic-65476/)

Tpetersonalpine 06-13-2003 05:54 PM

Kickstart - Kernal panic
 
Using RHAS 2.1 I'm trying to get RH kickstart working.

1- copied the 5 cds to an ftp server.
2- created a boot disk /dev/fd0 2.4.9-e.3 from a working rhas2.1 install
3- on the boot disk I edited syslinux.cfg:
default ks
prompt 0
label ks
kernal vmlinux
append ks=floppy initrd=initrd.img
4 copied over a modified ks.cfg (see below) to the boot disk

When I boot to this disk I receive:

Mounting root filesystem
EXT3-fs: unable to read superblock
mount: error 22 mounting ext3
pivotroot:pivol_root(sysroot,/sysroot/initrd) failed:2
Freeing unused kernal memory: 224k freed
Kernal panic: No init found. Try passing init=option to kernal

I've used the same disk in multiple cpus (compaq prosigna 740, IBM netfinity 5000) and it produces the same error.

Installing RHAS 2.1 direct from cdrom to these same cpus works fine.

ks.cfg
### Installation Language
lang en_US
### Installed Languages
langsupport --default en_US fr_FR

### Network Configuration
network --bootproto static --ip x.x.x.x --netmask 255.255.252.0 --gateway x.x.x.x --nameserver x.x.x.x
### Source File Location
url --url ftp://x.x.x.x/user/guest/rhas21

### Ethernet Device Configuration
#device ethernet wd --opts "io=0x280, irq=3"

### Keyboard Configuration
### Will get set to 'us' by default
### if nothing specified in /etc/sysconfig/keyboard
keyboard us

### Partitioning Information
### Whether to clear out the Master Boot Record (yes/no)
### Which partitions to format (--linux/--all)
### --linux - only format existing linux partitions
### --all - format all existing partitions
### Which partitions to set up on new system as well
### as size of those partitions
### Specify software RAID partitions (optional)
zerombr yes
clearpart --linux
part /boot --size 35
part swap --size 128
#part swap --recommended
part / --size 1000 --grow --maxsize 1400
#part raid.0 --size 80 --ondisk sda
#part raid.1 --size 80 --ondisk sdb
#raid swap raid.0 raid.1 --level 1 --device md0
install

### Perform kickstart installation in text mode
#text

### Stop at each screen during the kickstart
### installation
#interactive

### Mouse Configuration
### Will only setup 3 types of mice
### generic - 2-button serial
### genericps/2 - 2-button ps/2
### msintellips/2 - MS Intellimouse
### All three can be setup with or without 3-button
### emulation
### Run 'mouseconfig --help' in order to see other
### supported mouse type and make appropriate change
### NOTE: You will need to run 'mouseconfig' manually
### after installation if you have a non-ps/2 mouse
### and are installing X, as a ps/2 mouse is setup
### by default
#mouse generic --device ttyS0
mouse generic3ps/2

### Firewall Configuration
### options are high, medium, and disabled
# firewall --high --trust eth0 --ssh --port 1234:udp
firewall --high


### Time Zone Configuration
### Will get set to 'US/Eastern' if ZONE is missing
### from /etc/sysconfig/clock or if file is missing entirely
timezone --utc America/New_York

### X Configuration
### Will skip X configuration
### You may wish to run Xconfigurator manually after system installation
skipx
### You can uncomment and modify this line if you know the X configuration for your system
#xconfig --server "SVGA" --monitor "viewsonic g773" --depth 16 --resolution 800x600 --defaultdesktop=GNOME --startxonboot --card "Matrox Millennium" --videoram 1024

### Root Password Designation
### e.g. 'rootpw ThisIsThePassword' will get root's password to
### "ThisIsThePassword"
rootpw paSSword
#rootpw --iscrypted g.UJ.RQeOV3Bg

### Reboot system after installation complete
#reboot

### Authorization Configuration
auth --useshadow --enablemd5

### Boot Loader Configuration
### GRUB is default bootloader
### lilo command has been replaced with bootloader
bootloader --location=mbr
#bootloader --location=mbr --append hdd=ide-scsi --password=GRUBpasswd

### Package Designation
### The package names, as well as the groups they are a part of can be
### found in the /RedHat/base/comps file; individual packages can be
### specified by entering their names one per line;
### groups (e.g. 'X Window System') can be specified
### by appending a "@" in front of the group name;
### e.g. '@ X Window System'
%packages
### Automatically resolve dependences
#%packages --resolvedeps
### Ignore unresolved dependencies
#%packages --ignoredeps
python
@ X Window System

### Include the contents of another file in the kickstart
### file
#%include /path/to/file

### Commands to be run immediately after this file has been parsed
%pre
echo "Kickstart-installed Red Hat Linux `/bin/date`"

### Commands to be run post-installation
%post
echo "Kickstart installation" > /tmp/message

TIA

Tpetersonalpine 06-15-2003 04:06 PM

Instead of having the boot disk created (step 2) i used the following command to create the floppy:
dd if=bootnet.img of=/dev/fd0

THIS WORKED!!

see http://www.linux.org/docs/ldp/howto/...l-HOWTO-7.html for exec doc.


All times are GMT -5. The time now is 07:42 AM.