* [gentoo-dev] checkfs-update
@ 2001-12-13 17:46 Sebastian Werner
2001-12-13 18:02 ` jano
0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Werner @ 2001-12-13 17:46 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 342 bytes --]
Hey,
i don't know why i must fsck my reiserfs root... mhh. I have a new
checkroot file for the people who use reiserfs. I don't know about xfs
and ext3... must they checked after a crash? the checkroot script checks
all types but not reiserfs.
The new checkfs file look if you use a ext2-filesystem and then checks
it.
Sebastian Werner
[-- Attachment #2: checkfs --]
[-- Type: text/plain, Size: 455 bytes --]
#!/sbin/runscript
depend() {
need checkroot
}
start() {
grep "/dev" /etc/fstab | grep -v "#" | grep ext2 > /dev/null 2> /dev/null
if [ $? = 0 ]; then
ebegin "Checking all filesystems"
fsck -R -A -a
if [ $? -eq 0 ]
then
eend 0
elif [ $? -eq 1 ]
then
eend 1 "Filesystem errors corrected."
else
eend 2 "Fsck could not correct all errors, manual repair needed"
/sbin/sulogin $CONSOLE
fi
fi
return
}
[-- Attachment #3: checkroot --]
[-- Type: text/plain, Size: 565 bytes --]
#!/sbin/runscript
start() {
if [ "`cat /proc/mounts | grep " / " | cut -d" " -f3`" != "reiserfs" ]; then
ebegin "Remounting root filesystem read-only (if necessary)"
mount / -o remount,ro
eend $?
ebegin "Checking root filesystem"
fsck -a
if [ $? -eq 0 ]
then
eend 0
elif [ $? -eq 1 ]
then
eend 1 "Filesystem repaired"
else
eend 2 "Filesystem couldn't be fixed :("
/sbin/sulogin $CONSOLE
reboot -f
fi
fi
ebegin "Remounting root filesystem read/write"
mount / -o remount,rw
eend $?
return
}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] checkfs-update
2001-12-13 18:02 ` jano
@ 2001-12-13 17:58 ` Sebastian Werner
0 siblings, 0 replies; 3+ messages in thread
From: Sebastian Werner @ 2001-12-13 17:58 UTC (permalink / raw
To: gentoo-dev
yes sure - but the scripts is called too if i disable it there ;-) ok,
it gives you one ms second faster and cleaner startup. You needn't use
this.
Sebastian
On Don, 2001-12-13 at 19:02, jano wrote:
>
>
> Hi,
>
> Did you know you can enable/disable on-mount/boot fsck in /etc/fstab?
>
> jano
>
> > Hey,
> >
> > i don't know why i must fsck my reiserfs root... mhh. I have a new
> > checkroot file for the people who use reiserfs. I don't know about xfs
> > and ext3... must they checked after a crash? the checkroot script
> > checks all types but not reiserfs.
> >
> > The new checkfs file look if you use a ext2-filesystem and then checks
> > it.
> >
> > Sebastian Werner
>
>
>
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] checkfs-update
2001-12-13 17:46 [gentoo-dev] checkfs-update Sebastian Werner
@ 2001-12-13 18:02 ` jano
2001-12-13 17:58 ` Sebastian Werner
0 siblings, 1 reply; 3+ messages in thread
From: jano @ 2001-12-13 18:02 UTC (permalink / raw
To: gentoo-dev
Hi,
Did you know you can enable/disable on-mount/boot fsck in /etc/fstab?
jano
> Hey,
>
> i don't know why i must fsck my reiserfs root... mhh. I have a new
> checkroot file for the people who use reiserfs. I don't know about xfs
> and ext3... must they checked after a crash? the checkroot script
> checks all types but not reiserfs.
>
> The new checkfs file look if you use a ext2-filesystem and then checks
> it.
>
> Sebastian Werner
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-12-13 18:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-13 17:46 [gentoo-dev] checkfs-update Sebastian Werner
2001-12-13 18:02 ` jano
2001-12-13 17:58 ` Sebastian Werner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox