LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-09-2019, 04:40 AM   #1
e-San
LQ Newbie
 
Registered: Jul 2010
Posts: 14

Rep: Reputation: 0
Moving from VirtualBox to read HDD and lilo


Hi!

I've been messing around with BasicLinux to prepare it to work on my 486 system. Long-story-short: I have 16MB working (converted from VDI to RAW) disk image which I've dd'ed on sda (on other system). Now LILO won't boot. Throws LI or hangs on LI or L 01 04 depends on system.

I thougt "Easy, just repair LILO!". So I booted, kubuntu 18.03 x86, then Ubuntu server and at the end BG-rescue-7.0. Every one boots, I mount (bind) /dev on /mnt/dev and try to run lilo, but it dies with "Out of memory".

Please help, I have no idea anymore...
 
Old 09-09-2019, 05:17 AM   #2
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
boot your live disk

mount sda1 and rbind mount dev proc and sys and then chroot
Code:
mount /dev/sda1 /mnt
for i in dev proc sys;do
 mount --rbind /${i} /mnt/${i}
done
chroot /mnt
edit lilo.conf to point at sda
run/install lilo

I suppose the live disk might be consuming the available ram
so you may need a live env. with a smaller footprint
 
Old 09-09-2019, 06:57 AM   #3
e-San
LQ Newbie
 
Registered: Jul 2010
Posts: 14

Original Poster
Rep: Reputation: 0
I did mount with -o bind and --bind those directories, but no luck.
I was forcing lilo (without editing lilo.conf) to write to /dev/sda by "-b" swich.

It is impossible that live disk is to big - bg-rescue should work on less than 100MB and I have 512MB.

Fortunately, I've found workaround: put "linear" into lilo.conf on my virtual machine and reinstall lilo. Now it boots fine after putting image on real hdd.

Thanks!
 
  


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
[SOLVED] virtualbox is installed along with virtualbox-dkms and virtualbox-ext-pack and linux-headers-generic, but error for no /dev/vboxdrv Astral Axiom Linux - Software 2 03-04-2019 08:09 PM
Run customised HDD driver for external HDD while generic HDD driver for bootable purpose sonia49 Linux - Newbie 1 09-28-2016 08:52 PM
lilo question about moving HDD to controller card muxman Linux - Software 8 10-13-2007 05:27 PM
Moving root from a dual-boot HDD to a new HDD Androoski SUSE / openSUSE 1 05-13-2005 10:34 PM
Moving linux->New HDD: LILO trouble! tredegar Linux - Newbie 11 12-31-2003 11:50 AM

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

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