LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 04-01-2009, 11:15 PM   #1
MOCKBA
Member
 
Registered: Oct 2003
Location: Moscow
Distribution: Ubuntu
Posts: 61
Blog Entries: 1

Rep: Reputation: 15
Disk I/O error at boot, init panics, how to repair?


Can't find any solution yet. Ubuntu starts booting and halts in several seconds. When boot in save mode, the console shows uncorrectable disk error. I can boot from live CD and observe all my disk content. Is any way to repair without reinstall? If reinstall is required, then what's the best way to transfer data? Live CD seems hasving not SSH for security reason.

Another question, I have added a disk for swap, how can I make it using Ubuntu?
 
Old 04-02-2009, 12:47 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
You need to back the data up regardless. I tend to use an external disk, but you should be able to use ssh - I just tried a Knoppix liveCD, and it merely needed to be started. I was able to ssh out to my test server. As root as it happens, so everything should be available to you.

After backing it up, you could try a fsck on the broken system - be aware that if you do "fix" things with fsck, sometimes they can be broken (truncated files, or invalid inodes in the chain for example).

Adding a swap is as simple as "mkswap /dev/<whatever>" followed by "swapon /dev/<whatever>".
Update fstab to make it permanent.
 
Old 04-02-2009, 04:16 PM   #3
MOCKBA
Member
 
Registered: Oct 2003
Location: Moscow
Distribution: Ubuntu
Posts: 61

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Thanks. I am going to use a flash drive for backup. Is there any way to repair broken files. For example fsck removed unreadable blocks from files making them corrupted. Some tool which can compare original Ubuntu system files and files on disk to find corrupted and replace with good ones? Reinstalling Ubuntu isn't big deal, I am just looking for a faster solution.
 
Old 04-02-2009, 06:19 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Re-install will be fastest.
I'd suggest you save the entire /home/* Then pre-partition the disk prior to reinstall, and restore the /home into a separate partition.
Then re-install using that /home, and use the same userid/password when prompted. Everything should "just work" - I occasionally have to roll-back Ubuntu like this when I'm testing new alpha/beta releases.
See this similar discussion.

Last edited by syg00; 04-02-2009 at 06:20 PM. Reason: Added link
 
  


Reply



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
boot error init 12345Ss (etc) .............. honeybadger Linux - General 1 03-24-2009 02:58 PM
USB Boot Disk init issues ESC201 Slackware 4 09-08-2008 10:06 AM
fat16 repair boot disk frieza General 1 07-31-2008 01:45 PM
I need a Linux OS other than Ubuntu which has a repair disk or repair software jhmac77 Linux - Newbie 1 03-17-2008 07:04 AM
New Suse 9.0 1st boot, error INIT jillyt Linux - Newbie 2 12-04-2003 09:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 12:19 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
Open Source Consulting | Domain Registration