The establishment of the Linux directory tree in my_rootfs

[arm@localhost my_rootfs]#mkdir bin dev etc home lib mnt proc sbin sys tmp root usr [arm@localhost my_rootfs]#mkdir mnt/etc

[arm@localhost my_rootfs]#mkdir usr/bin usr/lib usr/sbin [arm@localhost my_rootfs]#touch linuxrc [arm@localhost my_rootfs]#tree

|­­ bin

|­­ dev

|­­ etc

|­­ home

|­­ lib

| Linuxrc / * This file is the startup script is a shell script file. Later in this article has devoted * /

| mnt

|   `­­ etc

|­­ proc

|­­ sbin

|­­ sys

|­­ tmp

|­­ root

`­­ usr

|­­ bin

|­­ lib

`­­ sbin

 

Permission to refer to your linux workstation, see this article introduces the underlying directory references (not the end).

It should be noted that is the etc directory to store configuration files, this directory is often need to modify, so in linuxrc script etc directory which will be mounted as ramfs file system and then copy all configuration files mnt / etc directory to the etc directory which this will be reflected in the next section of linuxrc script file them.

Guess you like

Origin www.cnblogs.com/fanweisheng/p/11105656.html