-
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

Dell PowerEdge FX2s + 8x FC430 Blades 16x E5-2630v4 160 Cores Rails No PSU/RAM
$699.00

Dell PowerEdge FC430 Blade Server 2x Xeon E5-2630v4 20 Cores FX2 FX2s No RAM/HDD
$119.99

Dell PowerEdge M640 Blade Barebone Server Dell P/N: HHB006 Tested Working
$149.99

NETAPP HCI NAF-1701 SuperMicro Server 4X BLADE H410C 8X GOLD 5120 4 NODE SERVER
$1499.97

Dell PowerEdge M620 Blade Server 2x Xeon E5-2680v2 2.8ghz 20-Cores | 128GB
$149.99

Dell Poweredge C6400 24x 2.5’’ 2x 2400W 4x C6420 Nodes H330 | 2x SFP | 8x Trays
$799.99

LOT (8) Cisco UCS UCSB-B200-M5 2x6248R 24 core 3.0G 24x64g DDR4-2933 ram
$112000.00

Cisco B200 M3 2x E5-2670V2 10 Core 8x 16GB-128GB Ram Blade Server VIC1240 14900R
$399.00

Dell PowerEdge M630 Blade Server 2x Xeon E5-2680 v4, 2F3MP , 4GDP5 ,R10KJ ,JVFVR
$96.60

Dell Poweredge VRTX 25Bay 2.5" 2x PERC 8, 2xCMC, I/O 1GB Pass Through, 4x PS
$578.08