-
Ext3 filesystem automatic reboot is it possible?
Ok So I've installed Knoppix (DSL flavor actually) to my harddrive and then used
to convert my ext2 to an ext3 filesystem. The system is a digital picture frame so typically there isn't a keyboard hooked up. I would like to implement a method similar to what Smoothwall uses for automatically rebooting after checking the filesystem for errors (in the event it gets turned off without a proper shutdown).
From the smoothwall forums:
/etc/rc.d/rc.sysinit
Code:
# A return of 2 or higher means there were serious problems.
if [ $RC -gt 1 ]; then
export PS1="(Repair filesystem) \# # "
if [ $RC -lt 4 ]; then
echo "$STRING: Repaired."
echo "*** Reboot required. The system will reboot in 30 seconds."
sulogin -t 30
else
echo "$STRING: Failed"
echo "*** An error occurred during the file system check."
echo "*** Dropping you to a shell; the system will reboot"
echo "*** when you leave the shell."
sulogin
fi
echo "Unmounting filesystems"
umount -a
mount -n -o remount,ro /
echo "Automatic reboot in progress."
reboot -f
fi
But I'm not sure if this is the right place in the Knoppix start up procedure. I've tried setting my /dev/hda1 to readonly in /etc/fstab but it seems like Knoppix ignores this. Can anyone assist me in this endevour?
http://www.frontiernet.net/~beakmyn/pictureframe
Similar Threads
-
By guenze in forum Hdd Install / Debian / Apt
Replies: 4
Last Post: 05-02-2005, 07:31 PM
-
By Forcemaster in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 09-06-2004, 01:27 PM
-
By champagnemojo in forum Hdd Install / Debian / Apt
Replies: 15
Last Post: 01-21-2004, 05:52 PM
-
By Gnu Penguin in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 10-18-2003, 12:09 AM
-
By gwylion in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 05-12-2003, 03:31 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

KNOPPIX 9.1 Linux Install & Live DVD 32bit & 64bit
$19.99

Windows XP, Vista, 8.1, Linux Knoppix, Office XP, (6 CDS)
$10.00

Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive
$5.99

KNOPPIX USB DVD OS , BEST OF ALL HIGHLY RECOMENDED
$11.99

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 16G USB Stick
$20.85

VINTAGE SOFTWARE | KNOPPIX STD 0.1 (SECURITY TOOLS DISTRIBUTION)
$7.57

Knoppix NSM 1.2
$8.00

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 32G USB Stick
$21.42

Hamshack Live DVD-ROM
$7.00

Knoppix 5.0.1 ULTRA RARE Linux DVD - Linux Pro Extra August 2006
$33.72