i'm having trouble creating a linux boot disk... i've been at this for days and i have figured it's time to ask for help... basically, i'm using this as a guide:
http://www.geocities.com/potato.geo/...nuxcd-old.html
my goal is to end-up with a bootable rescue disk that runs completely in RAM... right now i'm still trying to get my initial ramdisk to work... i'm using busybox for it, and needless to say, i haven't been able to make it work right... the kernel (2.4.33.3) boots fine, and it loads the initial ramdisk's ext2 filesystem, but then i immediately get a failure:
Code:
[...]
Freeing initrd memory: 276k freed
VFS: Mounted root (ext2 filesystem).
Freeing unused kernel memory: 244k freed
Warning: unable to open an initial console.
Kernel panic: Attempted to kill init!
i'm not sure if i'm doing something wrong at compile time for busybox, or if i am missing something in the ramdisk's file structure... in busybox's config i've got only the things i thought were needed enabled... here's what my busybox 1.2.1 config looks like:
Code:
win32sux@carly:~/busybox$ cat config | grep -v ^# | grep -v ^$
HAVE_DOT_CONFIG=y
CONFIG_SHOW_USAGE=y
CONFIG_GETOPT_LONG=y
CONFIG_FEATURE_DEVPTS=y
CONFIG_BUSYBOX_EXEC_PATH="/proc/self/exe"
CONFIG_STATIC=y
CROSS_COMPILER_PREFIX=""
CONFIG_DEBUG_YANK_SUSv2=y
CONFIG_INSTALL_APPLET_SYMLINKS=y
PREFIX="./_install"
CONFIG_MD5_SIZE_VS_SPEED=2
CONFIG_GUNZIP=y
CONFIG_DD=y
CONFIG_ECHO=y
CONFIG_LN=y
CONFIG_SLEEP=y
CONFIG_TEST=y
CONFIG_TTY=y
CONFIG_MOUNT=y
CONFIG_UMOUNT=y
CONFIG_FEATURE_SH_IS_ASH=y
CONFIG_ASH=y
CONFIG_ASH_JOB_CONTROL=y
CONFIG_ASH_ALIAS=y
CONFIG_ASH_MATH_SUPPORT=y
CONFIG_ASH_BUILTIN_ECHO=y
CONFIG_ASH_OPTIMIZE_FOR_SIZE=y
CONFIG_FEATURE_COMMAND_HISTORY=0
CONFIG_FEATURE_IPC_SYSLOG_BUFFER_SIZE=0
this is what my
isolinux.cfg looks like:
Code:
default /kernel/vmlinuz initrd=initrd.img load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=4096 rw root=/dev/ram
prompt 1
timeout 100
display message.txt
label linux
kernel /kernel/vmlinuz
append initrd=ramdisk.img load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=4096 rw root=/dev/ram
my initrd.img's file structure looks like:
Code:
win32sux@carly:/mnt/initrd$ tree .
.
|-- bin
| |-- ash -> busybox
| |-- busybox
| |-- dd -> busybox
| |-- echo -> busybox
| |-- gunzip -> busybox
| |-- ln -> busybox
| |-- mount -> busybox
| |-- sh -> busybox
| |-- sleep -> busybox
| |-- umount -> busybox
| `-- zcat -> busybox
|-- dev
| |-- hda
| |-- hdb
| |-- hdc
| |-- hdd
| |-- ram0
| |-- ram1
| |-- tty
| |-- tty0
| `-- tty1
|-- etc
| `-- mtab -> /proc/mounts
|-- linuxrc
|-- mnt
| |-- cdrom
| `-- ram
|-- proc
`-- tmp
8 directories, 22 files
any help would be greatly appreciated... TIA...