I have an img file. I mount it using this command
mount -o loop,offset=70254592 image/2016-05-10-raspbian-jessie-lite.img /mnt/raspberry-rootfs
But I must do that every time I power up my computer. Is there a method to mount it using the fstab file?
I don't know what to put in the system type. I tried iso9660 and ext4 but this doesn't work.
The fdisk -l
command gives me this output:
Disk 2016-05-10-raspbian-jessie-lite.img: 1,3 GiB, 1386217472 bytes, 2707456 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: 0x84f9d19f
Device Boot Start End Sectors Size Id Type
2016-05-10-raspbian-jessie-lite.img1 8192 137215 129024 63M c W95 FAT3
2016-05-10-raspbian-jessie-lite.img2 137216 2707455 2570240 1,2G 83 Linux
/home/mdababi/Bureau/Tools/image/2016-05-10-raspbian-jessie-lite.img on /mnt/raspberry-rootfs type ext4 (rw,relatime,data=ordered)
– Dababi Nov 28 '16 at 10:23