Re: Reading / mounting Amiga-formatted hard disks under FreeBSD?

From: Torfinn Ingolfsen (tingo_at_start.no)
Date: 02/14/05


Date: Mon, 14 Feb 2005 21:51:16 +0100

Steve O'Hara-Smith wrote:
> Surely it would be better to use the appropriate slice device -
> eg ad1s1c (ad1s1 on 5.x).

As mentioned earlier in this thread, RDB and PC-style partitions are
diferent.
The program disktype (sysutils/disktype) illustrates this nicely.
da0 is my bootdisk (FreeBSD/i386), da is the Amiga (RDB) disk:
da0:

----
root@kg-fil# disktype /dev/da0
--- /dev/da0
Character device, unknown size
DOS partition map
Partition 1: 7.813 MiB (8193024 bytes, 16002 sectors from 63)
   Type 0x01 (FAT12)
   FAT12 file system (hints score 5 of 5)
     Volume size 7.789 MiB (8167424 bytes, 1994 clusters of 4 KiB)
     Volume name "WIN95BOOT"
Partition 2: 3.991 GiB (4285370880 bytes, 8369865 sectors from 16065, 
bootable)
   Type 0xA5 (FreeBSD)
   FreeBSD boot loader (i386 boot1 at sector 0)
   FreeBSD boot loader (i386 boot2/BTX 1.01 at sector 2)
   BSD disklabel (at sector 1), 8 partitions
   Partition a: 50 MiB (52428800 bytes, 102400 sectors from 16065)
     Type 7 (4.2BSD fast file system)
     Includes the disklabel and boot code
     UFS file system, 8 KiB offset, little-endian
       Last mounted at "/"
   Partition b: 100.3 MiB (105185280 bytes, 205440 sectors from 118465)
     Type 1 (swap)
   Partition c: 3.991 GiB (4285370880 bytes, 8369865 sectors from 16065)
     Type 0 (Unused)
   Partition e: 20 MiB (20971520 bytes, 40960 sectors from 323905)
     Type 7 (4.2BSD fast file system)
     UFS file system, 8 KiB offset, little-endian
       Last mounted at "/var"
   Partition f: 3.825 GiB (4106785280 bytes, 8021065 sectors from 364865)
     Type 7 (4.2BSD fast file system)
     UFS file system, 8 KiB offset, little-endian
       Last mounted at "/usr"
da1:
----
root@kg-fil# disktype /dev/da1
--- /dev/da1
Character device, unknown size
Amiga Rigid Disk partition map at sector 2
Partition 1: 15.53 MiB (16281600 bytes, 31800 sectors from 1590)
   Drive name "MDH0"
   Amiga FFS file system (intl., no dir cache)
   UFS file system, 8 KiB offset, big-endian
     Last mounted at "/"
Partition 2: 55.51 MiB (58206720 bytes, 113685 sectors from 33390)
   Drive name "MDH1"
   Amiga FFS file system (intl., no dir cache)
   UFS file system, 8 KiB offset, big-endian
     Last mounted at "/"
Partition 3: 100.5 MiB (105423360 bytes, 205905 sectors from 147075)
   Drive name "MDH2"
   UFS file system, 8 KiB offset, big-endian
     Last mounted at "/usr"
Partition 4: 147.5 MiB (154675200 bytes, 302100 sectors from 352980)
   Drive name "MDH3"
   UFS file system, 8 KiB offset, big-endian
     Last mounted at "/local"
Partition 5: 100.5 MiB (105423360 bytes, 205905 sectors from 655080)
   Drive name "MDH4"
   Amiga OFS file system (non-intl., no dir cache)
Partition 6: 213.1 MiB (223464960 bytes, 436455 sectors from 860985)
   Drive name "MDH5"
   Amiga OFS file system (non-intl., no dir cache)
Hmm, at least MDH0 and MDH1 are Amiga FFS partitions, so I'll try my 
luck with NetBSD. MDH2 and MDH3 seems to be unix filesystems, perhaps 
NetBSD or OpenBSD (I vaguely remember experimenting with those), perhaps 
I'll get access to those also (not very important, the data I need are 
on the AmigaDOS partitions. That leaves MDH4 and MDH5, which are Amiga 
OFS partitions, which perhaps isn't supported in NetBSD. We'll see.
Now off to boot the NetBSD 2.0 livecd.
-- 
Torfinn Ingolfsen


Relevant Pages