Skip to content

Instantly share code, notes, and snippets.

@jaxxzer
Created September 13, 2017 19:07
Show Gist options
  • Save jaxxzer/c08e98306672b24fae98541b7f851746 to your computer and use it in GitHub Desktop.
Save jaxxzer/c08e98306672b24fae98541b7f851746 to your computer and use it in GitHub Desktop.
Mount raspberry pi filesystem
$ fdisk -l ardusub-raspbian-0.0.8.img
Disk ardusub-raspbian-0.0.8.img: 3.1 GiB, 3349151744 bytes, 6541312 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: 0x1b4801d2
Device Boot Start End Sectors Size Id Type
ardusub-raspbian-0.0.8.img1 8192 92159 83968 41M c W95 FAT32 (LBA)
ardusub-raspbian-0.0.8.img2 92160 6236159 6144000 3G 83 Linux
92160*512=47185920
$ sudo mount -v -o offset=47185920 -t ext4 ardusub-raspbian-0.0.8.img /mnt
mount: /dev/loop4 mounted on /mnt.
$ sudo umount /mnt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment