Originally Posted by TB0ne
Noooo...there IS a problem, probably caused by an improper shutdown. If you get errors, you get them for a reason; usually because something is wrong, and you need to correct it. 'ESC' doesn't "fix" it...it bypasses it; Linux doesn't force you to do things like Windows does.
That's a rather unhelpful comment to drop on a new Ubuntu user.
Let's see if we can walk the user through the steps needed to try to fix the problem, eh?
First, with a drive problem, fixing it using tools stored on the drive itself is, at best, problematic. (The tools may also be corrupted.) So the best thing to do is get one of the several bootable CDs available for fixing disk problems and boot your system from it instead of your hard drive. One such Live CD can be found here
, but there are hundreds
of various LiveCD available. Assuming you go with the "System Rescue CD" I mentioned first, I'll walk you through an attempt to fix your problem. (The steps to follow will be pretty much the same using most "rescue" CDs.)
So, download the ISO image of the rescue CD and burn it to a CD. (Be sure to use the "burn an ISO image" option to create the physical CD. That's the only way to get a bootable
CD from an image file.) The downlad and burn can be done on any computer and operating system.
Put the CD in you computer and reboot. If your BIOS is not set to boot first from tha CD (or DVD) drive, select the "Boot Menu" option (often F12) from your BIOS after the POST finishes.
You'll first see a "boot selection" screen where you should just take the default (i.e., pust the <Enter> key) option. Then you should see several screen-fulls of text going past really fast. That stuff is just a description of the boot process, of nointerest to anyone unless the boot fails, so just wait 'till it finishes.
When the boot finishes, you should see a screen describing various options. For the "System Rescue CD" I suggested above, one of the options is a "wizard" option that starts a Gentoo Linux system in an X-window, with the options at the bottom of the screen, and a terminal window open. Use that if you wish, or just enter the commands at the first prompt.
Now, the first thing that you need to do is find out where your Ubuntu installation is located. So, enter the command fdisk -l /dev/sd?
(That an el, not a one, after the dash, and the question-mark is
part of the command - it's a "wild-card" for a single character.) You should see a list of all your hard drives and the partitions on each one of them. One of those partitions should be labeled "Linux." Here's an example of what you can expecxt to see:
$ fdisk -l /dev/sd?
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa602a602
Device Boot Start End Blocks Id System
/dev/sda1 * 1 8820 70846618+ 7 HPFS/NTFS
/dev/sda2 17927 19457 12297757+ 7 HPFS/NTFS
/dev/sda3 8821 17926 73143945 5 Extended
/dev/sda5 8821 17549 70115661 83 Linux
/dev/sda6 17550 17926 3028221 82 Linux swap / Solaris
Partition table entries are not in disk order
I've hilighted my Ubuntu partition in red.
In my case, my Ubuntu is on /dev/sda5
. Yours is probably not, but it should be easy enough to find.
Once you've identified the partition, you should try to run the fsck
command again. Using my
device name as an example
the command would be fsck -y /dev/sda5
If that works, you're "home free."
There are additional tools on the SystemRescueCD that you can use if that fails, but try the above first and let us know what happened.
Note that, if you use the "wizard" option, and if your computer is connected to the Internet with a cable connection (i.e., not a wireless laptop), you might be able to use the Firefox browser in the Gentoo system to connect to this forum while running the rescue CD.