[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ARAnyM base image and /var/cache/pbuilder/base.cow tarball



On Fri, 20 Apr 2012, Thorsten Glaser wrote:

> Dixi quod?
> 
> > [?] the disc images are in ?raw? format.
> > The ext4 partition goes from block 1 (offset 512) to
> > block 23069088 according to atari-fdisk.
> 
> Just in case someone else wants to peek at the filesystem,
> possibly to transfer it to an Amiga or mac68k system.
> 

Here's what I did (on x86 Linux):

$ tar -xf Ara2012D.txz
$ cd Ara2012D
$ xz -dc disk.ima.xz | dd conv=swab skip=1 | cp --sparse=always /dev/stdin partition.ext4
$ e2fsck -f partition.ext4
$ resize2fs partition.ext4 512M
$ truncate -s 512M partition.ext4
$ e2fsck -f partition.ext4

This shrinks the filesystem so that it may be copied to a physical disk 
from an m68k machine. I plan to expand the filesystem again to fill the 
larger partition. It contains /sbin/resize2fs, so booting into it and 
doing an online resize should work.

In theory, it should be possible to do that with MacOS. E.g. copy 
partition.ext4 and a kernel binary over FTP, then block-copy 
partition.ext4 to a local empty partition using SUntar, then boot into it 
with Penguin...

Finn


Reply to: