seek into root fs ?

B. James Phillippe (bryan@Terran.ORG)
Thu, 19 Feb 1998 14:41:52 -0800 (PST)


Hello,

I'd like to know if it's possible to boot a kernel and have it
mount the root filesystem at some offset from the beginning of the root
device. For instance, say that I put a 300k kernel at the beginning of a
floppy disk, and put a minix filesystem on the disk after the kernel (say,
at 301 blocks after the start of the device). Is there a way to tell the
kernel to seek 301 blocks into the device before trying to mount it as
root?
I've been looking through the kernel source (super.c, fs.c,
devices.c) and I don't see any capability for this. How hard would it be
to add?
Lastly, and most importantly, is this a bad idea or are there
better ways to accomplish the same functionality? What I'm trying to
achieve is a system where I can boot the same kernel & root fs on an
arbitrary bootable device (ie., able to take a bootable floppy image and dd
it to a fixed disk partition and boot it as-is).

Thanks for any info.

cheers,
-bp

--
B. James Phillippe <bryan@terran.org>
Linux Software Engineer, WGT Inc.
http://w3.terran.org/~bryan

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu