Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-23-2005, 08:42 AM   #1
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Rep: Reputation: 30
reinstall LILO .

i have reinstall LILO of mandrake 10.0. from SUSE9.1 .

linux:~ # chroot /mnt/linux/
chroot: cannot run command `/bin/bash': No such file or directory
linux:~ # chroot /mnt/sysimage/
chroot: cannot run command `/bin/bash': No such file or directory
linux:~ # fdisk -l

Disk /dev/hda: 80.0 GB, 80060424192 bytes
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1305 10482381 7 HPFS/NTFS
/dev/hda2 1306 2610 10482412+ 83 Linux
/dev/hda3 2611 9733 57215497+ 5 Extended
/dev/hda5 2611 2740 1044193+ 82 Linux swap
/dev/hda6 2741 4084 10795648+ 83 Linux
/dev/hda7 5351 7960 20964793+ 7 HPFS/NTFS
/dev/hda8 7961 9733 14241591 b W95 FAT32
/dev/hda9 4085 5350 10169113+ 83 Linux

Partition table entries are not in disk order
linux:~ #

linux:~ # ll /bin/ba*
-rwxr-xr-x 1 root root 17287 Apr 5 2004 /bin/basename
-rwxr-xr-x 1 root root 447064 Apr 5 2004 /bin/bash

linux:~ # chroot /mnt/sysimage/ /bin/bash
chroot: cannot run command `/bin/bash': No such file or directory
linux:~ #
Old 08-23-2005, 11:42 AM   #2
Registered: Dec 2004
Location: Washington State, USA
Distribution: Debian Sid
Posts: 128

Rep: Reputation: 16
I don't have LILO installed anymore, but I remember doing what you're doing before from a live CD. LILO has a built-in command for what you're doing (-r), try it out (basically, it tells LILO to chroot to the directory before doing anything):

lilo -r /mnt/sysimage


lilo -r /mnt/linux

Good luck.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Reinstall lilo hraposo Mandriva 6 09-22-2004 01:41 PM
reinstall lilo nixel Slackware - Installation 6 05-04-2004 05:20 PM
reinstall lilo watashiwaotaku7 Linux - Software 6 05-09-2003 03:05 AM
LILO Reinstall Stephanie Linux - General 2 08-23-2001 10:49 AM
reinstall LILO? bobbinbrisco Linux - Software 4 08-01-2001 05:46 AM

All times are GMT -5. The time now is 03:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration