LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-14-2007, 07:30 PM   #1
damber
Member
 
Registered: Nov 2006
Location: UK
Distribution: RHEL/CentOS, Ubuntu, Mint
Posts: 46

Rep: Reputation: 15
Boot Problems with fsck


hi, I'm having a bit of difficulty getting my system to boot and seem to be going round in circles.. hopefully someone will have been there and done that, or at least have some guidance on where to look next.

OK.. so.. I've got a server with 5 SCSI drives setup with RAID 5 and LVM. Also attached to the server is a storage array with 8 IDE drives, 1 of which has a problem, but all are used in a variety of filesystems... unfortunately I have set these drives to be checked at boot with fsck... I've no idea why I did this (typo/mindfreeze/whatever) but unfortunately that's how it is :-( - this means that the system won't boot unless it can succesfully check these additional filesystems - however they do not form part of the root filesystem etc so aren't necessary.

So.. I'm trying to edit the fstab to turn off the check on these filesystems so that I can get the system booted. Getting to this damn file is nigh on impossible.... let me explain what I've done so far...

1. Used maintenance shell to try to edit the fstab... unfortunately it drops you in a read only filesystem. So, I ammended the kernel params at startup from 'ro' to 'rw' - absolutely no effect. I also added in the 'S' option for single user mode. No success - whatever way I try to cut it, the filesystem is always read only. I also thought of trying to mount (bind) the filesystem in rw mode, but without having write access to the filesystem this doesn't work..:-(

2. I tried the linux rescue CD, and tried mdadm --examine --scan, and mdadm --assemble --scan to reassemble the Raid array - but it just throws an error saying only 2 disks are available, which is not enough to rebuild the array,... now I know that the disks are working as it boots into the OS far enough to do the fsck on the additional filesystems, and I can read data in the maintenance shell... so it is there, just not loaded in the rescue cd...

3. I also tried knoppix, but this also doesn't load the raid array, and wont let me recreate the array as I can't write the config anywhere for mdadm... plus it also seems to only see 4 of the 5 disks....

So, does anyone have any ideas on what I can do ?

Cheers
 
Old 04-14-2007, 07:40 PM   #2
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
Just to get it straight in my head, are you booting from a software RAID5? Because I can't figure out why knoppix, especially the latest version which is great, can't see it.

x_terminat_or_3 posted this in another thread:
Quote:
try remounting your root partition rw

mount / /dev/yourharddiskpartition -o rw remount
Give that a try from the single user boot. If that doesn't work, look at this bottom of this page for similar threads.
 
Old 04-14-2007, 08:04 PM   #3
damber
Member
 
Registered: Nov 2006
Location: UK
Distribution: RHEL/CentOS, Ubuntu, Mint
Posts: 46

Original Poster
Rep: Reputation: 15
Smile

Great ! remount with rw worked !

I didn't realise you could do that with the root filesystem... silly me. :-)

Cheers

(btw, it is a software RAID.. and yes, I was also surprised knoppix (v5.01) didn't pick it up)

Last edited by damber; 04-14-2007 at 08:06 PM.
 
Old 04-14-2007, 08:09 PM   #4
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,245

Rep: Reputation: 121Reputation: 121
Glad that it worked! BTW, get a copy of the new knoppix. It's version 5.1.1 and it really is better at detecting things.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
fsck error on boot up OC_eobard Ubuntu 2 04-10-2007 02:20 AM
use fsck = no boot seede Fedora 4 10-19-2005 09:34 PM
automatic fsck on boot. fsck errors. nixel Slackware 1 05-17-2004 07:51 AM
fsck on boot pjviitas Linux - General 2 02-21-2004 07:15 PM
fsck on boot pjviitas Linux - Software 1 02-21-2004 04:05 PM


All times are GMT -5. The time now is 04:10 AM.

Main Menu
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