Skip to content

Commit 44d4ed7

Browse files
Update README.md
Add the introduction of how to mount and unmount in semu.
1 parent ca2b17e commit 44d4ed7

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,26 @@ You can exit the emulator using: \<Ctrl-a x\>. (press Ctrl+A, leave it, afterwar
8585
* `initrd-image` is optional, as it specifies the user-specified initial RAM disk image.
8686
* `disk-image` is optional, as it specifies the path of a disk image in ext4 file system for the virtio-blk device.
8787
* `mount-folder` is optional, as it specifies the path of a folder you want to mount in host.
88+
89+
## Mount and unmount a folder in semu
90+
91+
To mount the folder in semu:
92+
93+
```shell
94+
$ mount -t virtiofs myfs [mount-folder]
95+
```
96+
97+
* `mount-folder` is the path of a folder you want to mount in semu.
98+
99+
To unmount the folder in semu:
100+
101+
```shell
102+
$ umount [mount-folder]
103+
```
104+
105+
* `mount-folder` is the path of a folder you want to unmount in semu.
106+
107+
88108
## Build Linux kernel image and root file system
89109

90110
An automated build script is provided to compile the RISC-V cross-compiler, Busybox, and Linux kernel from source.

0 commit comments

Comments
 (0)