[okl4-developer] OKLinux and file systems

Geoffrey Lee glee at ok-labs.com
Fri May 23 14:41:31 EST 2008


On Thu, May 22, 2008 at 09:21:33PM -0700, Geoff White wrote:
> I can see that upon boot-up, the rootfs is loaded into memory and resides
> there.
> This is fine, but suppose I want to actually write or read from the disk
> that I just booted from.
> I remember seeing a post awhile back on mounting the disk, but it doesn't
> seem to work any more.

mount -t <fstype> /dev/<device> <mntpoint>

should work.  You should ensure that you have the necessasry filesystem
code built into your kernel, as well as ensure that the device file
exists.  The default root filesystem creates some of these for you,
if you find they are missing you can always create them by modifying
the rootfs package or create them interactively using the mknod(8)
command.

Note: there has been a change since 2.1, we got rid of the generic
IDE driver in favor of the Intel IDE chipset, so the device for
that is /dev/sdX.

> 
> Also can someone offer any guidance on how to expand the rootfs past 49 MB?
> I'm sure its somewhere in the build system, but I can't seem to isolate it
> via grepping.
> I've found a place in projects/iguana/SConstruct that seems to specify the
> size of the partition but
> where is the size of the disk image  specified?

If you let the build system do it for you, it is defined to be the
paths_size * 1.4.  The paths_size depends on what applications
you specified to be in the disk image.  The place to look for that
is indeed in projects/iguana/SConstruct.

	-gl

> _______________________________________________
> Developer mailing list
> Developer at okl4.org
> https://lists.okl4.org/mailman/listinfo/developer


-- 




More information about the Developer mailing list