[SOLVED] What FileSystem FreeBSD-14.0-RELEASE-amd64-memstick.img uses?

Hi,
I'm trying to troubleshoot boot problems I have in one of my boxes.
Actually checking the structure of the memstick image.

For FreeBSD-14.0-RELEASE-amd64-memstick.img I did:

Code:
root@dev:~ # mdconfig -u md1 -f FreeBSD-14.0-RELEASE-amd64-memstick.img
root@dev:~ # gpart show /dev/md1
=>      1  2656552  md1  MBR  (1.3G)
        1    66584    1  efi  (33M)
    66585  2589968    2  freebsd  [active]  (1.2G)
root@dev:~ # fstyp /dev/md1s1
msdosfs
root@dev:~ # fstyp /dev/md1s2
fstyp: /dev/md1s2: filesystem not recognized

I can mount /dev/md1s1 normally but can't mount /dev/md1s2.
What is really contained inside /dev/md1s2 and how to mount it?

Thanks!
 
What is really contained inside /dev/md1s2
A bsdlabel(8), in other words, a partition that resides in the slice.

Code:
dice@molly:~/temp % fetch http://ftp2.nl.freebsd.org/freebsd/releases/ISO-IMAGES/14.0/FreeBSD-14.0-RELEASE-amd64-memstick.img
FreeBSD-14.0-RELEASE-amd64-memstick.img               1297 MB   22 MBps    58s
dice@molly:~/temp % sudo mdconfig -f FreeBSD-14.0-RELEASE-amd64-memstick.img
Password:
md0
dice@molly:~/temp % gpart show md0
=>      1  2656552  md0  MBR  (1.3G)
        1    66584    1  efi  (33M)
    66585  2589968    2  freebsd  [active]  (1.2G)

dice@molly:~/temp % gpart show md0s2
=>      0  2589968  md0s2  BSD  (1.2G)
        0       16         - free -  (8.0K)
       16  2589952      1  freebsd-ufs  (1.2G)

dice@molly:~/temp % sudo mount /dev/md0s2a /mnt/
dice@molly:~/temp % ls /mnt/COPYRIGHT
/mnt/COPYRIGHT

With MBR the disk is split up into slices (s1, s2, s3 and s4), each slice can contain a bsdlabel(8) to divide up the slice into partitions; a, b, d, e, f and g (c is a 'special' partition, it spans the entire slice).
 
Thanks!
I see now. Sliced slice!

I I thought 'gpart list md0' would bring everything about structure. 👍
 
Back
Top