having trouble booting :(
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
try typing:
startx then hit enter
or try:
Ctrl+Alt+F7
use the Ctrl and Alt from the left side of the keyboard
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.
have you got an Ubuntu LiveCD?
if so, can you boot from it, then post the contents of the /etc/fstab file back here
damn...click 'Computer' icon on desktop, click 'filesystem' icon, click 'etc' folder, click 'fstab' file
It should open in gedit
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
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?
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
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
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
ok i've done all that, it didnt warn about anything being mounted so it all went smoothly. what next?
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 :).
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.
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?)
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
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.
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?
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?
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

