LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 06-29-2003, 02:35 PM   #1
kidefruj
LQ Newbie
 
Registered: Jun 2003
Location: kalifornia
Distribution: thiz
Posts: 5

Rep: Reputation: 0
Unhappy i'm aiding and abetting fsck on boot not doing a thing for me


much wailing and gnashing of teeth:

thiz linux (7.0) installed from cd fine yesterday. ran xconfigurator and set up the 1280x1024 resolution. reboot and get...

Checking root filesystem
/dev/hda2 is mounted. e2fsck: Cannot continue aborting.

*** An error occurred during the file system check
*** Dropping you to a shell; the system will reboot
*** when you leave the shell

so at the prompt, i let go with #fsck -f -t ext3 /dev/hda2

it (fsck1.27 [8-mar-2002]) comes back with prognostications of death and destruction and of course i really want to continue ...

/dev/hda2: recovering journal
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking ... *yawn* ... tion
/dev/hda2: 82983/522240 files (0.2% non-contiguous), 415896/1044225 blocks


ok ... so i reboot the system because i have successfully repaired my file system, eh? no. this is classic sisyphus. i tried umount and fsck and it comes back saying the disk is clean. everytime i reboot, the fsck "cannot continue" comes back like i laid it out for you (above).

wanna see my fstab?

(Repair filesystem) 2 # cat /etc/fstab
/dev/hda2 / ext3 defaults 1 1
/dev/hda1 /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hdc1 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
(Repair filesystem) 3 #

i'm not averse to getting dirt under my fingernails here, but this fscking in circles thing is getting me down. i'm inclined to remove that whole fsck check line from that initsys file where it's hiding out.

suggestions fer this noob?
 
Old 06-29-2003, 04:31 PM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
Ok, I'm not familiar with thiz linux at all. In fact, I've only HEARD of it... Anyway, I'll make a couple suggestions (in other words, use at your own risk... )

What I know of fsck is, first and foremost, it's NOT supposed to be run on a mounted filesystem. That appears to be your problem:
Quote:
Checking root filesystem
/dev/hda2 is mounted. e2fsck: Cannot continue aborting.
So, my first thought would be that maybe the installed boot scripts are doing things out of order. That is, perhaps they're mounting the partitions before deciding whether to run fsck. Or perhaps they intentionally mounted them, but forgot to unmount them before running fsck.

I don't know. Like I said, that would be my gut reaction.
 
Old 06-29-2003, 06:39 PM   #3
kidefruj
LQ Newbie
 
Registered: Jun 2003
Location: kalifornia
Distribution: thiz
Posts: 5

Original Poster
Rep: Reputation: 0
Thumbs up

you wrote:

"Or perhaps they intentionally mounted them, but forgot to unmount them before running fsck.

I don't know. Like I said, that would be my gut reaction."

so i looked at my own evidence of fsck / when it was umounted and it being ok and puffed myself up and ...

went to /etc/rc.d/rc.sysinit and found the line right before the fsck that was sending me into file repair mode:

mount / -o rw,remount

and changed it to:

mount / -o ro,remount


problem solved! booting again nicely. thank you ver much.
 
Old 06-29-2003, 07:00 PM   #4
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
If it works just like you want, then great! But be careful, it looks like that command will make your root filesystem read-only all the time. That might not be what you want. Then again, there may be another command in the scripts to remount it read-write later. let me know if it's good as-is or if we need to work on it some more.
 
Old 06-30-2003, 01:47 AM   #5
kidefruj
LQ Newbie
 
Registered: Jun 2003
Location: kalifornia
Distribution: thiz
Posts: 5

Original Poster
Rep: Reputation: 0
Thumbs up

as far as i can tell (and i been runnin' linux for about 5 minutes)it's good as it is ... the /etc/rc.d/rc.sysinit script does a little shuck and jive a further down and announces it's mounting the root fs as "rw" ...

perhaps i'll come back crying in five weeks when the fs is corrupted beyond belief, but the fsck with it (talkin' 'bout the rootfs here, son) mounted "ro" comes back clean.

i guess i'll walk tall 'til i get kicked where it counts, eh?

thanks for checking back with me!

-kf
 
Old 07-24-2003, 06:08 AM   #6
_eD_
LQ Newbie
 
Registered: Jul 2003
Location: Germany
Distribution: RedHat 8.0
Posts: 1

Rep: Reputation: 0
Hi kidefruj!

I've had the same Problem like you

>> /dev/xxx is mounted. e2fsck: Cannot continue aborting.

and I found a way to make it work. I just set the last field in the /etc/fstab file in the line of my root filesystem (in your case that's /dev/hda2) from 1 to 0:

>> /dev/hda2 / ext3 defaults 1 1
^-- 0

Now the root-fielesystem is not checked (again) when it's already mounted rw (see 'man fstab'), and it doesn't need to, because it is already been checked before in the bootup-process.

eD
 
  


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
use fsck = no boot seede Fedora 4 10-19-2005 09:34 PM
fsck fails during boot masch Linux - General 3 09-25-2004 10:38 AM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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