View previous topic :: View next topic |
Author |
Message |
NitzGuy n00b
Joined: 20 Jul 2003 Posts: 21
|
Posted: Sun Jul 20, 2003 6:03 pm Post subject: fsck scanning on every boot ? |
|
|
Well. last night, I did Code: | emerge -e world --deep | and then and ofcourse, I overwrote everything, messing alot of stuff up. After I got it all fixed, I noticed fsck now does a scan on every boot (instead of every 22 mounts or 180 days, or something like that it said, correct me if im wrong) and its time consuming and messes up my nice clean booting sequence . This is what I see every startup: Code: | * Mounting proc at /proc... [ ok ]
hub.c: new USB device 00:07.2-2.1, assigned address 4
* Starting devfsd...
Started device management daemon v1.3.25 for /dev [ ok ]
* Activating (possible) swap... [ ok ]
Adding Swap: 498004K swap-space (priority -1) [ ok ]
* Remounting root filesystem read-only (if necessary)... [ ok ]
* Checking root filesystem...
fsck1.33 (21-Apr-2003)
Reiserfs super block in block 16 on 0X304 of format 3.6 with standard journal
Blocks (total/free): 2172791/1971413 by 4096 bytes
Filesystem seems mounted read-only. Skipping journal replay.
Checking internal tree.. |
here it scans for a bit, then
Code: | Checking internal tree..finished
* Remounting root filesystem read/write... [ ok ]
* Setting hostname to chris2linux... [ ok ]
* Calculating module dependencies [ ok ]
* Using /etc/modules.autoload.d/kernel-2.4:
* Loading module 8139too... [ ok ]
* Checking all filesystems...
fsck 1.33 (21-Apr-2003)
/dev/hda2: clean. 29/8032 files, 3645/32130 blocks [ ok ]
* Mounting local filesystems... [ ok ]
* Activating (possibly) more swap... [ok ]
|
and from then on everything seems normal. If anything else is out of place, tips on how to fix em would be helpful, too . Thanks in advanced, NitzGuy
Last edited by NitzGuy on Mon Jul 21, 2003 10:18 pm; edited 2 times in total |
|
Back to top |
|
|
eta n00b
Joined: 04 May 2003 Posts: 43
|
Posted: Sun Jul 20, 2003 6:44 pm Post subject: |
|
|
Well, I have this same problem and wanted to stop fscking everytime I boot. Here is the solution that's supposed to work but didn't - you could try it out:
Remove checkfs from boot time scripts
Quote: | rc-update del checkfs boot |
|
|
Back to top |
|
|
NitzGuy n00b
Joined: 20 Jul 2003 Posts: 21
|
Posted: Mon Jul 21, 2003 12:51 am Post subject: |
|
|
I gave it a try, no luck, still does it on boot |
|
Back to top |
|
|
NitzGuy n00b
Joined: 20 Jul 2003 Posts: 21
|
Posted: Mon Jul 21, 2003 6:11 pm Post subject: |
|
|
Ok I got some help, and figured it out. tune2fs is the command you need.
Code: |
# tune2fs -c 180 /dev/hda
tune2fs 1.33 (21-Apr-2003)
Setting maximal mount count to 180
|
change /dev/hda to whatever partition fsck is scanning
and scan every 180 mounts is the original default, but you can change it to whatever you want. Then do
Code: |
# tune2fs -i 2m
tune2fs 1.33 (21-Apr-2003)
Setting interval between check 5184000 seconds
|
You can change the 2m to #m(months) #d(days) #w(weeks).
Im pretty sure this would work, altho fsck is scanning my root partition (reiserfs) and I cant seem to get tune2fs to work because I get:
Code: |
tune2fs: Bad magic number in super-block while trying to open /dev/hda4
Coulsn't find valid filesystem superblock.
|
Good luck to anyone else trying this, as for me, I'm gonna keep trying other things to figure out whats wrong. Nitz |
|
Back to top |
|
|
Sir Al Guru
Joined: 08 Jul 2003 Posts: 326 Location: Vancouver, Canada
|
Posted: Mon Jul 21, 2003 6:15 pm Post subject: |
|
|
Now that the topic says this problem is solved, what exactly did you do to solve it? Did tune2fs work? _________________ Athlon XP 2000+ Palomino @ 1.667ghz
Asus A7V333 Revision 1.02 w/ Promise RAID
512mb PC2700-1.5-2-2.0 @ 333mhz
MSI Geforce4 Ti4200-TD 250/446 mhz
MSI TV@nywhere TV Tuner
Antec SX1040BII Case + SL400 400W PSU
Logitech Z-540 4.1 Speakers |
|
Back to top |
|
|
NitzGuy n00b
Joined: 20 Jul 2003 Posts: 21
|
Posted: Mon Jul 21, 2003 10:17 pm Post subject: |
|
|
Lol sorry, im alittle slow today, I was making the post as i was testing it out, and I thought it would work, but it didnt. I think I need to find a tune2fs for reiser basicially |
|
Back to top |
|
|
handsomepete Guru
Joined: 21 Apr 2002 Posts: 548 Location: Kansas City, MO
|
Posted: Mon Jul 21, 2003 11:51 pm Post subject: |
|
|
Code: | /dev/hda2 / ext3 defaults 0 0 |
What do you have that last field set to?
Quoth the manpage:
Quote: | If the sixth field is not present or zero, a value of zero is returned and fsck will assume that the filesystem does not need to be checked. |
|
|
Back to top |
|
|
NitzGuy n00b
Joined: 20 Jul 2003 Posts: 21
|
Posted: Tue Jul 22, 2003 4:40 pm Post subject: |
|
|
yeah, i set them all as 0, hoping that it wouldnt scan them, but still, no luck |
|
Back to top |
|
|
lazarusrat Guru
Joined: 17 Jul 2002 Posts: 305 Location: Lafayette, IN
|
Posted: Tue Jul 22, 2003 4:50 pm Post subject: |
|
|
The checkfs/checkroot scripts are still running because they're a dependency of some other init script(s). Localmount I think is one.
grep checkfs /etc/init.d/* and remove the dependencies and that should do it. I'm not saying that's going to be a good idea, but that should make it stop fscking on boot.
Edit: Haven't actually tried this myself |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Tue Jul 22, 2003 7:58 pm Post subject: |
|
|
Moved from Installing Gentoo. |
|
Back to top |
|
|
raylpc Guru
Joined: 07 Aug 2003 Posts: 310 Location: Toronto, Canada
|
Posted: Wed Oct 22, 2003 1:19 am Post subject: |
|
|
I also have this annoying problem on my laptop. But my desktop is working fine (withouth the fcsk coming up every boot).
There is a reiserfstune which is equivalent to tune2fs, I think. Will try it out after my midterms. |
|
Back to top |
|
|
|