LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-02-2002, 01:00 PM   #1
SpookMonkey
LQ Newbie
 
Registered: Apr 2002
Distribution: Mine
Posts: 10

Rep: Reputation: 0
Angry Bootable Resue CD problems


hi there,

I am attempting building a linux "resucue" cd.
I am using the Linux 2.4.18 kernel, and Syslinux (isolinux) 1.67 to boot.

My syslinux cfg file looks like this:
----------------------
default bootcd
display bootcd.msg
label bootcd
kernel vmlinuz
append initrd=initrd.gz ramdisk_size=12288 init=/linuxrc rw root=/dev/ram
----------------------

Now, when "initrd.gz" is loaded initially it, does all the fun stuff like mount proc, find the cd-rom, etc.
Then, what is supposed to happen is, the linuxrc file from initrd.gz is supposed to created a new root filesystem from another compressed ramdisk from the CD (rootfs.gz).

Here is the script to do that
---------------------------------------------------------------
if [ -r /mnt/cdrom/isolinux/rootfs.gz ]; then
echo "preparing ramdisk..."
/mnt/cdrom/fs/bin/mke2fs -q -i 16384 -m 0 /dev/ram0

mkdir /ram
mount /dev/ram0 /ram

cd /ram
/mnt/cdrom/fs/bin/gunzip /mnt/cdrom/isolinux/rootfs.gz
cd /
umount /ram
umount /mnt/cdrom
umount /proc
echo "all done"
exit
fi
---------------------------------------------------------------

linuxrc gets that far, but after it decompresses the rootfs.gz file,
it "should" run the /etc/inittab file from the rootfs.gz fs, but instead I get:


preparing ramdisk...
mke2fs v ... blah blah blah
/dev/ram0 is mounted: will not make new filesystem here!
gunzip: /mnt/cdrom/isolinux/rootfs.gz read only filesystem.
all done.
Kernel Panic: Attempted to kill init.

Does anyone have any idea at all what may be causing this ?

Last edited by SpookMonkey; 04-02-2002 at 01:02 PM.
 
Old 07-15-2002, 01:10 AM   #2
leihsun
Member
 
Registered: Jan 2002
Location: taipei
Posts: 39

Rep: Reputation: 15
I had met the same problem. I think when I made initrd, I lost some steps. Have I solved it? If so please tell me the right steps to do it.

Thanks.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bootable cdimage->bootable hdpartition? titusind Linux - General 1 11-21-2005 11:16 PM
problems creating a simple bootable cd to perform a simple task czarherr Linux - Software 1 11-11-2004 05:22 AM
making a non bootable patrion bootable jason2 Linux - General 6 08-01-2004 10:25 AM
Installing Slackware with non-bootable CD or bootable floppy (but not both) TiddlyPom Slackware 2 03-22-2004 04:15 PM
DNS problems with Bootable Firewall CD SpookMonkey Linux - Networking 1 05-08-2002 09:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:13 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