Personal tools
You are here: Home Forums Help and Advice (Reg) having trouble booting :(

having trouble booting :(

2.5
Up to Help and Advice (Reg)

having trouble booting :(

Posted by Toby J Roots at February 21. 2010

hey there, I'm very new to linux so i dont know of im being really dumb here, but this is my problem.

 

i've installed ubuntu 9.10, runs fine, everything works, or it did. i was in the middle of installing a load of updates, when my computer turned off (it does that every now and then, i need to replace the psu). so i turned it back on, but when it turned on it went straight to the grub screen, so i ran the recovery, it finished the recovery, then just sat there on the screen with the recovery results, being a newbie i dont know what to do at that point so i decided to just restart the computer. turned on again, got the grub screen again so i chose the top option (ubuntu, linux 2.6.31-14-generic) seeing as it looks the most like the windows equivalent of start windows normally and i'd already tried the recovery option. so i select that option and i get the black screen with the little white ubuntu logo in the middle like i do when it turns on normally, so i think good, its working, but then after an unusually long wait i get a black screen with white writing at the top saying:

fsck from util-linux-ng 2.16

/dev/sda1: clean, 149168/7143424 files, 101022/28559545 blocks

 

beneath that i have a little flashing underscore and i can write stuff on the screen but thats all i can do, i dont know if this means i need to resinstall linux or if this is normal and there's something im supposed to write there.

 

somebody please help me, im using my windows pc at the moment which is fine, but i was enjoying exploring a new operating system.

 

Thanks,

TJ

Re: having trouble booting :(

Posted by Mark Greaves (PCNetSpec) at February 21. 2010

try typing:

startx then hit enter

or try:

Ctrl+Alt+F7

use the Ctrl and Alt from the left side of the keyboard

Re: having trouble booting :(

Posted by Toby J Roots at February 21. 2010

no luck with either option, thanks anyway though. however when i turned it on this time, it did the same as before except this time after selecting ubuntu, linux 2.6.31-14-generic it brought up the same screen with the same message but directly beneath that message it said:

 

init: udevtrigger main process (444) terminated with status 1

init: udevtrigger post-stop process (447) terminated with status 1

init: udevmonitor main process (443) killed by TERM signal

init: networking main process (448) terminated with status 1

 

I hope that helps someone figure out whats happened.

Re: having trouble booting :(

Posted by Mark Greaves (PCNetSpec) at February 21. 2010

have you got an Ubuntu LiveCD?

if so, can you boot from it, then post the contents of the /etc/fstab file back here

Re: having trouble booting :(

Posted by Toby J Roots at February 21. 2010

ok, how do i find the /etc/fstab file? sorry i only got linux a few days ago.

Re: having trouble booting :(

Posted by Mark Greaves (PCNetSpec) at February 21. 2010

pen a terminal and type:

gedit /etc/fstab and hit enter

Re: having trouble booting :(

Posted by Mark Greaves (PCNetSpec) at February 21. 2010

Open a terminal and type:

gedit /etc/fstab and hit enter

Re: having trouble booting :(

Posted by Mark Greaves (PCNetSpec) at February 21. 2010

damn...click 'Computer' icon on desktop, click 'filesystem' icon, click 'etc' folder, click 'fstab' file

 

It should open in gedit

Re: having trouble booting :(

Posted by Mark Greaves (PCNetSpec) at February 21. 2010

Lets try this first...1) reboot from the liveCD (important to reboot, so hard drives are NOT mounted).

2) Open a terminal and type:

fsck and hit enter 

if it says something like - 

/dev/sda5 is mounted.  


WARNING!!!  Running e2fsck on a mounted filesystem may cause

SEVERE filesystem damage.


Do you really want to continue (y/n)?

type n and hit enter

if the drive is 'unmounted' let it do its thing

Re: having trouble booting :(

Posted by Toby J Roots at February 21. 2010

sorry for the slow reply, i was afk.  i opened the /etc/fstab in gedit and this is what it said:

aufs / aufs rw 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0
/dev/sda5 swap swap defaults 0 0

 

do you still want me to try your last suggestion?

Re: having trouble booting :(

Posted by Mark Greaves (PCNetSpec) at February 21. 2010

My faullt...this is the wrong fstab file (its the one from the CDROM)

click 'Computer' icon , click 'hard drive' icon, click 'etc' folder, click 'fstab' file


you are looking for a file with something like this in it:

# /etc/fstab: static file system information.

#

# Use 'blkid -o value -s UUID' to print the universally unique identifier

# for a device; this may be used with UUID= as a more robust way to name

# devices that works even if disks are added and removed. See fstab(5).

#

# <file system> <mount point>   <type>  <options>       <dump>  <pass>

proc            /proc           proc    defaults        0       0

# / was on /dev/sda5 during installation

UUID=4519bc2a-7a8b-4703-be8e-594baf97c1fd /               ext4    errors=remount-ro 0       1

# swap was on /dev/sda6 during installation

UUID=19d9a33f-2ae5-4ba7-90e6-6a56ff847574 none            swap    sw              0       0

/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0

 

Re: having trouble booting :(

Posted by Toby J Roots at February 21. 2010

ok here's what it says:

 

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# / was on /dev/sda1 during installation
UUID=91684f9e-7ce5-4a31-852b-fe6bb303b985 /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=3547e200-33ab-4efd-9343-ed8d80bfeb29 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0

Re: having trouble booting :(

Posted by Mark Greaves (PCNetSpec) at February 21. 2010

ok..do you have any hard drive icons on your desktop?

if you do...right click on them and select unmount

when non left...open a terminal

and type:

sudo fsck -f -p /dev/sda1

if it warns about anything being 'mounted'...hit 'n' and hit enter

Re: having trouble booting :(

Posted by Toby J Roots at February 21. 2010

ok i've done all that, it didnt warn about anything being mounted so it all went smoothly. what next?

Re: having trouble booting :(

Posted by Mark Greaves (PCNetSpec) at February 21. 2010

see if it will boot normally now, and let me now what happens

Re: having trouble booting :(

Posted by Toby J Roots at February 21. 2010

no its still showing the same screen. i think im gonna put this down as a lost cause and just reinstall linux on the computer. it probably got to badly corrupted when it crashed whilst installing the updates. thanks for all your help man :).

Re: having trouble booting :(

Posted by Mark Greaves (PCNetSpec) at February 21. 2010

will it boot from ANY kernel?

Re: having trouble booting :(

Posted by Mark Greaves (PCNetSpec) at February 21. 2010

1. - Download/grab a live cd.

2. - Start live cd and when it loads the desktop open a gnome-terminal.

3. - Create this dirs:

sudo mkdir /media/karmic

sudo mkdir /media/karmic/proc /media/karmic/dev /media/karmic/etc

4. - Mount your linux partition (for me sda1):

sudo mount /dev/sda1 /media/karmic

5. - Bind the dirs:

sudo mount -o bind /proc /media/karmic/proc

sudo mount -o bind /dev /media/karmic/dev/

sudo mount -o bind /dev/pts /media/karmic/dev/pts

6. - Copy this file

sudo cp /etc/resolv.conf /media/karmic/etc/resolv.conf

7. - Update your real linux partition with chroot:

sudo chroot /media/karmic apt-get update

8. - Upgrade your real linux partition with chroot:

sudo chroot /media/karmic apt-get dist-upgrade

9. - If you have some broken package:

sudo chroot /media/karmic apt-get -f install

10. - Reboot and voilá! Fixed for me.

Re: having trouble booting :(

Posted by Edmund Merrow-Smith at February 23. 2010

You might just have a faulty install (just install Ubuntu again, when I did that, I just installed annther Ubuntu along side the old one, and give the old one the minimum space).

However, while I'm no computer expert . . .

"my computer turned off (it does that every now and then, I need to replace the psu)."


This instantly grabbed my eye. If your using a faulty/cheap (same thing) PSU, then stop using it now and get a new one. a 600W one will set you back ~£80, and a 300W one ~£40 (I haven't checked prices in a while), but it is definitely worth it.

First rule of PC building that I was taught was "Never skimp out on the PSU." It'll either out-right kill components, render them permanently damaged, or just give you an unstable system, no-mater what software you're using. A good PSU, however, is essential for upgrading and might even prolong the life span of your components (although that's more to do with cooling. Do you have adequate cooling/does the back of the case get hot after an hour?)

Re: having trouble booting :(

Posted by Sam Baynham at March 05. 2010

Previously Mark Greaves (PCNetSpec) wrote:


1. - Download/grab a live cd.

...

10. - Reboot and voilá! Fixed for me.

Thanks a lot for this! Fixed the same problem for me, and I learned something new doing it. (Using Chroot to fix a messed-up installation.)

Cheers

Sam B

 

Re: having trouble booting :(

Posted by Mark Greaves (PCNetSpec) at March 05. 2010

You are Welcome, but I can't take credit for this one... I found it here:

https://bugs.launchpad.net/ubuntu/+source/udev/+bug/433943

but it worked for me after an update screwed my system.

Re: having trouble booting :(

Posted by Alex Briner at March 07. 2010

Previously Mark Greaves (PCNetSpec) wrote:

1. - Download/grab a live cd.

....

10. - Reboot and voilá! Fixed for me.

Did this but when I get to 7. this happens:

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

I entered the command and it didn't seem to do anything. Anyone have any ideas for me?

 

Re: having trouble booting :(

Posted by Alex Briner at March 07. 2010

accidentally quoted myself. if anyone could tell me what to do. I have a feeling the fix is really easy.

 

 

Previously Mark Greaves (PCNetSpec) wrote:

1. - Download/grab a live cd.

....

10. - Reboot and voilá! Fixed for me.

Did this but when I get to 7. this happens:

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

I entered the command and it didn't seem to do anything. Anyone have any ideas for me?

 

Re: having trouble booting :(

Posted by Mark Greaves (PCNetSpec) at March 07. 2010

Have you got an internet connection when you boot from the LiveCD?


at point 4)...did the drive mount...is your drive sda1 ?

if unsure...


Boot from the Live CD

click 'Computer' icon , click 'hard drive' icon, click 'etc' folder, click 'fstab' file


you are looking for a file with something like this in it:

# /etc/fstab: static file system information.

#

# Use 'blkid -o value -s UUID' to print the universally unique identifier

# for a device; this may be used with UUID= as a more robust way to name

# devices that works even if disks are added and removed. See fstab(5).

#

# <file system> <mount point>   <type>  <options>       <dump>  <pass>

proc            /proc           proc    defaults        0       0

# / was on /dev/sda5 during installation

UUID=4519bc2a-7a8b-4703-be8e-594baf97c1fd /               ext4    errors=remount-ro 0       1

# swap was on /dev/sda6 during installation

UUID=19d9a33f-2ae5-4ba7-90e6-6a56ff847574 none            swap    sw              0       0

/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0

 
Can you post back the results

Re: having trouble booting :(

Posted by Mark Greaves (PCNetSpec) at March 08. 2010
After step 7) when you get:
 
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 

instead of entering 'sudo dpkg --configure -a'
enter this instead

sudo chroot /media/karmic dpkg --configure -a


Re: having trouble booting :(

Posted by Mark Greaves (PCNetSpec) at March 08. 2010

then continue from step 7

Powered by Ploneboard
New Forums

We are now in the process of phasing out this Forum in favour of the new Forums at forum.linux.co.uk. Please consider posting any requests to the new Forum. (you will need to re-register with the new forum I'm afraid)

Poll
3G Netbook
If linux.co.uk were to offer a Netbook with a SUPPORTED 3G connection, would you be interested?




Tell us about yourself!
How many computers do you administer?






 ,
Site Navigator
 
IT Support Bristol
IT Services and IT Support provider based in Bristol. Computer maintenance with server support as standard.
Mobile broadband
Compare mobile broadband deals and offers at the UK's best mobile broadband comparison site
Best Mobile Broadband Deals
Compare wireless mobile internet deals on Mobile Broadband Genie, the independent UK price comparison website.
IT Support
Award winning IT Support from help4IT, providing all the IT services of a dedicated IT department to businesses in London and the UK.
Call 0800 043 4448.
Introduction to Linux
Comprehensive 5 day introductory course in London, 8-12 March/10-14 May. Covers installation, command-line, Gnome, power tools, Shell scripting, Office Applications and more.
IT Support Bristol
Netzen provide business IT Support for London, Bristol & Bath, Supporting Microsoft, Cisco, Linux & Mac
Email Support
Email Hosting, Blackberry And Windows Mobile Configuration Available From Our IT Department. Microsoft Gold Certified Partner.
IT Support London
Efficent IT Support & Hosted Services for SME businesses in and around greater London.
IT SUPPORT
Award winning IT Services from London provider Wavex offering support, advice, and training
IT Support
A full range of services, from hosting, data recovery and day-to-day support through to Board-level IT advice through our virtual IT Director offering.
Data Recovery
Professional data recovery services