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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
09-04-2002, 12:44 PM
|
#1
|
Member
Registered: Sep 2002
Location: usa
Posts: 41
Rep:
|
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? 
|
|
|
09-04-2002, 01:23 PM
|
#2
|
Member
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian
Posts: 717
Rep:
|
What didnt boot? LFS or the bootdisk?
How big is your kernel?
|
|
|
09-04-2002, 02:27 PM
|
#3
|
Member
Registered: Sep 2002
Location: usa
Posts: 41
Original Poster
Rep:
|
Of course, the bootdisk did not boot LFS. The kernel is about 1mb so, it shouldn't be a problem.
|
|
|
09-04-2002, 02:44 PM
|
#4
|
Member
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian
Posts: 717
Rep:
|
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.
|
|
|
09-04-2002, 07:02 PM
|
#5
|
Member
Registered: Sep 2002
Location: usa
Posts: 41
Original Poster
Rep:
|
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.
|
|
|
09-04-2002, 07:10 PM
|
#6
|
Member
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian
Posts: 717
Rep:
|
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?
|
|
|
09-04-2002, 08:08 PM
|
#7
|
Member
Registered: Sep 2002
Location: usa
Posts: 41
Original Poster
Rep:
|
>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.
|
|
|
09-04-2002, 08:49 PM
|
#8
|
Member
Registered: Jan 2002
Location: Cheyenne Wyoming
Distribution: Debian
Posts: 717
Rep:
|
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?
|
|
|
09-04-2002, 10:52 PM
|
#9
|
Member
Registered: Sep 2002
Location: usa
Posts: 41
Original Poster
Rep:
|
>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.
|
|
|
All times are GMT -5. The time now is 09:35 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|