LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 07-10-2009, 12:07 PM   #1
ternarybit
Member
 
Registered: Jun 2009
Distribution: Debian, Arch, Mint
Posts: 51

Rep: Reputation: 15
Set Ubuntu to auto-fsck after crash?


I was tinkering with VMware server, looking up the docs, when I clicked a PDF link from the vmware site that caused my Ubuntu Jaunty x86_64 to totally lock up. After several seconds of no HDD activity and no response from various key combos (ctrl+alt+bksp, etc.), I hard-restarted my computer.

When GRUB started again, it said simply "Error 17" and proceeded no further. Thankfully I happened to have a Linux live rescue CD handy (Ubuntu Rescue Remix), so I booted and fsck'ed the Jaunty partition, which allowed a proper boot with no further issues.

Question: can I set Ubuntu to auto-fsck after such an error/lockup (similar to how Windows auto chkdsk's), as to prevent having to boot live media and fsck manually? Thank you for your help!!
 
Old 07-10-2009, 02:18 PM   #2
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 871
Blog Entries: 9

Rep: Reputation: 103Reputation: 103
Hi, Linux in general detects if a filesystem needs checking, and checks it if needed in addition to restoring the journal. In order to do that, it has to boot Linux first. Your partition containing the /boot directory had apparently been damaged during the hard lock, and GRUB couldn't see the kernel images. GRUB 17 :
Quote:
Error 17 claims that the partition that you're attempting to boot is of a format that GRUB does not recognize.
In this case, I think a LiveCD was your only option.

PS:anyone correct me if I'm wrong anywhere, just speaking from personal experience...

Last edited by serafean; 07-10-2009 at 02:19 PM. Reason: PS
 
Old 07-13-2009, 01:56 PM   #3
ternarybit
Member
 
Registered: Jun 2009
Distribution: Debian, Arch, Mint
Posts: 51

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by serafean View Post
Hi, Linux in general detects if a filesystem needs checking, and checks it if needed in addition to restoring the journal. In order to do that, it has to boot Linux first. Your partition containing the /boot directory had apparently been damaged during the hard lock, and GRUB couldn't see the kernel images. GRUB 17 : In this case, I think a LiveCD was your only option.

PS:anyone correct me if I'm wrong anywhere, just speaking from personal experience...
That's pretty much what I thought: Linux will auto-fsck if possible. Also good to know that LiveCD is the only option. I assume this kind of hard lock and /boot dir corruption doesn't happen very often.

Thank you for your time and valuable information! Cheers!
 
  


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
Auto FSCK after init... AphoxemaG Linux - Software 4 02-14-2007 05:42 PM
Had a crash and need help and info, running a fsck and clearing millions of inodes edkhosting Linux - Software 3 12-13-2005 11:12 AM
Mandrake 10.0 Auto Update Crash billeyd0613 Mandriva 1 03-19-2004 07:31 PM
How to disable auto fsck during boot for specific volumes mansonmuni Linux - General 5 12-21-2003 10:54 PM
What file contains auto-mount for fsck cbjhawks Linux - Software 1 09-18-2003 08:02 PM


All times are GMT -5. The time now is 12:58 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration