Disk I/O error at boot, init panics, how to repair?
UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
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?
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.