QEMU arm永久存储
QEMU arm permanent storage
我使用带有 arm linux 内核的 QEMU。当来宾重新启动时,新文件夹和文件等更改将消失。我找不到使它们永久化的方法。
这些是文件:
-r-xr-xr-x 1 root root 197120 Ağu 14 17:45 disk.img
-rwxrwxrwx 1 root root 57424384 Ağu 14 13:28 rootfs.cpio
-rwxrwxrwx 1 root root 62914560 Ağu 14 13:28 rootfs.ext2
-rwxrwxrwx 1 root root 11863 Ağu 14 13:28 vexpress-v2p-ca9.dtb
-rwxrwxrwx 1 root root 29247264 Ağu 14 13:28 zImage
这是QEMU的运行:
C:\Program Files\qemu>qemu-system-arm -M vexpress-a9 -kernel zImage -serial COM1 --nographic -hda disk.img
这是客人df调用的结果
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 34324 0 34324 0% /dev
tmpfs 62460 0 62460 0% /dev/shm
tmpfs 62460 24 62436 0% /tmp
tmpfs 62460 24 62436 0% /run
qemu 区块信息:
(qemu) info block
info block
none0 (#block133): D:/images/disk.img (raw)
Removable device: not locked, tray closed
Cache mode: writeback
none2: [not inserted]
Removable device: not locked, tray closed
floppy0: [not inserted]
Removable device: not locked, tray closed
sd0: [not inserted]
Removable device: not locked, tray closed
开发者名单:
ls /dev
audio tty13 tty52
console tty14 tty53
cpu_dma_latency tty15 tty54
dsp tty16 tty55
full tty17 tty56
input tty18 tty57
kmem tty19 tty58
kmsg tty2 tty59
log tty20 tty6
mem tty21 tty60
mixer tty22 tty61
network_latency tty23 tty62
network_throughput tty24 tty63
null tty25 tty7
psaux tty26 tty8
ptmx tty27 tty9
pts tty28 ttyAMA0
ptyp0 tty29 ttyAMA1
ptyp1 tty3 ttyAMA2
ptyp2 tty30 ttyAMA3
ptyp3 tty31 ttyp0
ptyp4 tty32 ttyp1
ptyp5 tty33 ttyp2
ptyp6 tty34 ttyp3
ptyp7 tty35 ttyp4
ptyp8 tty36 ttyp5
ptyp9 tty37 ttyp6
ptypa tty38 ttyp7
ptypb tty39 ttyp8
ptypc tty4 ttyp9
ptypd tty40 ttypa
ptype tty41 ttypb
ptypf tty42 ttypc
random tty43 ttypd
rtc0 tty44 ttype
shm tty45 ttypf
snd tty46 urandom
tty tty47 usbmon0
tty0 tty48 vcs
tty1 tty49 vcs1
tty10 tty5 vcsa
tty11 tty50 vcsa1
tty12 tty51 zero
lsblk 不存在。
如何做永久存储?
经过长时间的研究,我发现:
“请注意,我们必须使用 -sd 而不是 -sda,因为 vexpress 内核不支持 PCI SCSI 硬盘”来自 buildroot vexpress-a9 usage
我使用带有 arm linux 内核的 QEMU。当来宾重新启动时,新文件夹和文件等更改将消失。我找不到使它们永久化的方法。 这些是文件:
-r-xr-xr-x 1 root root 197120 Ağu 14 17:45 disk.img
-rwxrwxrwx 1 root root 57424384 Ağu 14 13:28 rootfs.cpio
-rwxrwxrwx 1 root root 62914560 Ağu 14 13:28 rootfs.ext2
-rwxrwxrwx 1 root root 11863 Ağu 14 13:28 vexpress-v2p-ca9.dtb
-rwxrwxrwx 1 root root 29247264 Ağu 14 13:28 zImage
这是QEMU的运行:
C:\Program Files\qemu>qemu-system-arm -M vexpress-a9 -kernel zImage -serial COM1 --nographic -hda disk.img
这是客人df调用的结果
Filesystem 1K-blocks Used Available Use% Mounted on
devtmpfs 34324 0 34324 0% /dev
tmpfs 62460 0 62460 0% /dev/shm
tmpfs 62460 24 62436 0% /tmp
tmpfs 62460 24 62436 0% /run
qemu 区块信息:
(qemu) info block
info block
none0 (#block133): D:/images/disk.img (raw)
Removable device: not locked, tray closed
Cache mode: writeback
none2: [not inserted]
Removable device: not locked, tray closed
floppy0: [not inserted]
Removable device: not locked, tray closed
sd0: [not inserted]
Removable device: not locked, tray closed
开发者名单:
ls /dev
audio tty13 tty52
console tty14 tty53
cpu_dma_latency tty15 tty54
dsp tty16 tty55
full tty17 tty56
input tty18 tty57
kmem tty19 tty58
kmsg tty2 tty59
log tty20 tty6
mem tty21 tty60
mixer tty22 tty61
network_latency tty23 tty62
network_throughput tty24 tty63
null tty25 tty7
psaux tty26 tty8
ptmx tty27 tty9
pts tty28 ttyAMA0
ptyp0 tty29 ttyAMA1
ptyp1 tty3 ttyAMA2
ptyp2 tty30 ttyAMA3
ptyp3 tty31 ttyp0
ptyp4 tty32 ttyp1
ptyp5 tty33 ttyp2
ptyp6 tty34 ttyp3
ptyp7 tty35 ttyp4
ptyp8 tty36 ttyp5
ptyp9 tty37 ttyp6
ptypa tty38 ttyp7
ptypb tty39 ttyp8
ptypc tty4 ttyp9
ptypd tty40 ttypa
ptype tty41 ttypb
ptypf tty42 ttypc
random tty43 ttypd
rtc0 tty44 ttype
shm tty45 ttypf
snd tty46 urandom
tty tty47 usbmon0
tty0 tty48 vcs
tty1 tty49 vcs1
tty10 tty5 vcsa
tty11 tty50 vcsa1
tty12 tty51 zero
lsblk 不存在。
如何做永久存储?
经过长时间的研究,我发现: “请注意,我们必须使用 -sd 而不是 -sda,因为 vexpress 内核不支持 PCI SCSI 硬盘”来自 buildroot vexpress-a9 usage