正文
RPi 2B Raspbian SD卡内部架构
小程序:扫一扫查出行
【扫一扫了解最新限行尾号】
复制小程序
【扫一扫了解最新限行尾号】
复制小程序
/*****************************************************************************
* RPi 2B Raspbian SD卡内部架构
* 声明:
* 本文主要想了解RPi 2B Raspbian SD卡中文件存放方式。
*
* 2016-1-29 深圳 南山平山村 曾剑锋
****************************************************************************/一、参考文章:
. RPi Advanced Setup
http://elinux.org/RPi_Advanced_Setup
. Formatting the SD card via the mkcard.txt script
http://downloads.angstrom-distribution.org/demo/beaglebone/mkcard.txt
. RPi cmdline.txt
http://elinux.org/RPi_cmdline.txt二、总结:
. RPi 2B Raspbian SD被分区为2个分区(we want to create two partitions. One for the boot image, one for our distro.):
Device Boot Start End Blocks Id System
/dev/sdc1 * c W95 FAT32 (LBA)
/dev/sdc2 Linux
. 文件系统类型:
cat cmdline.txt
......
rootfstype=ext4
......
. boot分区内容:
zengjf@zengjf:/media/boot$ ls -al
total
drwx------ myzr myzr Jan .
drwxr-xr-x root root Jan : ..
-rw-r--r-- myzr myzr Nov : bcm2708-rpi-b.dtb
-rw-r--r-- myzr myzr Nov : bcm2708-rpi-b-plus.dtb
-rw-r--r-- myzr myzr Nov : bcm2708-rpi-cm.dtb
-rw-r--r-- myzr myzr Nov : bcm2709-rpi--b.dtb
-rw-r--r-- myzr myzr Nov : bootcode.bin
-rw-r--r-- myzr myzr Nov : cmdline.txt
-rw-r--r-- myzr myzr Nov : config.txt
-rw-r--r-- myzr myzr Aug : COPYING.linux
-rw-r--r-- myzr myzr Nov : fixup_cd.dat
-rw-r--r-- myzr myzr Nov : fixup.dat
-rw-r--r-- myzr myzr Nov : fixup_db.dat
-rw-r--r-- myzr myzr Nov : fixup_x.dat
-rw-r--r-- myzr myzr Nov : issue.txt
-rw-r--r-- myzr myzr Nov : kernel7.img
-rw-r--r-- myzr myzr Nov : kernel.img
-rw-r--r-- myzr myzr Nov : LICENCE.broadcom
-rw-r--r-- myzr myzr Nov : LICENSE.oracle
drwx------ myzr myzr Nov : overlays
-rw-r--r-- myzr myzr Nov : start_cd.elf
-rw-r--r-- myzr myzr Nov : start_db.elf
-rw-r--r-- myzr myzr Nov : start.elf
-rw-r--r-- myzr myzr Nov : start_x.elf
. ext4文件系统内容:
zengjf@zengjf:/media/ad6203a1-ec50-4f44-a1c0-e6c3dd4c9202$ ls -al
total
drwxr-xr-x root root Nov : .
drwxr-xr-x root root Jan : ..
drwxr-xr-x root root Nov : bin
drwxr-xr-x root root Nov : boot
drwxr-xr-x root root Nov : dev
drwxr-xr-x root root Nov : etc
drwxr-xr-x root root Nov : home
drwxr-xr-x root root Nov : lib
drwx------ root root Nov : lost+found
drwxr-xr-x root root Nov : media
drwxr-xr-x root root Nov : mnt
drwxr-xr-x root root Nov : opt
drwxr-xr-x root root Jan proc
drwx------ root root Nov : root
drwxr-xr-x root root Nov : run
drwxr-xr-x root root Nov : sbin
drwxr-xr-x root root Nov : srv
drwxr-xr-x root root Apr sys
drwxrwxrwt root root Nov : tmp
drwxr-xr-x root root Nov : usr
drwxr-xr-x root root Nov : var