08-02-2017, 10:03 AM
(This post was last modified: 08-02-2017, 11:39 AM by heatfanjohn.)
I downloaded the server ARM image for Fedora 26 `Fedora-Server-armhfp-26-1.5-sda.raw.xz` and uncompressed it.
unxz Fedora-Server-armhfp-26-1.5-sda.raw.xz
Then thanks to [this SO answer](https://askubuntu.com/questions/69363/mo...isk-device) I was able to mount the various partitions inside this raw image. For example for the `/boot` partition:
From this it appears that this image is geared for a Raspberry Pi device.
The 2nd partition looks promising.
The 2.3 GB 4th partition is the root file system of Fedora:
unxz Fedora-Server-armhfp-26-1.5-sda.raw.xz
Then thanks to [this SO answer](https://askubuntu.com/questions/69363/mo...isk-device) I was able to mount the various partitions inside this raw image. For example for the `/boot` partition:
Code:
~/Downloads$ sudo fdisk -lu Fedora-Server-armhfp-26-1.5-sda.raw
Disk Fedora-Server-armhfp-26-1.5-sda.raw: 3.5 GiB, 3726639104 bytes, 7278592 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x337b9d3d
Device Boot Start End Sectors Size Id Type
Fedora-Server-armhfp-26-1.5-sda.raw1 2048 61439 59392 29M c W95 FAT32 (LBA)
Fedora-Server-armhfp-26-1.5-sda.raw2 * 61440 1060863 999424 488M 83 Linux
Fedora-Server-armhfp-26-1.5-sda.raw3 1060864 2060287 999424 488M 82 Linux swap / Solaris
Fedora-Server-armhfp-26-1.5-sda.raw4 2060288 6942719 4882432 2.3G 82 Linux swap / Solaris
~/Downloads$ bc
bc 1.06.95
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
512*2048
1048576
~/Downloads$ sudo losetup -o 1048576 /dev/loop0 Fedora-Server-armhfp-26-1.5-sda.raw
~/Downloads$ sudo fsck -fv /dev/loop0
fsck from util-linux 2.27.1
fsck.fat 3.0.28 (2015-05-16)
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "mkfs.fat"
Media byte 0xf8 (hard disk)
512 bytes per logical sector
2048 bytes per cluster
4 reserved sectors
First FAT starts at byte 2048 (sector 4)
2 FATs, 16 bit entries
30720 bytes per FAT (= 60 sectors)
Root directory starts at byte 63488 (sector 124)
512 root directory entries
Data area starts at byte 79872 (sector 156)
14809 data clusters (30328832 bytes)
32 sectors/track, 64 heads
0 hidden sectors
59392 sectors total
Reclaiming unconnected clusters.
/dev/loop0: 15 files, 6505/14809 clusters
~/Downloads$ sudo mount /dev/loop0 /mnt
~/Downloads$ ls -l /mnt
total 12948
-rwxr-xr-x 1 root root 50268 Jul 5 18:20 bootcode.bin
-rwxr-xr-x 1 root root 4371 Jul 5 18:20 config-64.txt
-rwxr-xr-x 1 root root 4214 Jul 5 18:20 config.txt
-rwxr-xr-x 1 root root 2581 Jul 5 18:20 fixup_cd.dat
-rwxr-xr-x 1 root root 6660 Jul 5 18:20 fixup.dat
-rwxr-xr-x 1 root root 9802 Jul 5 18:20 fixup_db.dat
-rwxr-xr-x 1 root root 9798 Jul 5 18:20 fixup_x.dat
drwxr-xr-x 2 root root 2048 Jul 5 18:20 overlays
-rwxr-xr-x 1 root root 360008 Jul 5 18:20 rpi2-u-boot.bin
-rwxr-xr-x 1 root root 359744 Jul 5 18:20 rpi3-u-boot.bin
-rwxr-xr-x 1 root root 657828 Jul 5 18:20 start_cd.elf
-rwxr-xr-x 1 root root 4990532 Jul 5 18:20 start_db.elf
-rwxr-xr-x 1 root root 2852356 Jul 5 18:20 start.elf
-rwxr-xr-x 1 root root 3935908 Jul 5 18:20 start_x.elf
~/Downloads$
From this it appears that this image is geared for a Raspberry Pi device.
The 2nd partition looks promising.
Code:
Disk Fedora-Server-armhfp-26-1.5-sda.raw: 3.5 GiB, 3726639104 bytes, 7278592 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x337b9d3d
Device Boot Start End Sectors Size Id Type
Fedora-Server-armhfp-26-1.5-sda.raw1 2048 61439 59392 29M c W95 FAT32 (LBA)
Fedora-Server-armhfp-26-1.5-sda.raw2 * 61440 1060863 999424 488M 83 Linux
Fedora-Server-armhfp-26-1.5-sda.raw3 1060864 2060287 999424 488M 82 Linux swap / Solaris
Fedora-Server-armhfp-26-1.5-sda.raw4 2060288 6942719 4882432 2.3G 82 Linux swap / Solaris
~/Downloads$ ls -l /media/johnma/__boot/
total 185884
drwxr-xr-x. 3 root root 4096 Jul 5 18:15 735cc24f805341718e3aa8125ba1010a
-rw-r--r--. 1 root root 2 Feb 10 16:35 boot.scr
-rw-r--r--. 1 root root 199611 Jun 29 18:39 config-4.11.8-300.fc26.armv7hl
drwxr-xr-x. 2 root root 24576 Jul 5 18:13 dtb-4.11.8-300.fc26.armv7hl
drwxr-xr-x. 2 root root 4096 Jul 5 18:20 extlinux
drwxrwxr-x. 2 root root 4096 Jul 5 18:06 fw
drwxrwxr-x. 2 root root 4096 Jul 5 18:20 grub
-rw-------. 1 root root 55990814 Jul 5 18:19 initramfs-4.11.8-300.fc26.armv7hl.img
-rw-r--r--. 1 root root 24 Jul 5 18:19 klist.txt
drwx------ 2 root root 16384 Jul 5 18:06 lost+found
-rw-------. 1 root root 3226489 Jun 29 18:38 System.map-4.11.8-300.fc26.armv7hl
-rw-r--r--. 1 root root 6267680 Jul 5 18:19 uImage
-rw-r--r--. 1 root root 6267680 Jul 5 18:19 uImage-4.11.8-300.fc26.armv7hl
-rw-r--r--. 1 root root 55990878 Jul 5 18:19 uInitrd
-rw-r--r--. 1 root root 55990878 Jul 5 18:19 uInitrd-4.11.8-300.fc26.armv7hl
-rwxr-xr-x. 1 root root 6267616 Jun 29 18:39 vmlinuz-4.11.8-300.fc26.armv7hl
The 2.3 GB 4th partition is the root file system of Fedora:
Code:
~/Downloads$ sudo losetup -o 1054867456 /dev/loop3 Fedora-Server-armhfp-26-1.5-sda.raw
~/Downloads$ ls -l /media//johnma/__
total 12
lrwxrwxrwx. 1 root root 7 Feb 10 11:37 bin -> usr/bin
drwxrwxr-x. 2 root root 6 Jul 5 18:06 boot
drwxr-xr-x. 4 root root 179 Jul 5 18:15 dev
drwxr-xr-x. 96 root root 8192 Jul 5 18:20 etc
drwxr-xr-x. 2 root root 6 Feb 10 11:37 home
lrwxrwxrwx. 1 root root 7 Feb 10 11:37 lib -> usr/lib
drwxr-xr-x. 2 root root 6 Feb 10 11:37 media
drwxr-xr-x. 2 root root 6 Feb 10 11:37 mnt
drwxr-xr-x. 2 root root 6 Feb 10 11:37 opt
drwxrwxr-x. 2 root root 6 Jul 5 18:06 proc
dr-xr-x---. 2 root root 114 Jul 5 18:20 root
drwxr-xr-x. 18 root root 232 Jul 5 18:13 run
lrwxrwxrwx. 1 root root 8 Feb 10 11:37 sbin -> usr/sbin
drwxr-xr-x. 2 root root 6 Feb 10 11:37 srv
drwxrwxr-x. 2 root root 6 Jul 5 18:06 sys
drwxrwxrwt. 7 root root 93 Jul 5 18:20 tmp
drwxr-xr-x. 11 root root 131 Jul 5 18:11 usr
drwxr-xr-x. 21 root root 277 Jul 5 18:14 var