LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 10-16-2010, 06:15 PM   #1
argondos
LQ Newbie
 
Registered: Oct 2010
Distribution: Debian wheezy/sid
Posts: 9

Rep: Reputation: 0
Unhappy LILO repair and Chroot problems


Hello !
I'm fairly new to linux, and a few days ago, as I was updating my system, I got the "EBDA is big ; kernel setup stack overlaps LILO second stage" error after reboot.
I use a 3- boot, ( Win XP / Debian / Debian) and Windows XP works fine, but I can't launch any of the Debian.

I googled the message, and I found this link :
http://ubuntuforums.org/showthread.php?t=329223

The only problem problem is that when I try to chroot, I got another message, "chroot: failed to run command `/bin/bash': No such file or directory"
I googled this message too, but found no relevant answers.

I am now using a knoppix usb drive to try to repair the lilo, but I ran out of ideas ...

Any iclue, either for the lilo or chroot problem ??
Thanks for the answers !
 
Old 10-16-2010, 06:25 PM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Hello argondos and welcome to LQ,

could you please post the command you executed to chroot?
If you're still with a liveCD on the system, please post the output of
Code:
df -h
Markus

Last edited by markush; 10-16-2010 at 06:34 PM. Reason: had a better idea for my question
 
Old 10-16-2010, 08:09 PM   #3
argondos
LQ Newbie
 
Registered: Oct 2010
Distribution: Debian wheezy/sid
Posts: 9

Original Poster
Rep: Reputation: 0
Hello,

Sorry for answering so late ...
for the chroot, I used
Code:
chroot /mnt /bin/bash
and when I type df -h, I got :
Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb1             7.5G  689M  6.8G  10% /mnt-system
tmpfs                 1.0G   18M 1007M   2% /ramdisk
/dev/cloop            1.9G  1.9G     0 100% /KNOPPIX
unionfs               1.0G   18M 1007M   2% /UNIONFS
unionfs               1.0G   18M 1007M   2% /home
tmpfs                  10M   64K   10M   1% /UNIONFS/var/run
tmpfs                  10M     0   10M   0% /UNIONFS/var/lock
tmpfs                 100M   72K  100M   1% /UNIONFS/var/log
tmpfs                 1.0G   12K  1.0G   1% /tmp
udev                   20M  416K   20M   3% /dev
tmpfs                 1.0G  4.0K  1.0G   1% /dev/shm
 
Old 10-16-2010, 08:23 PM   #4
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Well, before chrooting, you'll have to mount the / partition of your Ubuntu. The chroot-command as you've executed it provides, that / of Ubuntu is mounted to /mnt. Please check this. In your output of "df -h" there is nothing mounted on /mnt. Therefore you get the errormessage about /bin/bash not found.

Markus
 
Old 10-16-2010, 09:13 PM   #5
argondos
LQ Newbie
 
Registered: Oct 2010
Distribution: Debian wheezy/sid
Posts: 9

Original Poster
Rep: Reputation: 0
Ok, I have done what you said, but I still got the problem...
Here is what I did :
Code:
mount -o rw /dev/sda1 /mnt
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
mount --bind /dev /mnt/dev
chroot /mnt /bin/bash
and I still got the same mistake.
When I type, df -h, sda1 now appears :
Code:
Sys. de fichiers    Taille  Uti. Disp. Uti% Monté sur
/dev/sdb1             7,5G  689M  6,8G  10% /mnt-system
tmpfs                 1,0G   19M 1006M   2% /ramdisk
/dev/cloop            1,9G  1,9G     0 100% /KNOPPIX
unionfs               1,0G   19M 1006M   2% /UNIONFS
unionfs               1,0G   19M 1006M   2% /home
tmpfs                  10M   64K   10M   1% /UNIONFS/var/run
tmpfs                  10M     0   10M   0% /UNIONFS/var/lock
tmpfs                 100M   72K  100M   1% /UNIONFS/var/log
tmpfs                 1,0G   12K  1,0G   1% /tmp
udev                   20M  416K   20M   3% /dev
tmpfs                 1,0G  4,0K  1,0G   1% /dev/shm
/dev/sda1              16M  141K   15M   1% /mnt
udev                   20M  416K   20M   3% /mnt/dev
Any clue ??
 
Old 10-17-2010, 12:19 AM   #6
jtarin
Member
 
Registered: May 2010
Location: Vladivostok, Russia
Distribution: LinuxMint 17
Posts: 104

Rep: Reputation: 23
1.Boot to the LiveCD Desktop . The Live CD must be the same as the system you are fixing - either 32-bit or 64-bit (if not then the chroot will fail).
2.Open a terminal
3.Determine your normal system partition - (the switch is a lowercase "L")
sudo fdisk -l
If you aren't sure, run
df -Th. Look for the correct disk size and ext3 or ext4 format.
4.Mount your normal system partition:
Substitute the correct partition: sda1, sdb5, etc.
sudo mount /dev/sdXX /mnt # Example: sudo mount /dev/sda1 /mnt
5.Only if you have a separate boot partition:
sdYY is the /boot partition designation (for example sdb3)
sudo mount /dev/sdYY /mnt/boot
6.Mount the critical virtual filesystems:
sudo mount --bind /dev /mnt/dev
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /proc /mnt/proc
sudo mount --bind /sys /mnt/sys
7.Chroot into your normal system device:
sudo chroot /mnt
8.Do your work
9.Exit chroot: CTRL-D on keyboard
10.Unmount virtual filesystems:
sudo umount /mnt/dev/pts
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt/sys
If you mounted a separate /boot partition:
sudo umount /mnt/boot
11.Unmount the LiveCD's /usr directory:
sudo umount /mnt/usr
12.Unmount last device:
sudo umount /mnt
13.Reboot.
sudo reboot
 
1 members found this post helpful.
Old 10-19-2010, 05:23 PM   #7
argondos
LQ Newbie
 
Registered: Oct 2010
Distribution: Debian wheezy/sid
Posts: 9

Original Poster
Rep: Reputation: 0
Ok, this is fixed. I was trying to mount sda1, the boot partition, whereas I should have mounted sda5, the partition where my system was. I made the mistake because my disk has 8 partitions, 1 boot, 2 linux, and 5 others ... I wasn't sure wich to choose

Thanks everyone for the answers anyway !!
 
  


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
I need a Linux OS other than Ubuntu which has a repair disk or repair software jhmac77 Linux - Newbie 1 03-17-2008 07:04 AM
How to repair Lilo on Macbook using rEFIt dr_jared88 Debian 1 09-22-2007 09:45 PM
bootloader repair/replace problems signmeuptoo SUSE / openSUSE 4 02-15-2007 07:14 PM
Install Windows and then repair LILO objorkum Slackware 13 12-30-2004 05:56 AM
base gentoo installed, can't boot, need to repair lilo. how? Junior41180 Linux - Distributions 6 11-10-2004 04:45 AM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration