Checkroot & Fstab

Ask questions regarding Gentoox, Gentoo and Linux in general in these forums and we'll do our best to help you!
Post Reply
Marwin
Newbie
Posts: 1
Joined: Sun Feb 20, 2005 12:09 pm

Checkroot & Fstab

Post by Marwin »

Hello!

I wonder if someone please could insert their /etc/init.d/checkroot & /etc/fstab?

I replaced them by mistake, and I've only got 56,6k, so I'm not able to redownload the Stardust.iso and mount and take it from there.

Kindly Regards,
Marwin
stevie
Novice
Posts: 28
Joined: Thu Sep 09, 2004 7:11 pm
Location: Switzerland, Lengnau AG

Post by stevie »

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> $
/dev/hda2 / reiserfs defaults,errors=remount-r$
proc /proc proc defaults $
/dev/cdrom /mnt/cdrom iso9660 defaults,ro,user,noauto$
/dev/hda1 none swap sw $

/dev/hda51 /mnt/fatx/c fatx defaults,noauto,umask=0$
/dev/hda50 /mnt/fatx/e fatx defaults,umask=0000 $
#!/sbin/runscript
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-src/rc-scripts/init.d/checkroot,v 1.35 2003/07/31 21:08:24 azarah Exp $


depend() {
before *
}

start() {
local retval=0

if [ "${BOOT}" = "yes" ]
then
#
# Create /etc/mtab
#

> /etc/mtab
# Add the entry for / to mtab
mount -f /
# Make sure we do not have these in there
egrep -v '^(rootfs|/dev/root)' /proc/mounts >> /etc/mtab

# Remove stale backups
rm -f /etc/mtab~ /etc/mtab~~
fi
}


# vim:ts=4


Stevie.
Post Reply