LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 08-23-2005, 09:42 AM   #1
bruse
Member
 
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 .
SO PLS HELP me.


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, 12:42 PM   #2
corfe
Member
 
Registered: Dec 2004
Location: Washington State, USA
Distribution: Debian Sid
Posts: 128

Rep: Reputation: 15
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

(or)

lilo -r /mnt/linux

Good luck.
 
  


Reply


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


All times are GMT -5. The time now is 11:36 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration