Bo's Oracle Station

查看: 2258|回复: 0

课程第16次

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2019-5-16 20:37:18 | 显示全部楼层 |阅读模式
2019-05-16

BIOS+MBR的硬盘是不可能有第16个分区的:
  1. Last login: Thu May 16 08:31:47 2019 from 192.168.0.165
  2. [root@station60 ~]# cat /proc/partitions
  3. major minor  #blocks  name

  4.    8        0   20971520 sda
  5.    8        1    1048576 sda1
  6.    8        2   19921920 sda2
  7.    8       16    1048576 sdb
  8.   11        0    4391936 sr0
  9. 253        0   17821696 dm-0
  10. 253        1    2097152 dm-1
  11. [root@station60 ~]# ls -l /dev/sdb
  12. brw-rw----. 1 root disk 8, 16 May 16 08:34 /dev/sdb
复制代码
  1. [root@station60 ~]# fdisk /dev/sdb
  2. Welcome to fdisk (util-linux 2.23.2).

  3. Changes will remain in memory only, until you decide to write them.
  4. Be careful before using the write command.

  5. Device does not contain a recognized partition table
  6. Building a new DOS disklabel with disk identifier 0x01a7270d.

  7. Command (m for help): n
  8. Partition type:
  9.    p   primary (0 primary, 0 extended, 4 free)
  10.    e   extended
  11. Select (default p): e
  12. Partition number (1-4, default 1): 3
  13. First sector (2048-2097151, default 2048):
  14. Using default value 2048
  15. Last sector, +sectors or +size{K,M,G} (2048-2097151, default 2097151):
  16. Using default value 2097151
  17. Partition 3 of type Extended and of size 1023 MiB is set

  18. Command (m for help): p

  19. Disk /dev/sdb: 1073 MB, 1073741824 bytes, 2097152 sectors
  20. Units = sectors of 1 * 512 = 512 bytes
  21. Sector size (logical/physical): 512 bytes / 512 bytes
  22. I/O size (minimum/optimal): 512 bytes / 512 bytes
  23. Disk label type: dos
  24. Disk identifier: 0x01a7270d

  25.    Device Boot      Start         End      Blocks   Id  System
  26. /dev/sdb3            2048     2097151     1047552    5  Extended

  27. Command (m for help): w
  28. The partition table has been altered!

  29. Calling ioctl() to re-read partition table.
  30. Syncing disks.
  31. [root@station60 ~]#
复制代码
  1. [root@station60 ~]# fuser  -mv /mnt
  2.                      USER        PID ACCESS COMMAND
  3. /mnt:                root     kernel mount /mnt
  4.                      root      16939 ..c.. bash
  5. [root@station60 ~]# umount  /mnt
  6. umount: /mnt: target is busy.
  7.         (In some cases useful info about processes that use
  8.          the device is found by lsof(8) or fuser(1))
  9. [root@station60 ~]# fuser -kmv /mnt
  10.                      USER        PID ACCESS COMMAND
  11. /mnt:                root     kernel mount /mnt
  12.                      root      16939 ..c.. bash
  13. [root@station60 ~]# umount  /mnt
复制代码
目录的“硬链接”:

  1. #
  2. # /etc/fstab
  3. # Created by anaconda on Tue Apr  2 17:40:59 2019
  4. #
  5. # Accessible filesystems, by reference, are maintained under '/dev/disk'
  6. # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
  7. #
  8. /dev/mapper/rhel-root   /                       xfs     defaults        0 0
  9. UUID=002844e7-703a-4d59-a501-4911b5508dcc /boot                   xfs     defaults        0 0
  10. /dev/mapper/rhel-swap   swap                    swap    defaults        0 0
  11. UUID="a52e60db-23e4-447c-b7e8-2250eace2e1a"     swap     swap        defaults 0  0
  12. tmpfs    /dev/shm        tmpfs    defaults,size=1500M   0  0
  13. LABEL=yourdata           /mnt                   ext4       defaults   0  0

  14. /root/Videos            /Videos2               bind       bind  0 0
  15. ~
复制代码



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-5-7 17:18 , Processed in 0.149839 second(s), 24 queries .

快速回复 返回顶部 返回列表