设备 Boot Start End Blocks Id System /dev/sda1 * 2048 2099199 1048576 83 Linux /dev/sda2 2099200 96468991 47184896 83 Linux /dev/sda3 96468992 104857599 4194304 82 Linux swap / Solaris [root@hadoop100 ~]#
设备 Boot StartEnd Blocks Id System /dev/sda1 * 20482099199104857683 Linux /dev/sda2 2099200964689914718489683 Linux /dev/sda3 96468992104857599419430482 Linux swap / Solaris
设备 Boot StartEnd Blocks Id System /dev/sda1 * 20482099199104857683 Linux /dev/sda2 2099200964689914718489683 Linux /dev/sda3 96468992104857599419430482 Linux swap / Solaris
# 重启 # [root@hadoop100 ~]# reboot PolicyKit daemon disconnected from the bus. We are no longer a registered authentication agent. Connection to 192.168.10.100 closed by remote host. Connection to 192.168.10.100 closed.
# 重新连接系统 # # PS C:\Users\Administrator> ssh root@192.168.10.100 # root@192.168.10.100's password: # Last login: Mon May 22 19:02:16 2023 from 192.168.10.1
# 查看设备挂载情况 # [root@hadoop100 ~]# lsblk -l NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0050G 0 disk sda1 8:101G 0 part /boot sda2 8:2045G 0 part / sda3 8:304G 0 part [SWAP] sdb 8:16010G 0 disk sr0 11:011024M 0 rom
设备 Boot StartEnd Blocks Id System /dev/sda1 * 20482099199104857683 Linux /dev/sda2 2099200964689914718489683 Linux /dev/sda3 96468992104857599419430482 Linux swap / Solaris
# Device does not contain a recognized partition table # 使用磁盘标识符 0x3ab7f970 创建新的 DOS 磁盘标签。
# 命令(输入 m 获取帮助):m # 命令操作 # a toggle a bootable flag # b edit bsd disklabel # c toggle the dos compatibility flag # d delete a partition # g create a new empty GPT partition table # G create an IRIX (SGI) partition table # l list known partition types # m print this menu # n add a new partition # o create a new empty DOS partition table # p print the partition table # q quit without saving changes # s create a new empty Sun disklabel # t change a partition's system id # u change display/entry units # v verify the partition table # w write table to disk and exit # x extra functionality (experts only)
# 命令(输入 m 获取帮助):n # Partition type: # p primary (0 primary, 0 extended, 4 free) # e extended # Select (default p): p # 分区号 (1-4,默认 1): # 起始 扇区 (2048-20971519,默认为 2048): # 将使用默认值 2048 # Last 扇区, +扇区 or +size{K,M,G} (2048-20971519,默认为 20971519): # 将使用默认值 20971519 # 分区 1 已设置为 Linux 类型,大小设为 10 GiB
设备 Boot StartEnd Blocks Id System /dev/sda1 * 20482099199104857683 Linux /dev/sda2 2099200964689914718489683 Linux /dev/sda3 96468992104857599419430482 Linux swap / Solaris
设备 Boot StartEnd Blocks Id System /dev/sda1 * 20482099199104857683 Linux /dev/sda2 2099200964689914718489683 Linux /dev/sda3 96468992104857599419430482 Linux swap / Solaris