Tiny Core Base > TCB Tips & Tricks

Hidden Bootcode for readonly rootfs?

(1/2) > >>

linuxhelp:
Hello,

is there a bootcode for readonly mount of rootfs?
i tried to set /forcefsck with filetool not possible
i like to use it for a remote thin client (Root on CF-Disk)
which is switched on/off by mechanic timer clock
umount -r /dev/sda1 #not possible dev-busy

thanks..

tinypoodle:

--- Quote from: linuxhelp on July 30, 2012, 02:13:21 AM ---Hello,

is there a bootcode for readonly mount of rootfs?

--- End quote ---
Quite an interesting question, though I couldn't think of any usage scenario where that would be of any benefit, as rootfs is residing in shared mem.

--- Quote ---i tried to set /forcefsck with filetool not possible

--- End quote ---
Can you elaborate about that, not clear what is meant.

--- Quote ---i like to use it for a remote thin client (Root on CF-Disk)
which is switched on/off by mechanic timer clock
umount -r /dev/sda1 #not possible dev-busy

thanks..

--- End quote ---
One possible approach would be to boot with code "base", then copy needed files to rootfs, e.g. extensions to /tmp/tce/optional - that would allow for umounting any persistent storage medium.

Rich:
Hi tinypoodle
He is backing up a file called  /forcefsck  in an attempt to force fsck to run on boot:
http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/

tinypoodle:
Oh... In short, that would neither make much sense for core, nor could it ever work, for a multitude of reasons.

Rich:
Hi linuxhelp
When you say  "(Root on CF-Disk)"  , are you referring to a "scatter installation"? Tinycores root file system
is in RAM.

Navigation

[0] Message Index

[#] Next page

Go to full version