Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to disable e2fsck at bootup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
colealbon
n00b
n00b


Joined: 14 May 2004
Posts: 2
Location: Phoenix

PostPosted: Fri May 14, 2004 2:46 am    Post subject: How to disable e2fsck at bootup Reply with quote

Hi,

Here's what I want to do:
modify /etc/rc.d/rc.sysinit and add the line
fastboot=yes
Can someone please translate that to Gentoo?

in this context:
http://www.akeni.com/en/support/supportcolinux.php
- I'm trying to set up colinux to use my existing Gentoo installation.
- Gentoo boots fine from Grub, but when I try to boot from colinux, I get an error that the root filesystem is corrupt. (apparently colinux/windows passes a zero file size to Gentoo)
- I've been able to track down others with the problem on different linux flavors but I don't know how to implement using gentoo's init scripts. (there's no rc.sysinit)

How
Back to top
View user's profile Send private message
westi
n00b
n00b


Joined: 23 Apr 2004
Posts: 5
Location: UK

PostPosted: Sat May 15, 2004 7:26 am    Post subject: Gentoo Fastboot for coLinux Reply with quote

Hi,

Looking through the files in /etc/init.d on my system it looks like the gentoo way is to create an empty file called fastboot in the root of the files system.

However the standard init scripts will delete this after skipping the fsck. So you may need to do some further patching.

The files to examine are /etc/init.d/checkroot and /etc/init.d/checkfs and /etc/init.d/halt.

e.g.

Code:

peter@alice init.d $ grep "fastboot" * -C5
checkfs-                        einfo "Rebooting"
checkfs-                        /sbin/reboot -f
checkfs-                fi
checkfs-        fi
checkfs-
checkfs:        if [ -f /fastboot -o -n "${CDBOOT}" ]
checkfs-        then
checkfs:                rm -f /fastboot
checkfs-        else
checkfs-                ebegin "Checking all filesystems"
checkfs-                if [ -f /forcefsck ]
checkfs-                then
checkfs-                        ewarn "A full fsck has been forced"
--
checkroot-}
checkroot-
checkroot-start() {
checkroot-      local retval=0
checkroot-
checkroot:      if [ ! -f /fastboot -a -z "${CDBOOT}" ]
checkroot-      then
checkroot-              ebegin "Remounting root filesystem read-only (if necessary)"
checkroot-              mount / -n -o remount,ro &>/dev/null
checkroot-              eend $?
checkroot-
--
halt.sh-else
halt.sh-        eend 0
halt.sh-fi
halt.sh-
halt.sh-# Inform if there is a forced or skipped fsck
halt.sh:if [ -f /fastboot ]
halt.sh-then
halt.sh-        echo
halt.sh-        ewarn "Fsck will be skipped on next startup"
halt.sh-elif [ -f /forcefsck ]
halt.sh-then


WARNING: Any changes you make to these files may cause you system to not boot!
:!:

--
Peter
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum