On Thu, Jun 8, 2017 at 7:05 AM,  <[email protected]> wrote:
> Hey,
>
> When I download sdcard images for the BBB, I verify that the sum is correct.
> after xzcat, I only find 1 partition in the image, which I cannot mount.
>
> Does this sound familiar.
> I cannot believe all images are bad, so it must be something wrong on my
> computer.
> I fail to imagine how xz can be wrong.

It's best to use losetup/kpartx to mount it:

$ unxz bone-debian-stretch-iot-armhf-2017-06-04-4gb.img.xz

$ sudo fdisk -l bone-debian-stretch-iot-armhf-2017-06-04-4gb.img
Disk bone-debian-stretch-iot-armhf-2017-06-04-4gb.img: 3.3 GiB,
3565158400 bytes, 6963200 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: 0xd12441de

Device                                            Boot Start     End
Sectors  Size Id Type
bone-debian-stretch-iot-armhf-2017-06-04-4gb.img1 *     8192 6963199
6955008  3.3G 83 Linux

Grab a Loop device:

$ sudo losetup -f
/dev/loop0

$ sudo losetup /dev/loop0 bone-debian-stretch-iot-armhf-2017-06-04-4gb.img

$ sudo kpartx -av /dev/loop0

$ ls /dev/mapper/
control  loop0p1

$ mkdir disk
$ sudo mount /dev/mapper/loop0p1 disk/

$ mount | grep disk
/dev/mapper/loop0p1 on
/mnt/data/data/images/bb.org/testing/2017-06-04/stretch-iot/disk type
ext4 (rw,relatime,data=ordered)

$ cd disk/
disk$ ls
bbb-uEnv.txt  boot  etc   ID.txt  lost+found  mnt           opt   root
 sbin  sys  usr
bin           dev   home  lib     media       nfs-uEnv.txt  proc  run
 srv   tmp  var

Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYjzVePefcbN9VSKR_k-YOyiwnB%2BVedaxZ4phBxPBe0OTQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to