<span id='y9qcl'></span>
    1. <i id='y9qcl'></i>

    2. <tr id='y9qcl'><strong id='y9qcl'></strong><small id='y9qcl'></small><button id='y9qcl'></button><li id='y9qcl'><noscript id='y9qcl'><big id='y9qcl'></big><dt id='y9qcl'></dt></noscript></li></tr><ol id='y9qcl'><table id='y9qcl'><blockquote id='y9qcl'><tbody id='y9qcl'></tbody></blockquote></table></ol><u id='y9qcl'></u><kbd id='y9qcl'><kbd id='y9qcl'></kbd></kbd>
    3. <fieldset id='y9qcl'></fieldset><i id='y9qcl'><div id='y9qcl'><ins id='y9qcl'></ins></div></i>

        <acronym id='y9qcl'><em id='y9qcl'></em><td id='y9qcl'><div id='y9qcl'></div></td></acronym><address id='y9qcl'><big id='y9qcl'><big id='y9qcl'></big><legend id='y9qcl'></legend></big></address>
        <dl id='y9qcl'></dl>
            <ins id='y9qcl'></ins>

            <code id='y9qcl'><strong id='y9qcl'></strong></code>

            给虚拟机添加新的磁盘分区

            • 时间:
            • 浏览:4
            • 来源:124软件资讯网

              简朴记载一下给虚拟机添加新的磁盘分区的步骤  。

              首先关闭虚拟机  ,然后选择设置 ,添加硬盘  ,建立一个虚拟磁盘  ,选择SCSI类型  ,设置磁盘的容量  ,并指定生存的操作系统文件名称  。

              下面就可以启动虚拟机  。

              上岸到虚拟机  ,切换到root用户:

              [root@yangtk ~]# df -k

              Filesystem 1K-blocks Used Available Use% Mounted on

              /dev/mapper/VolGroup00-LogVol00

              3142384 2963560 16624 100% /

              /dev/sda1 101086 10876 84991 12% /boot

              /dev/mapper/VolGroup00-LogVol03

              8919192 6665924 1792880 79% /data

              tmpfs 257800 0 257800 0% /dev/shm

              /dev/mapper/VolGroup00-LogVol02

              1015704 34452 928824 4% /tmp

              [root@yangtk disk]# cd /dev/disk/by-path

              [root@yangtk by-path]# ls -l

              total 0

              lrwxrwxrwx 1 root root 9 Oct 21 06:00 pci-0000:00:07.1-ide-0:0 -> ../../hdc lrwxrwxrwx 1 root root 9 Oct 21 06:00 pci-0000:00:10.0-scsi-0:0:0:0 -> ../../sda lrwxrwxrwx 1 root root 10 Oct 21 06:00 pci-0000:00:10.0-scsi-0:0:0:0-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Oct 21 06:00 pci-0000:00:10.0-scsi-0:0:0:0-part2 -> ../../sda2 lrwxrwxrwx 1 root root 9 Oct 21 06:00 pci-0000:00:10.0-scsi-0:0:1:0 -> ../../sdb

              [root@yangtk by-path]# fdisk /dev/sdb -l

              Disk /dev/sdb: 2147 MB, 2147483648 bytes 255 heads, 63 sectors/track, 261 cylinders

              Units = cylinders of 16065 * 512 = 8225280 bytes

              Disk /dev/sdb doesn't contain a valid partition table

              [root@yangtk by-path]# fdisk /dev/sdb (举行分区)

              Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable.

              Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

              Command (m for help): n

              Command action

              e extended

              p primary partition (1-4)

              p

              Partition number (1-4): 1

              First cylinder (1-261, default 1):

              Using default value 1

              Last cylinder or +size or +sizeM or +sizeK (1-261, default 261):

              Using default value 261

              Command (m for help): t

              Selected partition 1

              Hex code (type L to list codes): 8e

              Changed system type of partition 1 to 8e (Linux LVM)

              123下一页