LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 09-21-2006, 09:58 AM   #1
zerointeger
LQ Newbie
 
Registered: Oct 2005
Posts: 11

Rep: Reputation: 0
Question Linux 2.6.18 Bootdisk problems


Hello all, I have having some difficulty creating a custom linux boot floppy. The error I am recieving is as follows:

Code:
RAMDISK: Couldn't find valid RAM disk image starting at 0.
input: AT translated Set 2 keyboard at /class/input/input0
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 1440KiB [1 disk] into ram disk... done.
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 156k freed
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found. Try passing the init= option to kernel.
Here is the contents of a shell script I wrote to create the disk:

Code:
#!/bin/sh
# Create bootable floppy disk for linux

echo "Formatting floppy..."
/usr/bin/fdformat /dev/fd0u1440

echo "Creating filesystem as ext2..."
/sbin/mke2fs -N 24 -m 0 /dev/fd0

echo "Mounting floppy drive..."
/bin/mount /dev/fd0 /media/floppy

echo "Cleaning up filesystem on floppy..."
/bin/rm -dfr /media/floppy/lost+found /media/floppy/floppy*

echo "Copying filesystem..."
/bin/cp -dfr /floppy.image/boot/ /media/floppy
/bin/cp -dfr /floppy.image/dev/ /media/floppy
/bin/cp -dfr /floppy.image/bdlilo.conf /media/floppy

echo "Copying latest kernel..."
/bin/cp /usr/src/linux-2.6.18/arch/x86_64/boot/bzImage /media/floppy/boot

echo "Modifying boot params for new kernel..."
/usr/sbin/rdev /media/floppy/boot/bzImage /dev/fd0
/usr/sbin/rdev -r /media/floppy/boot/bzImage 2048

echo "Installing lilo bootloader to floppy..."
cd /media/floppy
/sbin/lilo -v -C bdlilo.conf -r /media/floppy

echo "Cleaning up filesystem on floppy... Please wait."
/bin/rm -dfr /media/floppy/boot/boot.* /media/floppy/bdlilo.conf

/bin/sleep 60

echo "Unmounting floppy media..."
cd
/bin/umount /media/floppy

echo "Finished making boot disk"
Could someone let me know what I am doing wrong? TIA.
 
Old 09-21-2006, 04:44 PM   #2
pda_h4x0r
Member
 
Registered: Feb 2006
Location: somewhere in cyberspace
Distribution: Debian, Familiar
Posts: 380

Rep: Reputation: 31
Does your floppy disk have a linuxrc script in root, or something like that? You will have to add a kernel option like "init=/linuxrc" or "init=/path/to/my/initilization/script" for you to continue booting.

Last edited by pda_h4x0r; 09-21-2006 at 04:53 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How Can I Create a Bootdisk in Linux Os 9 Egyptian_Isis Linux - Newbie 1 10-18-2003 03:33 AM
Problems making bootdisk to slack Iwin Linux - Software 7 08-17-2003 12:37 PM
Problems with bootdisk Celestial Slackware 5 06-14-2003 07:56 PM
Linux BootDisk DukeLeto Linux - General 6 03-18-2003 10:25 AM
Linux bootdisk gone bad nero64 Linux - Newbie 2 12-16-2002 08:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:33 AM.

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