LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 01-20-2008, 01:13 PM   #1
santana
Member
 
Registered: Sep 2004
Distribution: FC, ubuntu, OpenSuse
Posts: 112

Rep: Reputation: 16
lilo cross install


I am attempting to cross install linux on a router board(soekris net4521) from my workstation. The media is a compact flash card. I am having difficulty getting lilo installed.

I have made a bootstrap linux install on the cf drive which is mounted from /dev/sdd on /home/me/target.

The primary issue seems to be that in target /dev there are no hd* devices. This my first cross install so I don't know if this is expected or not, and all of the guides I have seen suggest to use grub, which has some issues with my disk geometry. As a result, It was advised that I use lilo instead. I tried to install lilo two ways:

first try, "chroot"

lxion:~$sudo chroot target /bin/bash
root:/# mount -a
root:/# lilo -C /etc/lilo.conf
Fatal: stat /dev/sdd: No such file or directory

hmmm. no luck there. Even though the cf drive is mounted on /dev/sdd iny workstation file system it doesn't show up in the chroot'ed file system /dev...

second try, "external"
lxion:~$sudo lilo -C target/etc/lilo.conf
Warning: LBA32 addressing assumed
Warning: The boot sector and map file are on different disks.
Warning: no PROMPT with SERIAL; setting DELAY to 20 (2 seconds)
Fatal: Illegal 'root=' specification: /dev/hda1

I see that I did something bad with the map file, it should be going on what ever is to be /dev/hda1. I know for sure that when the router boots it's bios reports the cf disk as /dev/hda so I am hesitant to change this...

Now, I have exhausted the options that I know of, and google didn't turn up any thing too useful

this is my lilo.conf

# NOTE: boot and disk below must be set to wherever your distro
# is currently mounted (while you're installing LILO). Don't mess
# with anything else unless you really know what you're doing.
boot = /dev/sdd
disk = /dev/sdd
bios = 0x80

delay = 1
serial=0,9600n8

image = /boot/vmlinuz-2.6.22-14-generic
root = /dev/hda1
append="console=ttyS0,9600n8"
label = soekris-2.6.22-14
read-only

can you advise?

thanks
Burlen
 
Old 01-20-2008, 01:48 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
Quote:
Originally Posted by santana View Post

Warning: The boot sector and map file are on different disks.
Warning: no PROMPT with SERIAL; setting DELAY to 20 (2 seconds)
Fatal: Illegal 'root=' specification: /dev/hda1

boot = /dev/sdd
disk = /dev/sdd
bios = 0x80
I would say that boot=/dev/sdd correctly tells your workstation what disk to use to install lilo on the MBR. But I think that the combination of disk = /dev/sdd and bios = 0x80 is supposed to tell lilo what router board BIOS address corresponds to the boot device address on the router board. Therefore I would try:

disk = /dev/hda
bios = 0x80

--------------------
Steve Stites
 
Old 01-20-2008, 01:53 PM   #3
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 71
Before chrooting, try
mount --bind /dev /home/me/target/dev
mount -t proc proc /home/me/proc
and then
chroot /home/me/target /bin/bash
 
Old 01-20-2008, 03:08 PM   #4
santana
Member
 
Registered: Sep 2004
Distribution: FC, ubuntu, OpenSuse
Posts: 112

Original Poster
Rep: Reputation: 16
Ok, thanks for all the feedback, here is how it went,

Quote:
Originally Posted by Uncle_Theodore View Post
Before chrooting, try
mount --bind /dev /home/me/target/dev
mount -t proc proc /home/me/proc
and then
chroot /home/me/target /bin/bash
Nice! I tried it but still:

Code:
lxion:~$sudo mount --bind /dev /home/burlen/target/dev
lxion:~$sudo mount -t proc proc /home/burlen/target/proc
lxion:~$sudo chroot target /bin/bash
root:/# lilo -C /etc/lilo.conf
Warning: LBA32 addressing assumed
Warning: no PROMPT with SERIAL; setting DELAY to 20 (2 seconds)
Fatal: Illegal 'root=' specification: /dev/hda1
and

Quote:
Therefore I would try:

disk = /dev/hda
bios = 0x80
I was kind of leary about this, because the lilo.conf I have comes froma working install. But, I am out of my leage here, so I tried it. Unfortunately similar "Fatal: illegal" results were returned.

I really appreciate the feedback, thanks.

Last edited by santana; 01-20-2008 at 03:15 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cent OS install on an Optiplex 320... installed lilo... need help with lilo.conf hcervan Linux - Newbie 7 01-18-2008 08:07 AM
lilo ntldr missing after running lilo after slackware install SeriousArnoud Slackware 1 08-16-2005 09:07 AM
cross install / ssh for step 2 balimba Debian 1 04-25-2005 04:01 PM
Lilo lost, Install disk failing to restore Lilo on dual boot? Dobie Linux - Newbie 2 05-05-2004 05:00 PM
I install Slackware on small HDD with LILO, can't boot LILO? kleptophobiac Slackware 4 08-10-2003 04:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

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