LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-29-2006, 09:53 PM   #1
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Unhappy making a linux boot disk (busybox initrd issue)


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...

Last edited by win32sux; 09-30-2006 at 12:47 AM.
 
Old 09-29-2006, 11:06 PM   #2
kenji
Member
 
Registered: Sep 2004
Location: Philippines
Distribution: Slackware
Posts: 143

Rep: Reputation: 16
are you talking about livecd? if you are looking for a
live cd visit the site below hope this helps| £Ä3

http://www.frozentech.com/content/livecd.php
 
Old 09-29-2006, 11:14 PM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Original Poster
Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by kenji
are you talking about livecd? if you are looking for a
live cd visit the site below hope this helps| £Ä3

http://www.frozentech.com/content/livecd.php
no, i am not looking for a live cd... i am trying to build my own boot disk... i guess this could be considered a live cd, but my objective is to load the real root filesystem in /dev/ram1 - not /dev/cdrom as most live CDs do... right now i'm still trying to make the initrd work (/dev/ram0) so i'm not concerned about the real root filesystem yet... if you have any ideas as to what i'm doing wrong with my initial ramdisk, it would be great... thanks...
 
Old 10-01-2006, 08:09 PM   #4
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Original Poster
Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
well, looks like my troubles were caused by this version of busybox... i downgraded to version 0.60.5 (which i had used before) and it seems like it's working as expected... since this is only an initial ramdisk, i don't mind using an old busybox version...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
making a windows boot disk in linux daveyz Linux - General 1 05-01-2005 02:39 AM
making a linux boot disk from windows? poiuytrewq Linux - Newbie 3 03-25-2005 03:14 AM
SIZE of "initrd" in accordance with system RAM in an embedded linux ( a busybox) ... rs_javadi Linux From Scratch 0 08-23-2004 01:01 AM
Making a Linux boot disk without using Linux Travis86 Linux - General 6 01-25-2004 07:43 PM
Slack /RH dual boot initrd missing issue FuzzyTheBear Slackware 1 03-06-2003 02:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration