diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-15 19:17:55 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-15 19:17:55 +0000 |
commit | 78c511b02a32f91ac9f390257f71ab6f12149583 (patch) | |
tree | 32b2fabf608a702fecc9aeb2cc009e22d892b667 /nuttx/examples/nsh/README.txt | |
parent | 1e6c726b328b77d54c11e91f965386f33dae19c0 (diff) | |
download | px4-nuttx-78c511b02a32f91ac9f390257f71ab6f12149583.tar.gz px4-nuttx-78c511b02a32f91ac9f390257f71ab6f12149583.tar.bz2 px4-nuttx-78c511b02a32f91ac9f390257f71ab6f12149583.zip |
losetup example
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1244 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/nsh/README.txt')
-rw-r--r-- | nuttx/examples/nsh/README.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/nuttx/examples/nsh/README.txt b/nuttx/examples/nsh/README.txt index a34b03da9..840fe73fd 100644 --- a/nuttx/examples/nsh/README.txt +++ b/nuttx/examples/nsh/README.txt @@ -341,6 +341,23 @@ o losetup [-d <dev-path>] | [[-o <offset>] [-r] <ldev-path> <file-path>] losetup [-o <offset>] [-r] <dev-path> <file-path> + Example: + + nsh> dd if=/dev/zero of=/tmp/image bs=512 count=512 + nsh> ls -l /tmp + /tmp: + -rw-rw-rw- 262144 IMAGE + nsh> losetup /dev/loop0 /tmp/image + nsh> ls -l /dev + /dev: + brw-rw-rw- 0 loop0 + nsh> mkfatfs /dev/loop0 + nsh> mount -t vfat /dev/loop0 /mnt/example + nsh> ls -l /mnt + ls -l /mnt + /mnt: + drw-rw-rw- 0 example/ + o ls [-lRs] <dir-path> Show the contents of the directory at <dir-path>. NOTE: |