Install LILO on a disk not ROOT mounted

Posted on 2005-03-22
Medium Priority
Last Modified: 2010-04-20
I have to duplicate several boxes with the same REISER filesystem.

All I have to do, is repartition the blank disk then mount the blank disk into /mnt and copy the fs from the master disk mounted in /mnt1
then remove al disks but the previously blank one. and boot from CD telling the kernel to use /dev/hdc1 as root
then run LILO (lilo.conf already exists) , then reboot w/o the CD Drive

The system boots perfectly.

I would like to save time, and install LILO before or after copying files to the blank disk.

Is that posible?..

remember I have 2 disk and 1 CD. One Disk is blank the other has a filesystem on first partition.
when I boot from CD the CD itself is /dev/hda, the blank disk is /hdc and the master disk is /hdd when mounted, blank disk is /hdc1 on /mnt and master disk is /hdd1 on /mnt1 the kernel is located at / (bzImage) on the master disk but copied to the blank disk at the same location /

I would like to run LILO (the lilo binary is contained in the CD filesystem but also on both disks) and specify that it must be installed on the MBR of the blank disk and must boot /dev/hda as it's root partition. because when I remove the CD Drive and the master disk, the previously blank (now with a full filesystem) becomes hda1

Question by:egarciat
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 38

Accepted Solution

wesly_chen earned 800 total points
ID: 13604729

   You can try as root after copying files to the blank disk,
chroot /mnt
cd /etc
lilo -r /mnt -f /mnt/etc/lilo.conf
where -r option specify the root directory.

man lilo
for more details.

LVL 20

Assisted Solution

Gns earned 200 total points
ID: 13611118
Just take care that the lilo.conf used has the right thing for boot= ... If I understand you correctly there, then you need
when both "master drive" (==/dev/hdd) and "cloned drive" (==/dev/hdc) is present in the machine.

-- Glenn

Featured Post

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month9 days, 11 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question