LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-08-2002, 11:03 PM   #31
nutshell
Member
 
Registered: Feb 2002
Distribution: Slackware 8.1
Posts: 244

Original Poster
Rep: Reputation: 30

Ok, so that means if i put lilo on the disk along with the kernel, lilo will find the kernel during boot then boot up linux right?

Can i get a copy of Davix?
 
Old 07-08-2002, 11:10 PM   #32
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
1. No, you need a lilo conf file

2. Ask someone else
 
Old 07-09-2002, 02:07 AM   #33
nutshell
Member
 
Registered: Feb 2002
Distribution: Slackware 8.1
Posts: 244

Original Poster
Rep: Reputation: 30
Hi all,

I went to http://www.wam.umd.edu/~kefferb/floppy.html followed all the steps and made a disk. WHen i tried to boot, there's a kernel panic:

kernel panic: no init found. Try passing init= option to kernel.

Do any of you know what went wrong?

Thanks!

Last edited by nutshell; 07-09-2002 at 04:56 AM.
 
Old 07-09-2002, 04:01 AM   #34
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Did you create the init symbolic link according to instructions below:

Quote:
Now create some links to necessary system programs.
cd /mnt/floppy/sbin
ln -s ../bin/busybox init
ln -s ../bin/busybox modprobe # if you are using kernel modules
cd ../bin
ln -s busybox sh
ln -s busybox mount
If the init link is missing, you'll get that error. You'll also get the error if the link is in the wrong directory. It's supposed to be in the /sbin directory. You might have put it in the /bin directory.

One more thing, you need to fix your link to the site that has the instructions that you used. Remove the period ' . ' at the end of the link.
 
Old 07-09-2002, 04:57 AM   #35
nutshell
Member
 
Registered: Feb 2002
Distribution: Slackware 8.1
Posts: 244

Original Poster
Rep: Reputation: 30
I'm sure i did the linkings correctly.

one thing i didn't mention. During the whole process i wasn't able to unmount the floppy. When i went "umount /mnt/floppy" it says device is busy. WHen i sent "umount /dev/fd0" it says it's not mounted.

Last edited by nutshell; 07-09-2002 at 05:25 AM.
 
Old 07-09-2002, 10:30 PM   #36
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I just looked through it real fast, but did you create the /dev/ files for the floppy disk
 
Old 07-09-2002, 10:32 PM   #37
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Davix is not ready, It hit the back burner for a while due to a lot of traveling around.
 
Old 07-09-2002, 10:47 PM   #38
nutshell
Member
 
Registered: Feb 2002
Distribution: Slackware 8.1
Posts: 244

Original Poster
Rep: Reputation: 30
I didn't create files for /dev...
Oopps but that tutorial didn't say...

I'll try the whole process again. This time i'll follow the LInux Bootdisk howto. I had a read through the howto, it differs quite a lot from that site. It requires me to do a lot more things that site didn't even mention?
 
Old 07-09-2002, 11:00 PM   #39
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
nutshell, I looked at the instructions again and I found that the floppy was never mounted. You probably got confused by the mounting of a loopback device.

A file was created named disk.ext2. It was then formatted as an ext2 file system. Then it was mounted as a loopback device at mount point /mnt/floppy. The mount point is what I believe confused you and why you got the error that the floppy was not mounted.

As for not being able to unmount /mnt/floppy, I believe they left out a step. They should have had you cd off of the loopback device before unmounting it. So, before you run umount /mnt/floppy, run cd ~. This should put you in your home directory and allow you to unmount the loopback device.
 
Old 07-10-2002, 02:16 AM   #40
nutshell
Member
 
Registered: Feb 2002
Distribution: Slackware 8.1
Posts: 244

Original Poster
Rep: Reputation: 30
Sigh.............for some reason, after i deleted my old bzImage, i can't compile my kernel anymore! Here is the output of make dep zImage ( i also tried make dep bzImage). I've created my root filesystem and all that and all of a sudden i can't compile my kernel! Please give a hand. Here's the last few lines of output of make dep zImage:

Code:
make -C core
make[2]: Entering directory `/usr/src/linux-2.5.7/net/core'
make all_targets
make[3]: Entering directory `/usr/src/linux-2.5.7/net/core'
gcc -D__KERNEL__ -I/usr/src/linux-2.5.7/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686   -DKBUILD_BASENAME=sock  -c -o sock.o sock.c
sock.c: In function `sock_getsockopt':
sock.c:559: `TCP_LISTEN' undeclared (first use in this function)
sock.c:559: (Each undeclared identifier is reported only once
sock.c:559: for each function it appears in.)
sock.c: In function `sock_init_data':
sock.c:1192: `TCP_CLOSE' undeclared (first use in this function)
make[3]: *** [sock.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.5.7/net/core'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.5.7/net/core'
make[1]: *** [_subdir_core] Error 2
make[1]: Leaving directory `/usr/src/linux-2.5.7/net'
make: *** [_dir_net] Error 2
bash-2.05a# make dep zImage > /home/dyh/compileMsg.txt
md5sum: WARNING: 10 of 13 computed checksums did NOT match
sock.c: In function `sock_getsockopt':
sock.c:559: `TCP_LISTEN' undeclared (first use in this function)
sock.c:559: (Each undeclared identifier is reported only once
sock.c:559: for each function it appears in.)
sock.c: In function `sock_init_data':
sock.c:1192: `TCP_CLOSE' undeclared (first use in this function)
make[3]: *** [sock.o] Error 1
make[2]: *** [first_rule] Error 2
make[1]: *** [_subdir_core] Error 2
make: *** [_dir_net] Error 2
 
Old 07-10-2002, 05:45 AM   #41
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
That's is pretty confusing. I don't see why they used mnt/floppy as a mount point for the file system on the hard drive.
 
Old 07-10-2002, 06:30 AM   #42
nutshell
Member
 
Registered: Feb 2002
Distribution: Slackware 8.1
Posts: 244

Original Poster
Rep: Reputation: 30
Hi,

I'm now using the bootdisk howto now. So can you please answer my above question about not being able to compile the kernel?

Thanks a lot!
 
Old 07-11-2002, 01:23 AM   #43
nutshell
Member
 
Registered: Feb 2002
Distribution: Slackware 8.1
Posts: 244

Original Poster
Rep: Reputation: 30
I also tried deleting the source, unpacking the source, and then tried compiling again and it still gave me the same error: which is the error 2 and 1s...ugh

Thanks
 
Old 07-11-2002, 03:51 AM   #44
nutshell
Member
 
Registered: Feb 2002
Distribution: Slackware 8.1
Posts: 244

Original Poster
Rep: Reputation: 30
I can compile my kernel now. I just downloaded a different of kernel. One i have now is 2.4.18.

Ok i made another bootdisk with the linux bootdisk howto. WHen i tried to boot it it still gave me the error i had with the other disk i made with that other site:


kernel panic: no init found. Try passing init= option to kernel.

How about this. WOuld anyone be kind enough to provide me with a sample root filesystem file? (i don't mean a listing). For some reason the bootdisk howto requires much more than other tutorials. Or alternatively , would anyone be kind enough to let me send my rootfs to him/her to have a loook at it and spot anything i've done wrong?

Thanks

Last edited by nutshell; 07-11-2002 at 05:31 AM.
 
Old 07-11-2002, 11:52 PM   #45
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
looks like several problems, It was pretty late so I did not check it all yet. But you need to go through it carefully.

here's the first thing I noticed


ls -l bin
total 205
-rwxr-xr-x 1 root root 208296 Jul 11 04:11 busybox*
lrwxrwxrwx 1 root root 7 Jul 11 04:12 mount -> busybox*
lrwxrwxrwx 1 root root 7 Jul 11 04:12 sh -> busybox*


link mount and sh to busybox?, no way that will work

and

where's /bin/login?

what's this?
ls -l sbin
total 0
lrwxrwxrwx 1 root root 16 Jul 11 04:11 init -> /mnt/bin/busybox

no such folder as /mnt/bin


got some needed /dev/files missing

console, kmem, mem, null

you need /etc/ld.so.conf and /etc/ld.so.cache

/etc/nsswitch.conf

passwd


your /lib folder only has one file. you need many more libs


you should have some /var folders like /var /var/log /var/run

Last edited by DavidPhillips; 07-12-2002 at 12:11 AM.
 
  


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
creating my own Linux distribution+please help alex_smith Linux From Scratch 40 03-04-2005 06:34 PM
Creating New Linux Distribution Process liguorir Linux - Software 2 11-10-2003 11:20 AM
I'm looking for a distribution that can do all this...(Mini-ITX and USB) phoenixofwater Linux - Distributions 8 10-03-2003 05:38 PM
creating my linux distribution alex_smith Linux - General 3 07-02-2003 01:23 PM
creating a graphical installer for a custom linux distribution waresd Linux - Distributions 4 06-06-2002 08:27 AM

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

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