Created
June 5, 2014 07:04
-
-
Save junwatu/8ec1cb391ab03ffdf88f to your computer and use it in GitHub Desktop.
ArchLinuxARM on Qemu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Check image to find Linux partition | |
$ fdisk -l ArchLinuxARM-2014.05-rpi.img | |
console output | |
Disk ArchLinuxARM-2014.05-rpi.img: 1960 MB, 1960837120 bytes | |
255 heads, 63 sectors/track, 238 cylinders, total 3829760 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 | |
Disk identifier: 0x417ee54b | |
Device Boot Start End Blocks Id System | |
ArchLinuxARM-2014.05-rpi.img1 2048 186367 92160 c W95 FAT32 (LBA) | |
ArchLinuxARM-2014.05-rpi.img2 186368 3667967 1740800 5 Extended | |
ArchLinuxARM-2014.05-rpi.img5 188416 3667967 1739776 83 Linux | |
#Mount image | |
$ sudo mount -o loop,offset=$((188416*512)) ArchLinuxARM-2014.05-rpi.img /mnt | |
#Edit /mnt/etc/fstab. Change | |
/dev/mmcblk0p1 /boot vfat defaults 0 0 | |
to | |
/dev/sda1 /boot vfat defaults 0 0 | |
unmount | |
$ sudo umount /mnt | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment