Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a embedded system (short ES) on a cf-card (short CFC). I plugged the CFC into the cardreader of my notebook.

Sure the devices of my notebook are not the same then in the ES.

Now the mainboard of the changed and the CF-card is connected to another controler (other /dev/hdX). So I am not able to boot the ES from the CFC, because of other kernel parameters (hdd device).

I mounted the CFC on the notebook and changed the lilo.conf but now I am not able to reinstall the new config into the CFCs MBR.

I tried parameter -M but lilo checks that the device-names in the lilo.conf on the CFC are not the same that on my notebook.

e.g. I try to install on /dev/sdc (the CFC on my notebook) but the root-parameter in lilo.conf is (dev/hda) because the system is running on the ES, not my notebook.

So, how can I tell lilo to install in a MBR with parameters of my target system (ES)??

share|improve this question

migrated from stackoverflow.com Aug 25 '11 at 14:42

This question came from our site for professional and enthusiast programmers.

mount -o bind /sys $yourmount/sys
mount -o bind /proc $yourmount/dev
mount -o bind /proc $yourmount/proc
chroot /$yourmount /bin/sh

And it should work, if not - check the path to disc device ( /dev/hda /dev/sda etc ) as the system you booted from might use a different device name for that particular disk. For example:


Or use UUID instead of LABEL (man lilo.conf).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.