[ILUG] ramdisk is really a rampartition?

John P. Looney john at antefacto.com
Tue Dec 18 10:04:19 GMT 2001


On Tue, Dec 18, 2001 at 08:27:54AM +0000, John P. Looney mentioned:
> On Mon, Dec 17, 2001 at 08:56:33PM +0000, Padraig Brady mentioned:
> > I'd say lilo will not support the file directly?
> > How about using the loopback device? like:
> 
>  Nah. Tried that yesterday. The last bit of strace shows;
> 
> stat64("/dev/loop1", {st_mode=S_IFBLK|0660, st_rdev=makedev(7, 1), ...}) = 0
> open("/dev/loop1", 0x4)                 = 6
> write(2, "Fatal: ", 7Fatal: )                  = 7
> write(2, "Sorry, don\'t know how to handle device 0x0701"..., 45) = 45
> 
>  Device 0x0701 being loop0. How about grub ? Can you just dd a bootblock
> onto a disc image, and then it will use it's ext2 navigation abilities to
> find the rest ?

 OK, so the quest for a bootable file continues. The grub docs show the
following to make a bootable floppy;

[root at doozer grub]# dd if=stage1 of=/dev/fd0 bs=512 count=1
1+0 records in
1+0 records out
[root at doozer grub]# dd if=stage2 of=/dev/fd0 bs=512 count=1 seek=1
1+0 records in
1+0 records out

 To make a bootable disc. Now, if I want to use a file, instead of a
floppy, it would be the same. However, I also have a partition table.
Isn't that at the second block on a disc ? Wouldn't I wipe it by doing
that ?

Kate

-- 
_______________________________________
John Looney             Chief Scientist
a n t e f a c t o     t: +353 1 8586004
www.antefacto.com     f: +353 1 8586014





More information about the ILUG mailing list