Hardware Reference
In-Depth Information
Solution
If you booted from the microSD card, run the following command:
bone#
df -h
Filesystem Size Used Avail Use% Mounted on
rootfs 7.2G 2.0G 4.9G 29% /
udev 10M 0 10M 0% /dev
tmpfs 100M 1.9M 98M 2% /run
/dev/mmcblk0p2 7.2G 2.0G 4.9G 29% /
tmpfs 249M 0 249M 0% /dev/shm
tmpfs 249M 0 249M 0% /sys/fs/cgroup
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 100M 0 100M 0% /run/user
bone#
ls /dev/mmcblk*
/dev/mmcblk0 /dev/mmcblk0p2 /dev/mmcblk1boot0 /dev/mmcblk1p1
/dev/mmcblk0p1 /dev/mmcblk1 /dev/mmcblk1boot1
The
df
command shows what partitions are already mounted. The line
/dev/
mmcblk0p2 7.2G 2.0G 4.9G 29% /
shows that
mmcblk0
partition
p2
is mounted
as
/
, the root file system. The general rule is that the media you're booted from (either the
onboard flash or the microSD card) will appear as
mmcblk0
. The second partition (
p2
) is
the root of the file system.
The
ls
command shows what devices are available to mount. Because
mmcblk0
is
already mounted,
/dev/mmcblk1p1
must be the other media that we need to mount.
Run the following commands to mount it:
bone#
cd /mnt
bone#
mkdir onboard
bone#
ls onboard
bone#
mount /dev/mmcblk1p1 onboard/
bone#
ls onboard
bin etc lib mnt proc sbin sys var
boot home lost+found nfs-uEnv.txt root selinux tmp
dev ID.txt media opt run srv usr
The
cd
command takes us to a place in the file system where files are commonly mounted.
The
mkdir
command creates a new directory (
onboard
) to be a mount point. The
ls
com-