Use "/mnt/image" instead of "/mnt" to mount

In the image guide, it mkdir of /mnt/image without any use of it.
Mount the device to it.

Change-Id: I1f8f33acfb850d2e9baf412ce6453521f0783f5a
This commit is contained in:
Einst Crazy 2015-11-18 20:37:42 +08:00
parent f9dd03873e
commit 4a139d0714

View File

@ -330,13 +330,14 @@ To mount the second partition, as root:
.. code-block:: console .. code-block:: console
# mkdir /mnt/image # mkdir /mnt/image
# mount /dev/mapper/loop0p2 /mnt # mount /dev/mapper/loop0p2 /mnt/image
Once you are done, to clean up: Once you are done, to clean up:
.. code-block:: console .. code-block:: console
# umount /mnt # umount /mnt/image
# rmdir /mnt/image
# kpartx -d /dev/loop0 # kpartx -d /dev/loop0
# losetup -d /dev/loop0 # losetup -d /dev/loop0
@ -418,13 +419,14 @@ they can be mounted directly:
.. code-block:: console .. code-block:: console
# mkdir /mnt/image # mkdir /mnt/image
# mount /dev/nbd3p2 /mnt # mount /dev/nbd3p2 /mnt/image
When you are done, clean up: When you are done, clean up:
.. code-block:: console .. code-block:: console
# umount /mnt # umount /mnt/image
# rmdir /mnt/image
# qemu-nbd -d /dev/nbd0 # qemu-nbd -d /dev/nbd0
Mount a qcow2 image (with LVM) Mount a qcow2 image (with LVM)