LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-10-2010, 09:54 PM   #31
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33

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 ?
 
Old 02-10-2010, 10:20 PM   #32
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 201Reputation: 201Reputation: 201
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.
 
1 members found this post helpful.
Old 02-11-2010, 12:05 PM   #33
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
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.
 
Old 02-11-2010, 12:21 PM   #34
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 201Reputation: 201Reputation: 201
PHP Code:
fdisk -
Post the output here.
 
Old 02-11-2010, 01:42 PM   #35
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
The output is none.
But I wrote sudo fdisk -l, and I got this :

Disk /dev/sda : 200GB

device boot start end blocks id system
dev/sda1 * ... ... ... 7 htfs/ntfs
dev/sda2 ... ... ... 7 htfs/ntfs
dev/sda3 ... ... ... 7 w95 ext'd lba
dev/sda5 (no 4) ... 83 linux
dev/sda6 ... ... ... 82 linux swap/solaris
 
Old 02-11-2010, 02:06 PM   #36
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 201Reputation: 201Reputation: 201
You can try
PHP Code:
sudo umount /dev/sda5

sudo e2fsck 
-fp /dev/sda5 
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.
 
Old 02-11-2010, 03:14 PM   #37
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
sudo umount /dev/sda5
umount: /dev/sda5: not mounted.
sudo e2fsck -fp /dev/sda5
/dev/sda5 368706/5124480 files (1.7% non contiguous), 2559314/5120000 blocks
 
Old 02-11-2010, 04:18 PM   #38
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 201Reputation: 201Reputation: 201
Try to reboot from the hard drive. Report any errors.
 
Old 02-11-2010, 04:44 PM   #39
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
I rebooted in normal mode, as you asked.
The error is the very same.
 
Old 02-11-2010, 05:17 PM   #40
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 201Reputation: 201Reputation: 201
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.
 
Old 02-13-2010, 01:41 AM   #41
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello elishac,

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.

Kind regards,

Eric
 
Old 02-13-2010, 11:59 AM   #42
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
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.
 
Old 02-13-2010, 01:01 PM   #43
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,085

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Quote:
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
 
1 members found this post helpful.
Old 02-13-2010, 01:08 PM   #44
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 201Reputation: 201Reputation: 201
Quote:
Code:

du -ch /OLD/home/yourusername
Now I learned something, thanks!
 
Old 02-13-2010, 01:24 PM   #45
elishac
Member
 
Registered: Nov 2009
Posts: 522

Original Poster
Rep: Reputation: 33
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?)

Last edited by elishac; 02-13-2010 at 01:27 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I want to start developing for linux - where to start itsbrad212 Linux - Software 15 12-02-2009 12:11 AM
How to start application when linux(ubuntu/debian) start ersek Linux - General 4 05-28-2009 01:19 PM
i have installed linux but dont know were 2 start 4m n have a gud hold on linux jovel_allalone Linux - Newbie 4 05-19-2009 11:14 AM
after i installed linux and tried start linux it hangs at the message (in post) adamshreves Linux - General 5 10-30-2003 02:44 PM


All times are GMT -5. The time now is 06:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration