Displaying 1 result from an estimated 1 matches for "tablei".
Did you mean:
table
2008 Nov 01
2
Patching your own boot-disk from first principles
...tion. I want to use commonly available Linux tools like dd, losetup, mkdosfs, memdisk etc.
I have done the following:
1. dd if=/dev/zero of=myImage bs=1M count=50 [ Builds a 52MB image ]
2. losetup /dev/loop0 myImage [Links /dev/loop0 to myImage file ]
3. vi /grub/stage1; %!xxd; [ NULL the partion tablei within stage1 ];
%!xxd -r;
4. cat /grub/stage1 /grub/fat_stage1_5 > /dev/loop0 [ Puts
the GRUB boot loader into the MBR of the image and stage1_5 after
that ]
5. fdisk /dev/loop0 [ I use this to create a new single partition ]
I now have a hard disk image of 52MB with a single partiti...