New kernel parameter:
resize (e.g. resize=50, resize=200, ...)
Meaning
Increase savefile size during the boot process, for the given number of Megabytes
so, there are two options:
- open menu.lst add resizesf parameter, reboot, remove resizesf parameter, or
- press e to edit menu.lst when grub4dos menu shows up on boot, then add that parameter
Code: Select all
timout=3
default=0
title alphaos (sda6/alphaos)
find --set-root --ignore-floppies --ignore-cd /alphaos/boot/initrfs.img
kernel /alphaos/boot/vmlinuz from=/alphaos
initrd /alphaos/boot/initrfs.img
title Increase savefile by 512M - alphaos (sda6/alphaos)
find --set-root --ignore-floppies --ignore-cd /alphaos/boot/initrfs.img
kernel /alphaos/boot/vmlinuz from=/alphaos resizesf=512
initrd /alphaos/boot/initrfs.img
Code: Select all
if [ -f /mnt/dev_save/pupsaveresize.txt ];then
KILOBIG=`cat /mnt/dev_save/pupsaveresize.txt`
rm -f /mnt/dev_save/pupsaveresize.txt
echo > /dev/console
echo -en $BBlue":: "$Color_Off"Increasing $PUPSAVEFILE by $KILOBIG Kbytes, please wait..." >/dev/console
dd if=/dev/zero bs=1024 count=$KILOBIG >> /mnt/dev_save$PUPSAVEFILE
sync
e2fsck -y -f /mnt/dev_save$PUPSAVEFILE
resize2fs -pf /mnt/dev_save$PUPSAVEFILE
sync
check_status 0
echo -en $BBlue":: "$Color_Off"...Continuing with loading $PUPSAVEFILE..." > /dev/console
fi
Scooby wrote:BTW do we have something similar to puppy boot parameter pfix=fsck?
I used it many times on puppy? maybe cause I'm on ext2? But I heard journalled
systems aint a 100% safe either.
simargl wrote:I could make save file checking as default without need for addition boot code, but don't know
is it needed now with ext4. Probably not..
Scooby wrote:what would be the steps? Do you have to mount savefile?
or just run e2fsck on it?
Code: Select all
if grep -q fsck /proc/cmdline; then e2fsck -y -f $1/changes.fs4; fi
Scooby wrote:
That easy huh?
Then why dont you put inCode: Select all
if grep -q fsck /proc/cmdline; then e2fsck -y -f $1/changes.fs4; fi
after check of file exists?
use with bootcode fsck
Should only be rarely needed but you are not 100% safe even with journalled filesystems such as ext4
Users browsing this forum: No registered users and 8 guests