On Nov 13, 2007 8:07 AM, marcus <[EMAIL PROTECTED]> wrote:
> On Tuesday 13 November 2007 09:00, Kristian Kielhofner wrote:
> >   Try device "/dev/hda".  The images included the MBR, partition
> > table, and first partition.  You need to write it to the beginning of
> > the disk (hda), not the beginning of the first partition (hda1).
>
>
> Does this mean you used: dd if=/dev/sdx of=astlinux.img
> to create the image? Or is there more involved?
>
>
> Thanks,
>
> Marcus

Marcus,

  Sort of...  The makeimage.sh script sets up various loopback devices
to make the entire "disk" available.  We then run fdisk, grub, etc.
You can then access the first partition with an offset of 32256 bytes.
 Like this:

losetup /dev/loop0 astlinux.img
fdisk -l /dev/loop0 (should show partition table)
losetup -d /dev/loop0
losetup -o 32256 /dev/loop0 astlinux.img
mount -o ro -t ext2 /dev/loop0 /mnt/image

 For the lazy, those last two steps can be replaced with "mount -t
ext2 -o ro,loop,offset=32256 astlinux.img /mnt/image"



-- 
Kristian Kielhofner

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]

Reply via email to