LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-04-2002, 12:44 PM   #1
blackcat
Member
 
Registered: Sep 2002
Location: usa
Posts: 41

Rep: Reputation: 15
bootdisk


I made a bootdisk with the following command:

dd if=/boot/vmlinuz-2.4.18-3 of=/dev/fd0 bs=8173

it did not boot. What's wrong?
 
Old 09-04-2002, 01:23 PM   #2
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
What didnt boot? LFS or the bootdisk?

How big is your kernel?
 
Old 09-04-2002, 02:27 PM   #3
blackcat
Member
 
Registered: Sep 2002
Location: usa
Posts: 41

Original Poster
Rep: Reputation: 15
Of course, the bootdisk did not boot LFS. The kernel is about 1mb so, it shouldn't be a problem.
 
Old 09-04-2002, 02:44 PM   #4
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
Ah, after you dd'd the kernel to the boot disk, did you use rdev to tell the kernel where the root filesystem is?

rdev /dev/fd0 /dev/hda1 # Instead of /dev/hda1, please specify your root partition of you LFS install

Dont know if you need to do this one:
rdev -R /dev/fd0 1 # mount root file system readonly
or
rdev -R /dev/fdo 0 # mount root file system as read/write

Last edited by hanzerik; 09-04-2002 at 03:04 PM.
 
Old 09-04-2002, 07:02 PM   #5
blackcat
Member
 
Registered: Sep 2002
Location: usa
Posts: 41

Original Poster
Rep: Reputation: 15
It didn't work.

1. Something to do pehaps with the mehod of building the system( from the base distro). For example, when I did "df -m" I always got /dev/Root instead of /dev/hda10 as in the /etc/fstab. Also, the boot directory has two kernel, one is vmlinuz-2/4/18-3 and lfskernel. Somehow, the later has been the one that the system used. I haven't been able to change the name.

2. The synchronization of the two lilos( base distro's and lfs' own ) had a bad effect since when I /sbin/lilo in the lfs system, it also affect the base distro to the point rendering it unbootable. So, I reinstalled them both SEPARATELY.


Last edited by blackcat; 09-04-2002 at 07:05 PM.
 
Old 09-04-2002, 07:10 PM   #6
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
So "rdev /dev/fd0 /dev/hda10" didnt work?

so you've done this so far:
dd if=/boot/lfskernel of=/dev/fd0
rdev /dev/fd0 /dev/hda10

You built your LFS on hda10?

where did /dev/Root come from?
 
Old 09-04-2002, 08:08 PM   #7
blackcat
Member
 
Registered: Sep 2002
Location: usa
Posts: 41

Original Poster
Rep: Reputation: 15
>where did /dev/Root come from?

hehe. I asked myself the same question. The fact is the /dev/Root is always listed in the /proc/mounts of any linux system I know, but it never appeared when I ran the df -m , except now.

>You built your LFS on hda10?

yes, /dev/hda10 is the root partition and hda11 is the /home.
 
Old 09-04-2002, 08:49 PM   #8
hanzerik
Member
 
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian/Raspbian/Mint
Posts: 717

Rep: Reputation: 32
I'm out of ideas, can you boot it using lilo?

What type of errors are you getting if any? Kernel Panic: cannot mount root filesystem?
 
Old 09-04-2002, 10:52 PM   #9
blackcat
Member
 
Registered: Sep 2002
Location: usa
Posts: 41

Original Poster
Rep: Reputation: 15
>What type of errors are you getting if any? Kernel Panic: cannot mount root filesystem?

No. I can boot it many ways, either grub or sbm and VERY easily. If you read my post carefully, I didn't say I had problem booting it.

But the bootdisk with the kernel in it didn't boot well is quite curious.

Last edited by blackcat; 09-04-2002 at 10: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
Which bootdisk...? Ophidian Slackware - Installation 3 09-01-2005 05:13 PM
bootdisk ilnli Linux - General 2 08-09-2005 12:07 PM
Bootdisk? westverg Linux - Software 9 06-19-2005 09:37 AM
Bootdisk Soulful93 Linux - General 1 06-06-2004 05:40 PM
bootdisk gruddo Linux - Software 5 07-09-2003 05:10 PM

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

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