[Top][All Lists]

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

bug#16134: Bug#239816: bug#16134: libparted Atari partition table suppor

From: John Paul Adrian Glaubitz
Subject: bug#16134: Bug#239816: bug#16134: libparted Atari partition table support
Date: Sat, 15 Oct 2016 21:32:28 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0

On 10/15/2016 09:15 PM, Michael Schmitz wrote:
> good to see you managed to fix the libparted issues!

Thanks. I just happened to be in the situation that I'm writing a guide
how to set up a minimal Debian/m68k system on ARAnyM from scratch.

>> Ah, it works after enabling byte-swapping in ARAnyM :).
> Did you write the table on the host and then had to byte swap to get it
> read in ARAnyM?

Correct. I created an empty image, mapped it to /dev/loop0 using losetup
and ran my patched version of parted to create an Atari partition table
plus two partitions for the system and swap.

In ARAnyM, I had to enable byte-swapping as otherwise the partitions
were not recognized.

> Just checked - Atari byte order disk image files of IDE disks don't need
> byte swapping. Host native byte order ones do, that suggests your
> partition table is in host native order. To get it to work in ARAnyM out
> of the box, and more importantly on real hardware the partition table
> would need to be written to the disk image with byte swapping.

Wouldn't ARAnyM or a real Atari write the data byte-swapped to the
disk anyway? I would expect that parted just uses the host order
which is why I had to byte-swap the disk image when using it in
ARAnyM. But I think we could add the byte-swapping later if

> Note that SCSI disks don't need byte swapping so if you want to support
> both targets, libparted would need a byte swap option ...

Ok, good to know.


 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - address@hidden
`. `'   Freie Universitaet Berlin - address@hidden
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913

reply via email to

[Prev in Thread] Current Thread [Next in Thread]