| Ubuntu This forum is for the discussion of Ubuntu Linux. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-07-2007, 09:04 AM
|
#1
|
|
Member
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 12.10
Posts: 249
Rep:
|
Dropped into BusyBox shell after modifying install
After installing Kubuntu Gutsy I found that I'd made the root partition too small for the additional apps I wanted to install so I backed up the contents oh my home and root partitions to a second disk and resized the partitions. The files copied back OK but now when I boot it just (eventually) drops me into a BusyBox shell. I was hoping I could copy back the contents of my root and no have to reinstall everything from scratch again. I checked the live CD and there doesn't seem to be any repair install utility. Is there any way I can get around having to reinstall the system and all my apps again? I was hoping there may just be one or two files that hadn't copied over that may fix it?
|
|
|
|
11-08-2007, 02:47 AM
|
#2
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,234
|
How did you resize - did it involve re-making the filesystems ???.
With a bit of luck should be just a UUID mismatch - select "Recovery Mode" from the boot menu, and have a look at the messages.
|
|
|
|
11-08-2007, 01:39 PM
|
#3
|
|
Member
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 12.10
Posts: 249
Original Poster
Rep:
|
I didn't think the UUID would cause problems but it looks like that's it, here's the relevant output:
Check root = bootarg cat /proc/cmdline
or missing modules, devices: cat /proc/modules ls /dev
ALERT! /dev/disk/by-uuid/62322ba8-1af4-4c15-8359-2cc45e52a24f does not exist. Dropping to a shell!
does anyone know how I can correct this?
|
|
|
|
11-08-2007, 04:00 PM
|
#4
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,234
|
Personally I'd just go back to using physical device designation (/dev/sda1 ... whatever), but you should be able to find the UUID under /dev/disk/
Else, the various filesystems have commands that will display it - for swap, just do a mkswap and note the result.
|
|
|
|
11-10-2007, 06:46 AM
|
#5
|
|
Member
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 12.10
Posts: 249
Original Poster
Rep:
|
I cded to /dev/disks did an ls and there are 3 entries there, I did a mv ./existing-uuid ./my-uuid to see if I could rename a existing one but that didn't work. I also tried the same thing with cp but that gave an error saying there's not enough disk space (what do these things contain? I had 2GB free on my root partition). For some reason I couldn't see the disks directory in a file manager (tried dolphin and konqueror) so I'm going to have to try to do it all from a command line. Syg00, what did you mean by
Quote:
|
Personally I'd just go back to using physical device designation (/dev/sda1 ... whatever)
|
I don't get what you mean, this problem isn't affecting the way I access my disks, it's stopping the system from booting.
Anyone got any more suggestions before I just give up and reinstall everything from scratch?
|
|
|
|
11-10-2007, 11:44 AM
|
#6
|
|
Guru
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,002
|
Quote:
|
62322ba8-1af4-4c15-8359-2cc45e52a24f does not exist
|
Newer ubuntus refer to disks with this by-uuid thingy. I hate it.
Anyway, your disk ID has changed, so the system can no longer find it. What syg00 is saying is that you can go back to the "old" way of naming disks eg /dev/sda1 or /dev/hda1 and this should work.
So, boot grub. Press e to edit. Find the line that is referring to your root partition, it'll be something like
Code:
kerne /boot/vmlinuz-2.6.15-29-386 root=62322ba8-1af4-4c15-8359-2cc45e52a24f ro quiet
Change that stupid string to /dev/whatever like this:
Code:
kernel /boot/vmlinuz-2.6.15-29-386 root=/dev/sda1 ro quiet
Obviously your root partition may not be /dev/sda1, but only you know which partition of which disk it is on 
Press return.
You should boot OK.
Now fix up /boot/grub/menu.lst so it is automatic next time.
|
|
|
|
11-10-2007, 01:28 PM
|
#7
|
|
Member
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 12.10
Posts: 249
Original Poster
Rep:
|
Thanks for explaining that Tredegar I tried it but it didn't make any difference. I also tried appending root=/dev/sda1 to the recovery mode option but I only got the same thing.
|
|
|
|
11-10-2007, 02:13 PM
|
#8
|
|
Guru
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,002
|
Quote:
|
I also tried appending root=/dev/sda1 to the recovery mode option but I only got the same thing.
|
Exactly the same thing? (What is this, Eg. being dumped to a busybox shell with exactly the same error message?)
You cannot append it, you have to replace it. You do not want any references to 62322ba8-1af4-4c15-8359-2cc45e52a24f at all because that no longer exists. That partition got given a new number when you repartitioned. So it isn't found. So all is broken.
Are you sure that /dev/sda1 is your root partition? If you are dual-booting it is probably your windows partition.
The curent partition uuid numbers will be listed in /dev/disk/by-uuid. If you can do a ls -l /dev/disk/by-uuid you should see that these are just links pointing to /dev/hd?x or /dev/sd?x
The red bits may have to be changed for your particular setup. Please tell us the output of ls -l /dev/disk/by-uuid
Serious Uncertainty: Are you booting to "recovery" from grub (from your hdd) or your install CD?
The bottom line is this:
/boot/grub/menu.lst is referring to a by-uuid disk that does not match. So it will not work. We either have to find the right uuid for your root partition, or refer to it in the "old" way. See above. Then get back here 
|
|
|
|
11-10-2007, 03:42 PM
|
#9
|
|
Member
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 12.10
Posts: 249
Original Poster
Rep:
|
Quote:
|
Exactly the same thing? (What is this, Eg. being dumped to a busybox shell with exactly the same error message?)
|
yep 'fraid so.
I tried:
kernel /boot/vmlinuz-2.6.15-29-386 root=/dev/sda1 ro quiet
from GRUB but I'd swear it did the same thing?
Quote:
|
You cannot append it, you have to replace it. You do not want any references to 62322ba8-1af4-4c15-8359-2cc45e52a24f at all because that no longer exists.
|
[scarcasm]can you run that by me again, I'm still not quite sure what you're trying to tell me. Should I blast the UUID with a nuclear warhead or just threaten to throw it off a tall building?  [/scarcasm]
Quote:
|
Are you sure that /dev/sda1 is your root partition?
|
yes, I even checked by looking in the system settings of my Gutsy LiveCD.
Anyway I edited the menu.lst file from a liveCD and it seems to work. Thanks everyone for your help.
|
|
|
|
12-22-2007, 06:13 PM
|
#10
|
|
LQ Newbie
Registered: Dec 2007
Posts: 16
Rep:
|
tredegar, thank you very much.
Today I deleted two old linux installations with gparted live, and after restarting, I could not boot Ubuntu
I replaced numbers with /dev/sda5, and it worked 
|
|
|
|
12-23-2007, 02:44 AM
|
#11
|
|
Guru
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,002
|
Quote:
|
tredegar, thank you very much.
|
Pleased it worked for you.
Welcome to LQ!
|
|
|
|
01-28-2008, 06:57 AM
|
#12
|
|
LQ Newbie
Registered: Jan 2008
Posts: 1
Rep:
|
Hi,
I m also experiencing the same issue. I did what was asked, which is to update the grub config from the uuid to the actual path value.
It did work for the first time. Once inside UBUNTU, went to the menu.lst and updated the value to path as mentioned.
Then I did a restart. It didnt work. I tried for every number ranging from 1 to 7 for the /dev/sdaX. Still I get drop off to the busy box empty screen.
I ve noticed this when I was at the grub screen
root (hd0,1)
kernel /boot/vmlinuz-2.6.22-14-generic root=/dev/sda1 ro quiet
initrd /boot/initrd.img-2.6.22-14-generic
quite
Do I need to update root (hd0,1) whenever I change the value in /dev/sdaX?
Appreciate the advice.
|
|
|
|
01-29-2008, 05:00 AM
|
#13
|
|
Guru
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,002
|
Maybe it needs to look like this:
Code:
root (hd0,0)
kernel /boot/vmlinuz-2.6.22-14-generic root=/dev/sda1 ro quiet
initrd /boot/initrd.img-2.6.22-14-generic
|
|
|
|
12-17-2009, 01:29 AM
|
#14
|
|
LQ Newbie
Registered: Dec 2009
Posts: 2
Rep:
|
Re: Dropped into BusyBox shell
I had a similar problem on my friends laptop.
Turned out to be a journal error. I ended up running
sudo fsck /dev/sda1
while booted on the live cd. This found one error and repaired
ext3 journal.
I was trying to mount the drive on the live cd and was unable.
I used < dmesg | tail >, as the error message stated to realize
there was a problem with the journal.
Remember not to be using your HDD while you're in transit.
Better to get a SSD if you plan to use your laptop like that.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:03 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|