Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My parents, for whom I have in the past set up computers running Ubnutu 11.10, had a power cut last night, after which they cannot boot one of the networked three computers in the house. Unfortunately, that is the computer on which all their documents are stored (there is a backup, but that is all in Deja Dup's compressed format).
The BIOS's battery seems to be flat, as, after the 5 hour power cut, the BIOS settings were lost. I was able, over the telephone, to tell my father what the correct BIOS settings were such that he was able to get past the "insert correct boot device" message, but there is now a new and more puzzling problem.
The computer is a little old, and uses a P4C800-E Deluxe motherboard. The onboard IDE controller seems to have stopped functioning properly a while ago, so we had been using the add-on Promise controller, in non-RAID mode. D1 is the boot drive, an SSD, and D0 is a separate hard drive containing all the documents. The boot configuration is now set for D1 to be the boot drive.
When Linux is booted, the correct Ubuntu loading screen is shown, but the session eventually drops into a "busybox" shell without getting as far as the login screen. From either there or a recovery session, it is apparent that the filesysetm shown is not the filesystem that is actually on the boot device: /etc/fstab does not exist, for example; /root is empty, and there is no /home (which would normally be mounted as the additional HDD). There is also no /mnt or /backup which are root level directories which I had created.
After a failed start or two, the GRUB screen presented itself, and the option of a recovery mode was made available. When this was selected, there was, I am told, a printed error message in the system messages relating to being unable to mount a drive "by-uuid/[many seemingly random digits that my father did not read, which I am presuming is a UUID]".
I am afraid that I am somewhat puzzled by this, or how to correct it (which is made more difficult by the fact that I am not next to the computer to interact with it directly).
Does anyone have any ideas as to what the trouble might be, or how to go about investigating it further/fixing it? I should be very grateful indeed for any thoughts.
Remove hard disk and buy another - a working computer and install the disk. At least you will save your data. If on your father computer is Windows installed it may not work at all. Even a slight change of a hardware configuration may cause Windows to stop to boot.
No, Windows is not installed on any of the computers in the house; and it was working before the power cut, so it seems rather soon to give up on it now, especially since my parents have recently bought an entirely new computer to replace another that had decidedly failed (motherboard - vintage 2002 - capacitors gone). The next step if the problem cannot be fixed directly is simply to reformat and re-install Linux on the OS drive, leaving the separate drive with the documents intact; but it would be heplful if there might be a means of finding a solution rather less drastic.
At the cost of a download and a cdr disk. A live Parted Magic Iso with a current Gparted will do a fsck through Gparted after booting up live. Just be sure to unmount any partitions before you are going to run a fsck on.
Don't know since I don't run Ubuntu as you can see from my profile.
For me I keep a Parted Magic live CD like a wrench in a toolbox for situations like this when a improper shutdown scrambles a file system.
I have repaired my ext2 USB Puppy Linux installs when improper shutdown corrupted my pendrive and boot would not happen. Just be sure file system is unmounted, (I can't stress that enough), because you will damage the partition even further if it is mounted when doing a fsck.
Hmm - I think that that is the purpose of the shutdown/reboot fsck procedure - to run when unmounted. I don't have a Parted Magic live CD, but I might be able to give my father instructions to create one; but that might take some time.
How would one run fsck from a Parted Magic live CD (bearing in mind that I shall have to give instructions to my father by telephone or by e-mail, and I have not used the software before)?
Just open Gparted. Right click on the Partition you want to check. If mounted pick unmount in right click menu. Then after it processes. Right click the partition again and pick Check from the menu.
No FSCK result yet, but I gave my father a Gparted disc recently, and he reports that it tells him the following on bootup:
Quote:
I had tried to used the disc & got to a screen which gives a list of available drives & their partitions.
These were listed as:-
./dev/mapper/pdc_cbchhfhfj (111.80 GiB)
/dev/sda (596.17 GiB)
/dev/sdb (55.90 GiB)
The second (/dev/sda) is shown as unallocated, whilst the third (/dev/sdb) is shown as having the following partitions
/dev/sdb2 extended
/dev/sdb5 ext4 33.85
unallocated 1.0 MB
/dev/sdb1 linux-swap 1.91 Gib boot
Does this by itself give any indication of the problem? This looks slightly odd to me, but I am not used to the Gparted boot disc, so I am not sure whether I should expect to see something like this here or not.
How does one instigate a filesystem check when booting from a Gparted disc?
sdb sounds like a Physical separate hardrive. Is there 2 hardrives in his computer? Edit: reread your first post. I am not familiar with a
Quote:
so we had been using the add-on Promise controller, in non-RAID mode. D1 is the boot drive, an SSD, and D0 is a separate hard drive containing all the documents. The boot configuration is now set for D1 to be the boot drive.
So excuse my ignorance.
Quote:
The second (/dev/sda) is shown as unallocated
This sounds like the 1st hardrive which has not been formatted with any file system yet. Just dead space=eg. unallocated.
Quote:
/dev/sdb5 ext4 33.85
sdb5 is where Ubuntu is sitting and is the partition that your dad needs to run the check on. It is also the partition Ubuntu should be booting from.
Quote:
How does one instigate a filesystem check when booting from a Gparted disc?
Image link. Picture is worth a thousand words.
In the Picture. See how unmount is greyed out. That means trhe partition is unmounted and it is safe to do the check. If not greyed out. He needs to hit that first to unmount the partition first. Then proceed to do the check.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.