2013-06-03

Slitaz -- raspi / file

  -k, --keep-going           don't stop at the first match

tux@slitaz:/tmp$ file 2013-05-25-wheezy-raspbian.img
2013-05-25-wheezy-raspbian.img: x86 boot sector


1.
tux@slitaz:/tmp$ file -k 2013-05-25-wheezy-raspbian.img
2013-05-25-wheezy-raspbian.img: x86 boot sector; partition 1: ID=0xc, starthead 130, startsector 8192, 114688 sectors; partition 2: ID=0x83, starthead 165, startsector 122880, 3665920 sectors


2.
tux@slitaz:/tmp$ fdisk -lu 2013-05-25-wheezy-raspbian.img

Disk 2013-05-25-wheezy-raspbian.img: 1939 MB, 1939865600 bytes
255 heads, 63 sectors/track, 235 cylinders, total 3788800 sectors
Units = sectors of 1 * 512 = 512 bytes

                         Device Boot      Start         End      Blocks  Id System
2013-05-25-wheezy-raspbian.img1            8192      122879       57344   c Win95 FAT32 (LBA)
Partition 1 does not end on cylinder boundary
2013-05-25-wheezy-raspbian.img2          122880     3788799     1832960  83 Linux
Partition 2 does not end on cylinder boundary

3.
tux@slitaz:/tmp$ sudo mount -o,offset=$((512*122880)) 2013-05-25-wheezy-raspbian.img   /mnt/raspi
udev changed: /dev/loop0
mount changed: /dev/loop0
tux@slitaz:/tmp$ udev changed: /dev/loop0

tux@slitaz:/tmp$ ls -l /mnt/raspi
total 92
drwxr-xr-x    2 root     root          4096 May 25 17:10 bin
drwxr-xr-x    2 root     root          4096 May 25 16:38 boot
drwxr-xr-x    3 root     root          4096 May 25 17:11 dev
drwxr-xr-x   96 root     root          4096 May 25 17:58 etc
drwxr-xr-x    3 root     root          4096 May 25 16:35 home
drwxr-xr-x   12 root     root          4096 May 25 17:00 lib
drwx------    2 root     root         16384 May 25 16:24 lost+found
drwxr-xr-x    2 root     root          4096 May 25 16:26 media
drwxr-xr-x    2 root     root          4096 Dec 26 05:12 mnt
drwxr-xr-x    3 root     root          4096 May 25 16:37 opt
drwxr-xr-x    2 root     root          4096 Dec 26 05:12 proc
drwx------    2 root     root          4096 May 25 16:26 root
drwxr-xr-x    7 root     root          4096 May 25 17:42 run
drwxr-xr-x    2 root     root          4096 May 25 17:10 sbin
drwxr-xr-x    2 root     root          4096 Jun 20  2012 selinux
drwxr-xr-x    2 root     root          4096 May 25 16:26 srv
drwxr-xr-x    2 root     root          4096 Feb 26 05:19 sys
drwxrwxrwt    2 root     root          4096 Dec 26 05:12 tmp
drwxr-xr-x   10 root     root          4096 May 25 16:26 usr
drwxr-xr-x   11 root     root          4096 May 25 16:26 var


4.
tux@slitaz:/tmp$ sudo mount -o,offset=$((512*8192)) 2013-05-25-wheezy-raspbian.img  /mnt/boot
udev changed: /dev/loop1
tux@slitaz:/tmp$ mount changed: /dev/loop1
udev changed: /dev/loop1

tux@slitaz:/tmp$ ls -l /mnt/boot
total 18888
-rwxr-xr-x    1 root     root         17808 May 25 16:58 bootcode.bin
-rwxr-xr-x    1 root     root           142 May 25 17:38 cmdline.txt
-rwxr-xr-x    1 root     root          1180 May 25 17:38 config.txt
-rwxr-xr-x    1 root     root          2012 May 25 16:58 fixup_cd.dat
-rwxr-xr-x    1 root     root          5880 May 25 16:58 fixup.dat
-rwxr-xr-x    1 root     root          8830 May 25 16:58 fixup_x.dat
-rwxr-xr-x    1 root     root           137 May 25 18:58 issue.txt
-rwxr-xr-x    1 root     root       9610248 May 25 16:58 kernel_emergency.img
-rwxr-xr-x    1 root     root       2803168 May 25 16:58 kernel.img
-rwxr-xr-x    1 root     root        467960 May 25 16:58 start_cd.elf
-rwxr-xr-x    1 root     root       2688564 May 25 16:58 start.elf
-rwxr-xr-x    1 root     root       3655652 May 25 16:58 start_x.elf
tux@slitaz:/tmp$


5.
tux@slitaz:/tmp$ cat /mnt/boot/issue.txt
Raspberry Pi reference 2013-05-25 (armhf)
Generated using spindle, http://asbradbury.org/projects/spindle/, 9c87329, stage4-lxde-edu.qed