Linux - NewbieThis 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
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.
err well you're right, i'm not sure what to do...
can you give me a secure step by step procedure to recover the system in the state it was prior to this problem ?
Please don't take this the wrong way, but you are going to have to stop saying "please give step by ....." and start asking specific questions.
How far did you get with my previous post? Did you get to the point of checking the partitions. If you did what were the results? When someone asks you to do something, they are trying to help and if you don't understand what to do, or what something means, please ask about that particular issue, so that they can help you.
I sometimes have some troubles expressing myself, because I'm not English native. Sorry about that.
So far, I have burnt the linux cd, and booted with it. Then I chose the option "try ubuntu", and then I opened a terminal. I didn't do anything else.
The first command unmounts your linux partition and might return an error saying it isn't mounted, and that's fine. The second will check the filesystem on that partiton and try to repair any errors it finds. After that try to reboot Ubuntu from the hard drive.
It doesn't look so good. Had you set up a seperate /home partition you could just install a fresh copy of Ubuntu and your files and settings would remain.
At this point you can try rebooting with the live cd and try to backup /home prior to re-installing, or you can inspect /boot and look for the reason the system won't boot, or lastly, try again to boot into the ubuntu recovery mode and see if there isn't something useful in there.
I've been reading through this thread and various possibilities have been offered. One question first, do you have an USB stick at hand to make backup of your documents? Or space on one of the other partitions to put your files on?
I ask that because it seems to me that the fastest way to solve your problems is to install Ubuntu again.
You could try the solution offered by tredegar in post 21 of this thread, if you haven't done so already, to try to fix the filesystem. But I'm personally more in favor of a complete new installation.
Yes I have an USB stick at hand. I'm not sure it will be enough to backup everything though. In my opinion reinstalling ubuntu brings quite a lot of problems. Here are some of them that come to my mind, though I'm sure they're not the only ones :
- I'd need to figure out what files need to be saved, and I'd need to get usb keys or something else to save them.
- I don't know how to access the files (when I boot with the DVD, there's a different home folder).
- I wasn't the one that made the first installation. So I'm not exactly sure how to make it, and I'm not sure if some softwares were installed or not after the basic installation (so I'd have to find out both).
- I'd have to reinstall and reconfigure every software I have, as well as system preferences.
Is there a command/software that would allow me to figure out everything (files and softwares, and if possible system settings) that has been added since the installation ? I'm sure there's something like this at least for softwares...
But if reinstalling is my best option, then I will. It's just that it seems weird to me that I'd have to reinstall everything just because I didn't shut it down correctly. I do this all the time with windows (well not all the time but you get the picture), and linux is supposed to be more stable, right ?
Regarding the post 21.
I opened gparted, and clicked on gparted on the menu, then devices.
There is only one option, which is /dev/sda.
I opened gparted, and clicked on gparted on the menu, then devices.
There is no need to run gparted now, you have already fsck'd the partition.
This thread is becoming a long one.
Time for a summary:
===================
The current situation:
You have rendered your system unbootable. We do not know how you did that.
You have run fsck on /dev/sda5 which is your only linux partition ( apart from swap which we do not care about)
You still cannot boot.
An analysis of your problem:
There is a problem with the boot process, not the filesystem.
You can still rescue your personal files to an external USB HDD (borrow one).
Action to be taken:
Boot from the live CD (you know how to do that by now)
Open a terminal and type:
Code:
sudo mkdir /OLD
sudo mount /dev/sda5 /OLD
ls -l /OLD/home
Do you see your old username listed?
If so, you are ready to save your data to a USB drive.
What data do you need to save?
- Emails ? (in which case what email program were you using)
- Music ?
- Documents ?
- Browser bookmarks ?
- Everything ?
We need to know how much data needs saving.
In a terminal, give this command:
Code:
du -ch /OLD/home/yourusername
Some text scrolls past.
Tell us what the last line says for ____ total
Yes I do see my username listed.
I added sudo to du otherwise many things aren't listed.
It only says 770M total (210M without sudo). Is that everything that has been added since the installation ?
(can you quickly explain why there's need to create a new directory and mount it?)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.