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 01-09-2011, 05:16 AM   #1
Julia.w
LQ Newbie
 
Registered: Jan 2011
Location: UK
Posts: 1

Rep: Reputation: 0
Ubuntu boots to Bash after update


I installed Ubuntu via Wubi on my Windows 7 machine a few months ago, and it's always worked fine. I've been able to boot into it without any issues and update it regularly.

I ran the update manager again today and when I rebooted for the changes to take effect, my start up stopped at a Bash screen. I tabbed to see commands, but have no idea what to do, and don't really understand why it's not just booting into Ubuntu as it always did.

I assume the update has broken something. What do I do, without ruining my Ubuntu settings or files?

Sorry to be so ignorant! I did search for similar topics, but nothing recent seemed to fit my problem, and the Linux site is currently down for me.

Thanks!
Julie
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 01-09-2011, 06:01 AM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,630
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
Well, the command to start the windowy stuff that you normally use (called the "X server") is
Code:
sudo startx
There should be an error somewhere that will tell you what's going wrong - it may tell you when you try to start the X server, or maybe it scrolls past as you boot up. If the X server starts without a hitch, then perhaps typing
Code:
dmesg | tail
(which gives you the bootup messages) will have a hint as to the source of the error. 'tail' prints the last 10 lines of a long piece of text - if it's not in those lines, you can try
Code:
dmesg | tail -n K | less
, replacing K with the number of lines you want to read. Gradually increase K until you find the error I have 802 lines total on my dmesg...

Useful commands for using the shell can be found here - it's a good general summary of background linux knowledge, but you're interested in section 9, "Alphabetical List of Principal Commands". The key ones for you to just move around are:
Code:
 cd - move to a different folder
 ls - list all the files in a folder
 pwd - tell you the current folder you're in
 man - Everyone's best friend, it tells you how to use a command (ie. "man ls" tells you what ls does, and its options)
 apropos - searches all the man pages for keywords 
 less - "Pages" text: when a command provides too much info for one screen (*cough* apropos) then you can "pipe" it through less, like we did earlier, to scroll through it at your own speed. For example: "apropos mail | less"
Hopefully these will help you get around on the shell, and to fix your problem
 
2 members found this post helpful.
Old 01-09-2011, 06:20 AM   #3
Fred Caro
Member
 
Registered: May 2007
Posts: 653

Rep: Reputation: 57
wubi

This is a drawback of wubi, that it is a file on windows. Can you choose a different kernel at boot time? Normally I would be inclined to run fsck -y to try to repair the broken bits but I don't see how you umount the dev on wubi, maybe someone else has some better ideas.

Fred.
 
Old 01-13-2011, 03:59 AM   #4
markd
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Rep: Reputation: 0
For reference ..
This also happened to me last night - two days after going from Wubi & XP to a full install (via Live CD, wiping entire drive). So not so sure it's Wubi dependent.
Also unsure of the exact cause but occured after had added VLC via synaptic and also had installed Adobe Flash via its website, and then the security updates that were triggered after, which requested the restart.

Upon booting would just hang after 'Battery check [ok]', and then maybe once out of every 5 resets would make it as far as the bash shell.

Linux newbie so thanks for the info on xwindows - i'll give it a go tonight and if i find the issue i'll post ... if can't sort it i'm not so far down the road that i can't do a full re-install.
Cheers
Markos
 
Old 01-13-2011, 10:03 AM   #5
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,630
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
Good luck Markos,

If you find you're re-installing often, then you might want to consider reading up on partitioning. My computer is partitioned so that I have one "/home" partition (so everything found in my /home folder once I've booted is on its own partition) and then a different root partition for each linux OS I have installed. This means I can:
a) Have the same documents on all my distros without having the information duplicated in each partition (probably less of a concern for you)
b) Re-install any of the distributions without damaging any of my documents or the other distributions

Explaining how to do this would be going off-topic, and may not even be of interest to you at this stage, but if you were interested in doing so and couldn't work out how to do it properly then you could start a new thread explaining what you were stuck on
 
1 members found this post helpful.
Old 01-15-2011, 09:03 AM   #6
markd
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Rep: Reputation: 0
Cheers for the info Snark - ill look into partitions once i get a little more comfortable!

For reference again, i figured out my issue after a full reinstall ... i'd downloaded the propriety flgrx ATI graphics card driver (Thinkpad T500) without realising that there was already an open source alternative installed as standard. That update seemed to have messed up my display settings in some way which caused the startx command to come back with a 'No screens' error.
Tried looking through the xconf.org file but was out of my depth and had no other internet at home to reference, so a reinstall sorted everything out .. i'll read up a little more before just installing any updates that pop up in future!!

Cheers
Markos
 
  


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
Installed Ubuntu 10.04 Hoping for dual boot with xp only boots Ubuntu mikiowoko Linux - Newbie 10 05-24-2010 08:00 AM
Slackware64, v 13 no long boots after update. JamesGT Slackware 5 12-14-2009 07:47 PM
After install/update fedora boots into x-windows...not gnome... beserkjay Fedora 1 02-04-2007 10:31 PM
SUSE 9.2 boots to Bash lt_wentoncha Linux - Newbie 6 04-13-2005 04:49 AM
FC2 still boots to old kernel after YUM update delldo Fedora 3 12-22-2004 03:06 PM


All times are GMT -5. The time now is 01:30 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