20250607给Ubuntu20.04.6系统增加一片14TB的HDD机械硬盘

发布于:2025-06-08 ⋅ 阅读:(18) ⋅ 点赞:(0)

rootroot@rootroot-X99-Turbo:~$ ll
rootroot@rootroot-X99-Turbo:~$ sudo fdisk -l
rootroot@rootroot-X99-Turbo:~$ sudo fdisk /dev/sda
Command (m for help): m
Command (m for help): n
Partition number (1-128, default 1): 1
Do you want to remove the signature? [Y]es/[N]o: Y
Command (m for help): p
Command (m for help): w
rootroot@rootroot-X99-Turbo:~$ sudo mkfs.ext4 /dev/sda1
rootroot@rootroot-X99-Turbo:~$ sudo mkdir -p ~/14TB
rootroot@rootroot-X99-Turbo:~$ ll 14TB/
rootroot@rootroot-X99-Turbo:~$ sudo rm 14TB/ -rf
rootroot@rootroot-X99-Turbo:~$ mkdir -p 14TB
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ sudo blkid /dev/sda1
/dev/sda1: UUID="97e891c6-41a7-493a-9da0-ea12afde46a3" TYPE="ext4" PARTUUID="2a589c79-e544-2240-8152-5a4212ca4ba0"
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ cd /etc/
rootroot@rootroot-X99-Turbo:/etc$ ll
rootroot@rootroot-X99-Turbo:/etc$ cat fstab 
rootroot@rootroot-X99-Turbo:/etc$ ll fstab
rootroot@rootroot-X99-Turbo:/etc$ sudo chmod 777 fstab
rootroot@rootroot-X99-Turbo:/etc$ sudo cp fstab fstab.bak1
rootroot@rootroot-X99-Turbo:/etc$ sudo vi fstab
rootroot@rootroot-X99-Turbo:/etc$ sudo mount -a
mount: /home/rootroot/14TB: special device 97e891c6-41a7-493a-9da0-ea12afde46a3 does not exist.
rootroot@rootroot-X99-Turbo:/etc$ 
rootroot@rootroot-X99-Turbo:/etc$ sudo mount -a
rootroot@rootroot-X99-Turbo:/etc$ 
rootroot@rootroot-X99-Turbo:/etc$ df -h
/dev/sda1        13T   28K   12T   1% /home/rootroot/14TB

【重启之后发现需要修改权限^_】
rootroot@rootroot-X99-Turbo:~$ sudo chmod 777 14TB
rootroot@rootroot-X99-Turbo:~$ sudo chown rootroot.rootroot 777 14TB


20250607给Ubuntu20.04.6系统增加一片14TB的HDD机械硬盘
2025/6/7 10:27


缘起:服务器使用微星X99主板,配置3.2TB的SSD,跑WIN10+Ubuntu20.04.6双系统。
由于需要编译Android13,你懂得,SSD很快满了。
成本的考虑/原因,上二手HDD机械硬盘。


简略步骤:
[BEGIN] 2025/6/5 17:02:07
rootroot@rootroot-X99-Turbo:~$ ll
rootroot@rootroot-X99-Turbo:~$ sudo fdisk -l
Disk /dev/sda: 12.75 TiB, 14000519643136 bytes, 27344764928 sectors
Disk model: WDC  WUH721414AL
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: E28A55D2-CFDB-41FB-B08B-68CF6CF89729
sda           8:0    0  12.8T  0 disk 
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ sudo fdisk /dev/sda
Command (m for help): m
Command (m for help): n
Partition number (1-128, default 1): 1
First sector (34-27344764894, default 2048): 
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-27344764894, default 27344764894): 

Created a new partition 1 of type 'Linux filesystem' and of size 12.8 TiB.
Partition #1 contains a ntfs signature.

Do you want to remove the signature? [Y]es/[N]o: Y

The signature will be removed by a write command.

Command (m for help): p
Command (m for help): w
rootroot@rootroot-X99-Turbo:~$ sudo mkfs.ext4 /dev/sda1
rootroot@rootroot-X99-Turbo:~$ sudo mkdir -p ~/14TB
rootroot@rootroot-X99-Turbo:~$ ll 14TB/
rootroot@rootroot-X99-Turbo:~$ sudo rm 14TB/ -rf
rootroot@rootroot-X99-Turbo:~$ mkdir -p 14TB
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ sudo blkid /dev/sda1
/dev/sda1: UUID="97e891c6-41a7-493a-9da0-ea12afde46a3" TYPE="ext4" PARTUUID="2a589c79-e544-2240-8152-5a4212ca4ba0"
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ cd /etc/
rootroot@rootroot-X99-Turbo:/etc$ 
rootroot@rootroot-X99-Turbo:/etc$ ll
-rw-rw-r--   1 root root    1008 2月  24 18:40 fstab
rootroot@rootroot-X99-Turbo:/etc$ 
rootroot@rootroot-X99-Turbo:/etc$ cat fstab 
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/nvme0n1p7 during installation
UUID=043c6153-1ea4-447e-ab21-c3a147b6c375 /               ext4    errors=remount-ro 0       1
# /boot was on /dev/nvme0n1p4 during installation
UUID=24b4644d-ec3d-4e91-87a8-150f85f8c68d /boot           ext4    defaults        0       2
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=A6AB-846A  /boot/efi       vfat    umask=0077      0       1
# /home was on /dev/nvme0n1p6 during installation
UUID=14b33136-dcec-4cab-8ebb-5134785d9e5d /home           ext4    defaults        0       2
# swap was on /dev/nvme0n1p5 during installation
UUID=c9ca1554-6c6f-4dd8-b932-50bfa7267e45 none            swap    sw              0       0
rootroot@rootroot-X99-Turbo:/etc$ 
rootroot@rootroot-X99-Turbo:/etc$ ll fstab
-rw-rw-r-- 1 root root 1008 2月  24 18:40 fstab
rootroot@rootroot-X99-Turbo:/etc$ 
rootroot@rootroot-X99-Turbo:/etc$ sudo chmod 777 fstab
rootroot@rootroot-X99-Turbo:/etc$ sudo cp fstab fstab.bak1
rootroot@rootroot-X99-Turbo:/etc$ sudo vi fstab
rootroot@rootroot-X99-Turbo:/etc$ sudo vi fstab
rootroot@rootroot-X99-Turbo:/etc$ sudo vi fstab
rootroot@rootroot-X99-Turbo:/etc$ sudo vi fstab
rootroot@rootroot-X99-Turbo:/etc$ 
rootroot@rootroot-X99-Turbo:/etc$ 
rootroot@rootroot-X99-Turbo:/etc$ sudo mount -a
mount: /home/rootroot/14TB: special device 97e891c6-41a7-493a-9da0-ea12afde46a3 does not exist.
rootroot@rootroot-X99-Turbo:/etc$ 
rootroot@rootroot-X99-Turbo:/etc$ sudo mount -a
rootroot@rootroot-X99-Turbo:/etc$ 
rootroot@rootroot-X99-Turbo:/etc$ df -h
/dev/sda1        13T   28K   12T   1% /home/rootroot/14TB

rootroot@rootroot-X99-Turbo:~$ sudo chmod 777 14TB
rootroot@rootroot-X99-Turbo:~$ sudo chown rootroot.rootroot 777 14TB


https://chat.deepseek.com/a/chat/s/854e5086-0dcd-4cd6-adc9-8df805f8bcf3
Ubuntu 20.04挂载14TB硬盘教程
ubuntu20.04如何新挂在一个14TB的HDD机械硬盘
在 Ubuntu 20.04 上挂载一个新的 14TB 机械硬盘,需要经过以下步骤:

1. 确认硬盘是否被系统识别
首先,检查硬盘是否已被系统检测到:

bash
sudo fdisk -l
或使用 lsblk:

bash
lsblk
找到目标硬盘(通常为 /dev/sdX,如 /dev/sdb 或 /dev/sdc,具体根据现有硬盘情况而定)。

2. 分区(可选但推荐)
如果硬盘是全新的,建议先分区。以 /dev/sdb 为例:

bash
sudo fdisk /dev/sdb
在 fdisk 交互界面中:

输入 n 创建新分区。

选择分区类型(默认主分区 p)。

设置分区号(默认 1)。

起始和结束扇区直接按回车使用默认值(占用全部空间)。

输入 w 保存并退出。

注意:如果硬盘大于 2TB,需使用 GPT 分区表。在 fdisk 中输入 g 创建 GPT 表,再继续分区。

3. 格式化分区
推荐使用 ext4 文件系统(适合大容量硬盘):

bash
sudo mkfs.ext4 /dev/sdb1
如果硬盘需要更高性能或日志功能,可以添加 -m 0 减少保留空间(默认 5%):

bash
sudo mkfs.ext4 -m 0 /dev/sdb1
4. 创建挂载点
选择一个目录作为挂载点(例如 /mnt/data):

bash
sudo mkdir -p /mnt/data
5. 临时挂载硬盘
bash
sudo mount /dev/sdb1 /mnt/data
验证挂载是否成功:

bash
df -h
应能看到 /dev/sdb1 挂载到 /mnt/data。

6. 设置开机自动挂载
方法 1:通过 /etc/fstab 配置
获取硬盘的 UUID:

bash
sudo blkid /dev/sdb1
输出类似:

text
/dev/sdb1: UUID="1234abcd-5678-efgh..." TYPE="ext4"
编辑 /etc/fstab:

bash
sudo nano /etc/fstab
添加以下行(替换 UUID 和挂载点):

text
UUID=1234abcd-5678-efgh... /mnt/data ext4 defaults 0 2
测试配置是否正确:

bash
sudo mount -a
若无报错,则配置成功。

方法 2:通过 disks 工具(GUI)
打开 Disks 应用(gnome-disks)。

选择目标硬盘和分区,点击齿轮图标 → Edit Mount Options。

启用自动挂载,设置挂载点,然后保存。

7. 权限设置(可选)
如果需要特定用户访问权限,修改挂载点所有者:

bash
sudo chown -R username:username /mnt/data
替换 username 为你的用户名。

注意事项
文件系统选择:对于 14TB 硬盘,ext4 或 XFS(适合超大文件)是推荐选择。

硬盘休眠:机械硬盘可能默认启用休眠,若需禁用,可添加 nobootwait 或修改 hdparm 设置。

数据安全:定期备份重要数据,大容量硬盘故障恢复成本较高。

完成以上步骤后,14TB 硬盘即可在 Ubuntu 20.04 上正常使用。


完整的LOG:
[BEGIN] 2025/6/5 17:02:07
rootroot@rootroot-X99-Turbo:~$ ll
total 35397940
drwxr-xr-x  51 rootroot rootroot        4096 6月   5 17:01  ./
drwxr-xr-x   5 root     root            4096 2月  25 09:37  ../
drwxrwxr-x  11 rootroot rootroot        4096 4月  25 17:04  01临时了friendlywrt-h3/
drwxrwxr-x  12 rootroot rootroot        4096 5月   6 11:26  02临时了-单线程编译通过了friendlywrt-h3/
drwxrwxrwx   2 rootroot rootroot        4096 5月   7 11:52  07_源代码/
drwxrwxrwx   3 rootroot rootroot        4096 5月  30 19:07  20241224的神州数码RK3566/
drwxrwxr-x  16 rootroot rootroot        4096 5月  12 11:44  61临时了sd-fuse_h3/
drwxrwxr-x   9 rootroot rootroot        4096 5月  12 17:37  62临时了sd-fuse_h3/
drwxrwxr-x   8 rootroot rootroot        4096 5月  17 16:28  63临时了sd-fuse_h3/
drwxrwxr-x  13 rootroot rootroot        4096 5月  20 09:27  64临时了sd-fuse_h3/
drwxrwxrwx  36 rootroot rootroot        4096 5月  26 15:31  Android13.0/
-rwxrwxrwx   1 rootroot rootroot 36247187308 6月   2 09:56  Android13.0地面站.tgz*
-rw-r--r--   1 rootroot rootroot        3771 4月  25 10:29  bak1.bashrc
-rw-------   1 rootroot rootroot       27254 6月   5 17:01  .bash_history
-rw-r--r--   1 rootroot rootroot         220 2月  24 18:43  .bash_logout
-rw-r--r--   1 rootroot rootroot        3852 4月  25 10:30  .bashrc
drwxrwxr-x   4 rootroot rootroot        4096 5月  13 16:31  BOOT/
drwxr-xr-x  20 rootroot rootroot        4096 5月  30 10:23  .buildroot-ccache/
drwx------   2 rootroot rootroot        4096 4月  23 13:45 'buildroot linux系统的cpu频率无法查看和修改呢?'/
drwx------ 137 rootroot rootroot        4096 5月  27 11:08  .cache/
drwxr-xr-x   3 rootroot rootroot        4096 4月  25 15:38  .cmake/
drwx------  20 rootroot rootroot        4096 5月  22 09:13  .config/
drwxr-xr-x   2 rootroot rootroot        4096 2月  24 18:55  Desktop/
drwxr-xr-x   2 rootroot rootroot        4096 2月  24 18:55  Documents/
drwxr-xr-x   2 rootroot rootroot        4096 5月  19 17:18  Downloads/
drwx------   3 rootroot rootroot        4096 4月  29 20:06  .gnupg/
drwxrwxr-x   2 rootroot rootroot        4096 4月  25 17:00  h3/
drwxrwxr-x   5 rootroot rootroot        4096 6月   2 09:53  hailuo_temp/
drwxr-xr-x   5 rootroot rootroot        4096 3月   7 09:39  .local/
drwx------   2 rootroot rootroot        4096 4月  25 17:29  LOG/
drwx------   4 rootroot rootroot        4096 2月  27 17:35  .mozilla/
drwxr-xr-x   2 rootroot rootroot        4096 2月  24 18:55  Music/
drwx------   3 rootroot rootroot        4096 3月   7 11:04  .nv/
drwxr-xr-x   2 rootroot rootroot       20480 6月   5 15:36  Pictures/
drwx------   3 rootroot rootroot        4096 3月  12 18:47  .pki/
-rw-r--r--   1 rootroot rootroot         807 2月  24 18:43  .profile
drwxr-xr-x   2 rootroot rootroot        4096 2月  24 18:55  Public/
-rw-------   1 rootroot rootroot           7 3月   5 10:32  .python_history
drwxrwxr-x   3 rootroot rootroot        4096 5月  20 14:41  quectel-cm/
drwxrwxr-x   3 rootroot rootroot        4096 5月   6 09:31  r6s/
-rw-r--r--   1 rootroot rootroot           2 5月  30 18:46  .repo_.gitconfig.json
drwxr-xr-x  35 rootroot rootroot        4096 4月  10 09:23  RK3566_RK3568_Linux5.10_V1.2.0/
drwx------  19 rootroot rootroot        4096 5月   9 14:44  RK3566的吊舱-IIMG/
drwx------   2 rootroot rootroot        4096 4月  24 18:36  RK3588+4800w/
drwxrwxr-x  12 rootroot rootroot        4096 5月  21 09:07  sd-fuse_h3/
drwx------   3 rootroot rootroot        4096 4月  24 17:09  snap/
drwxrwxrwx  16 rootroot rootroot        4096 5月   9 14:43  source/
drwx------   2 rootroot rootroot        4096 5月  10 16:40  .ssh/
-rw-r--r--   1 rootroot rootroot           0 2月  25 09:05  .sudo_as_admin_successful
drwxrwxr-x   2 rootroot rootroot        4096 3月  12 18:47 'Sunlogin Files'/
drwxrwxr-x  34 rootroot rootroot        4096 5月  30 18:52  tao_android13/
drwxr-xr-x   2 rootroot rootroot        4096 2月  24 18:55  Templates/
drwx------   3 rootroot rootroot        4096 6月   2 09:07  tgz/
drwx------   6 rootroot rootroot        4096 4月   7 12:05  .thunderbird/
-rwx------   1 rootroot rootroot        1361 6月   4 17:13  uboot_longpress_power_on.patch*
drwxrwxr-x  13 rootroot rootroot        4096 5月  30 09:41  version/
drwxr-xr-x   2 rootroot rootroot        4096 2月  24 18:55  Videos/
drwxr-xr-x   2 rootroot rootroot        4096 4月  30 19:06  .vmware/
drwxrwxr-x   4 rootroot rootroot        4096 4月  30 10:27  vmware/
-rw-r--r--   1 rootroot rootroot         221 5月  20 14:36  .wget-hsts
drwxrwxr-x   8 rootroot rootroot        4096 3月   7 11:53  whisper/
-rw-------   1 rootroot rootroot         256 6月   5 17:01  .Xauthority
drwx------   2 rootroot rootroot        4096 3月  22 14:59  摄像头/
-rwx------   1 rootroot rootroot         921 6月   2 11:22  说明.txt*
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ sudo fdisk -l
[sudo] password for rootroot: 
Disk /dev/loop0: 4 KiB, 4096 bytes, 8 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 63.79 MiB, 66867200 bytes, 130600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop2: 44.46 MiB, 46604288 bytes, 91024 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop3: 63.78 MiB, 66863104 bytes, 130592 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop4: 50.92 MiB, 53366784 bytes, 104232 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop5: 73.91 MiB, 77479936 bytes, 151328 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop6: 346.34 MiB, 363151360 bytes, 709280 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop7: 73.91 MiB, 77475840 bytes, 151320 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 12.75 TiB, 14000519643136 bytes, 27344764928 sectors
Disk model: WDC  WUH721414AL
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: E28A55D2-CFDB-41FB-B08B-68CF6CF89729


Disk /dev/nvme0n1: 2.93 TiB, 3200631791616 bytes, 6251233968 sectors
Disk model: HUSPR3232AHP301                         
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 730EC5A2-F8D4-46E5-A829-94E71A13BA0A

Device              Start        End    Sectors   Size Type
/dev/nvme0n1p1       2048     206847     204800   100M EFI System
/dev/nvme0n1p2     206848     239615      32768    16M Microsoft reserved
/dev/nvme0n1p3     239616  724693244  724453629 345.5G Microsoft basic data
/dev/nvme0n1p4  724695040  725843967    1148928   561M Linux filesystem
/dev/nvme0n1p5  725843968  762953727   37109760  17.7G Linux swap
/dev/nvme0n1p6  762953728 6134044671 5371090944   2.5T Linux filesystem
/dev/nvme0n1p7 6134044672 6251038719  116994048  55.8G Linux filesystem


Disk /dev/loop12: 45.95 MiB, 48160768 bytes, 94064 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop10: 91.7 MiB, 96141312 bytes, 187776 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop8: 349.71 MiB, 366682112 bytes, 716176 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop11: 12.2 MiB, 12791808 bytes, 24984 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop9: 516.1 MiB, 541073408 bytes, 1056784 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0         7:0    0     4K  1 loop /snap/bare/5
loop1         7:1    0  63.8M  1 loop /snap/core20/2571
loop2         7:2    0  44.5M  1 loop /snap/snapd/23771
loop3         7:3    0  63.8M  1 loop /snap/core20/2582
loop4         7:4    0  50.9M  1 loop /snap/snapd/24505
loop5         7:5    0  73.9M  1 loop /snap/core22/1963
loop6         7:6    0 346.3M  1 loop /snap/gnome-3-38-2004/119
loop7         7:7    0  73.9M  1 loop /snap/core22/1981
loop8         7:8    0 349.7M  1 loop /snap/gnome-3-38-2004/143
loop9         7:9    0   516M  1 loop /snap/gnome-42-2204/202
loop10        7:10   0  91.7M  1 loop /snap/gtk-common-themes/1535
loop11        7:11   0  12.2M  1 loop /snap/snap-store/1216
loop12        7:12   0    46M  1 loop /snap/snap-store/638
sda           8:0    0  12.8T  0 disk 
nvme0n1     259:0    0   2.9T  0 disk 
├─nvme0n1p1 259:1    0   100M  0 part /boot/efi
├─nvme0n1p2 259:2    0    16M  0 part 
├─nvme0n1p3 259:3    0 345.5G  0 part 
├─nvme0n1p4 259:4    0   561M  0 part /boot
├─nvme0n1p5 259:5    0  17.7G  0 part [SWAP]
├─nvme0n1p6 259:6    0   2.5T  0 part /home
└─nvme0n1p7 259:7    0  55.8G  0 part /
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ sudo fdisk /dev/sda

Welcome to fdisk (util-linux 2.34).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): m

Help:

  GPT
   M   enter protective/hybrid MBR

  Generic
   d   delete a partition
   F   list free unpartitioned space
   l   list known partition types
   n   add a new partition
   p   print the partition table
   t   change a partition type
   v   verify the partition table
   i   print information about a partition

  Misc
   m   print this menu
   x   extra functionality (experts only)

  Script
   I   load disk layout from sfdisk script file
   O   dump disk layout to sfdisk script file

  Save & Exit
   w   write table to disk and exit
   q   quit without saving changes

  Create a new label
   g   create a new empty GPT partition table
   G   create a new empty SGI (IRIX) partition table
   o   create a new empty DOS partition table
   s   create a new empty Sun partition table


Command (m for help): n
Partition number (1-128, default 1): 1
First sector (34-27344764894, default 2048): 
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-27344764894, default 27344764894): 

Created a new partition 1 of type 'Linux filesystem' and of size 12.8 TiB.
Partition #1 contains a ntfs signature.

Do you want to remove the signature? [Y]es/[N]o: Y

The signature will be removed by a write command.

Command (m for help): p
Disk /dev/sda: 12.75 TiB, 14000519643136 bytes, 27344764928 sectors
Disk model: WDC  WUH721414AL
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: E28A55D2-CFDB-41FB-B08B-68CF6CF89729

Device     Start         End     Sectors  Size Type
/dev/sda1   2048 27344764894 27344762847 12.8T Linux filesystem

Filesystem/RAID signature on partition 1 will be wiped.

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ sudo mkfs.ext4 /dev/sda1
mke2fs 1.45.5 (07-Jan-2020)
Creating filesystem with 3418095355 4k blocks and 427261952 inodes
Filesystem UUID: 97e891c6-41a7-493a-9da0-ea12afde46a3
Superblock backups stored on blocks: 
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
    4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 
    102400000, 214990848, 512000000, 550731776, 644972544, 1934917632, 
    2560000000

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (262144 blocks): done
Writing superblocks and filesystem accounting information: done         

rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ sudo mkdir -p ~/14TB
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ ll 14TB/
total 8
drwxr-xr-x  2 root     root     4096 6月   5 17:11 ./
drwxr-xr-x 52 rootroot rootroot 4096 6月   5 17:11 ../
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ sudo rm 14TB/ -rf
rootroot@rootroot-X99-Turbo:~$ mkdir -p 14TB
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ sudo blkid /dev/sda1
/dev/sda1: UUID="97e891c6-41a7-493a-9da0-ea12afde46a3" TYPE="ext4" PARTUUID="2a589c79-e544-2240-8152-5a4212ca4ba0"
rootroot@rootroot-X99-Turbo:~$ 
rootroot@rootroot-X99-Turbo:~$ cd /etc/
rootroot@rootroot-X99-Turbo:/etc$ 
rootroot@rootroot-X99-Turbo:/etc$ ll
total 1252
drwxr-xr-x 148 root root   12288 6月   5 10:39 ./
drwxr-xr-x  20 root root    4096 2月  24 18:41 ../
drwxr-xr-x   3 root root    4096 3月  16  2023 acpi/
-rw-r--r--   1 root root    3028 3月  16  2023 adduser.conf
-rw-r--r--   1 root root      46 2月  25 09:21 adjtime
drwxr-xr-x   3 root root    4096 3月  16  2023 alsa/
drwxr-xr-x   2 root root   12288 5月   5 12:20 alternatives/
-rw-r--r--   1 root root     401 7月  17  2019 anacrontab
drwxr-xr-x   3 root root    4096 3月   7 09:46 apache2/
-rw-r--r--   1 root root     433 10月  2  2017 apg.conf
drwxr-xr-x   5 root root    4096 3月  16  2023 apm/
drwxr-xr-x   3 root root    4096 3月  16  2023 apparmor/
drwxr-xr-x   7 root root    4096 2月  25 18:09 apparmor.d/
drwxr-xr-x   5 root root    4096 6月   5 10:39 apport/
-rw-r--r--   1 root root     769 1月  19  2020 appstream.conf
drwxr-xr-x   7 root root    4096 6月   5 10:36 apt/
drwxr-xr-x   3 root root    4096 3月  16  2023 avahi/
-rw-r--r--   1 root root    2319 2月  25  2020 bash.bashrc
-rw-r--r--   1 root root      45 1月  26  2020 bash_completion
drwxr-xr-x   2 root root    4096 2月  25 18:11 bash_completion.d/
-rw-r--r--   1 root root     367 4月  15  2020 bindresvport.blacklist
drwxr-xr-x   2 root root    4096 4月  22  2020 binfmt.d/
drwxr-xr-x   2 root root    4096 3月  16  2023 bluetooth/
-rw-r-----   1 root root      33 3月  16  2023 brlapi.key
drwxr-xr-x   7 root root    4096 3月  16  2023 brltty/
-rw-r--r--   1 root root   26916 3月   4  2020 brltty.conf
drwxr-xr-x   3 root root    4096 3月  16  2023 ca-certificates/
-rw-r--r--   1 root root    6824 3月  16  2023 ca-certificates.conf
-rw-r--r--   1 root root    5713 3月  16  2023 ca-certificates.conf.dpkg-old
drwxr-xr-x   2 root root    4096 3月  16  2023 calendar/
drwxr-s---   2 root dip     4096 3月  16  2023 chatscripts/
drwxr-xr-x   2 root root    4096 2月  24 18:43 console-setup/
drwxr-xr-x   2 root root    4096 3月  16  2023 cracklib/
drwxr-xr-x   2 root root    4096 2月  24 18:48 cron.d/
drwxr-xr-x   2 root root    4096 2月  25 18:09 cron.daily/
drwxr-xr-x   2 root root    4096 3月  16  2023 cron.hourly/
drwxr-xr-x   2 root root    4096 3月  16  2023 cron.monthly/
-rw-r--r--   1 root root    1042 2月  14  2020 crontab
drwxr-xr-x   2 root root    4096 3月  16  2023 cron.weekly/
drwxr-xr-x   5 root lp      4096 6月   5 16:30 cups/
drwxr-xr-x   2 root root    4096 3月  16  2023 cupshelpers/
drwxr-xr-x   4 root root    4096 3月  16  2023 dbus-1/
drwxr-xr-x   4 root root    4096 3月  16  2023 dconf/
-rw-r--r--   1 root root    2969 8月   3  2019 debconf.conf
-rw-r--r--   1 root root      13 12月  5  2019 debian_version
drwxr-xr-x   3 root root    4096 6月   5 10:42 default/
-rw-r--r--   1 root root     604 9月  16  2018 deluser.conf
drwxr-xr-x   2 root root    4096 3月  16  2023 depmod.d/
drwxr-xr-x   4 root root    4096 3月  16  2023 dhcp/
drwxr-xr-x   2 root root    4096 2月  24 18:46 dictionaries-common/
drwxr-xr-x   4 root root    4096 2月  25 18:12 dpkg/
-rw-r--r--   1 root root     685 2月  14  2020 e2scrub.conf
drwxr-xr-x   3 root root    4096 3月  16  2023 emacs/
-rw-r--r--   1 root root     106 3月  16  2023 environment
drwxr-xr-x   2 root root    4096 3月  16  2023 environment.d/
-rw-r--r--   1 root root    1816 12月 27  2019 ethertypes
drwxr-xr-x   3 root root    4096 3月  16  2023 firefox/
drwxr-xr-x   4 root root    4096 3月  16  2023 fonts/
-rw-r--r--   1 root root      20 1月  13  2021 fprintd.conf
-rw-rw-r--   1 root root    1008 2月  24 18:40 fstab
-rw-r--r--   1 root root     280 6月  20  2014 fuse.conf
drwxr-xr-x   3 root root    4096 3月  16  2023 fwupd/
-rw-r--r--   1 root root    2584 2月   1  2020 gai.conf
-rw-r--r--   1 root root    4372 5月  18  2020 gamemode.ini
drwxr-xr-x   5 root root    4096 3月  12 18:32 gconf/
drwxr-xr-x   2 root root    4096 3月  16  2023 gdb/
drwxr-xr-x   8 root root    4096 2月  24 18:43 gdm3/
drwxr-xr-x   2 root root    4096 3月  16  2023 geoclue/
drwxr-xr-x   4 root root    4096 3月  16  2023 ghostscript/
drwxr-xr-x   3 root root    4096 3月  16  2023 glvnd/
drwxr-xr-x   2 root root    4096 3月  16  2023 gnome/
drwxr-xr-x   2 root root    4096 3月  16  2023 groff/
-rw-r--r--   1 root root    1147 2月  25 18:09 group
-rw-r--r--   1 root root    1135 2月  24 18:54 group-
drwxr-xr-x   2 root root    4096 2月  24 18:48 grub.d/
-rw-r-----   1 root shadow   961 2月  25 18:09 gshadow
-rw-r-----   1 root shadow   952 2月  24 18:54 gshadow-
drwxr-xr-x   3 root root    4096 3月  16  2023 gss/
drwxr-xr-x   2 root root    4096 3月  16  2023 gtk-2.0/
drwxr-xr-x   2 root root    4096 3月  16  2023 gtk-3.0/
-rw-r--r--   1 root root    5060 8月  21  2019 hdparm.conf
-rw-r--r--   1 root root      92 12月  5  2019 host.conf
-rw-r--r--   1 root root       4 3月  16  2023 hostid
-rw-r--r--   1 root root      19 2月  24 18:41 hostname
-rw-r--r--   1 root root     233 2月  24 18:41 hosts
-rw-r--r--   1 root root     411 3月  16  2023 hosts.allow
-rw-r--r--   1 root root     711 3月  16  2023 hosts.deny
drwxr-xr-x   2 root root    4096 3月  16  2023 hp/
drwxr-xr-x   3 root root    4096 3月  16  2023 ifplugd/
drwxr-xr-x   2 root root    4096 2月  25 18:15 ImageMagick-6/
drwxr-xr-x   2 root root    4096 2月  24 18:46 init/
drwxr-xr-x   2 root root    4096 4月  29 14:38 init.d/
drwxr-xr-x   5 root root    4096 5月   6 09:39 initramfs-tools/
-rw-r--r--   1 root root    1748 2月  25  2020 inputrc
drwxr-xr-x   2 root root    4096 3月  16  2023 insserv.conf.d/
drwxr-xr-x   4 root root    4096 3月  16  2023 iproute2/
-rw-r--r--   1 root root      26 3月  14  2023 issue
-rw-r--r--   1 root root      19 3月  14  2023 issue.net
drwxr-xr-x   3 root root    4096 3月   7 09:48 .java/
drwxr-xr-x   5 root root    4096 3月   7 09:48 java-8-openjdk/
drwxr-xr-x   6 root root    4096 3月  16  2023 kernel/
-rw-r--r--   1 root root     110 2月  24 18:45 kernel-img.conf
-rw-r--r--   1 root root    1308 12月  2  2017 kerneloops.conf
drwxr-xr-x   2 root root    4096 3月  16  2023 ldap/
-rw-r--r--   1 root root   78549 5月  14 20:32 ld.so.cache
-rw-r--r--   1 root root      34 4月  15  2020 ld.so.conf
drwxr-xr-x   2 root root    4096 5月   5 11:52 ld.so.conf.d/
-rw-r--r--   1 root root     267 12月  5  2019 legal
-rw-r--r--   1 root root      27 1月  19  2018 libao.conf
-rw-r--r--   1 root root     191 2月  18  2020 libaudit.conf
drwxr-xr-x   3 root root    4096 3月  16  2023 libblockdev/
drwxr-xr-x   2 root root    4096 2月  25 18:09 libibverbs.d/
drwxr-xr-x   2 root root    4096 3月  16  2023 libnl-3/
drwxr-xr-x   2 root root    4096 6月  26  2019 libpaper.d/
drwxr-xr-x   2 root root    4096 3月  16  2023 libreoffice/
drwxr-xr-x   4 root root    4096 3月   7 09:48 lighttpd/
-rw-r--r--   1 root root    2996 3月   4  2022 locale.alias
-rw-r--r--   1 root root    9454 5月   5 11:51 locale.gen
lrwxrwxrwx   1 root root      33 2月  24 18:43 localtime -> /usr/share/zoneinfo/Asia/Shanghai
drwxr-xr-x   4 root root    4096 3月  16  2023 logcheck/
-rw-r--r--   1 root root   10550 2月   7  2020 login.defs
-rw-r--r--   1 root root     533 1月  21  2019 logrotate.conf
drwxr-xr-x   2 root root    4096 2月  25 18:09 logrotate.d/
-rw-r--r--   1 root root     104 3月  14  2023 lsb-release
-rw-r--r--   1 root root   14867 2月   1  2019 ltrace.conf
-r--r--r--   1 root root      33 2月  24 18:54 machine-id
-rw-r--r--   1 root root     111 1月  17  2020 magic
-rw-r--r--   1 root root     111 1月  17  2020 magic.mime
-rw-r--r--   1 root root   49175 6月   5 10:39 mailcap
-rw-r--r--   1 root root     449 10月 19  2019 mailcap.order
-rw-r--r--   1 root root    5215 2月  26  2020 manpath.config
-rw-r--r--   1 root root   24546 10月 19  2019 mime.types
drwxr-xr-x   2 root root    4096 5月   8 17:33 minicom/
-rw-r--r--   1 root root     808 2月  14  2020 mke2fs.conf
drwxr-xr-x   3 root root    4096 3月  16  2023 ModemManager/
drwxr-xr-x   2 root root    4096 4月  29 14:38 modprobe.d/
-rw-r--r--   1 root root     195 3月  16  2023 modules
drwxr-xr-x   2 root root    4096 3月  16  2023 modules-load.d/
lrwxrwxrwx   1 root root      19 2月  24 18:43 mtab -> ../proc/self/mounts
-rw-r--r--   1 root root     624 3月  22  2020 mtools.conf
drwxr-xr-x   3 root root    4096 3月  16  2023 mysql/
-rw-r--r--   1 root root   10037 2月   7  2020 nanorc
-rw-r--r--   1 root root     767 3月  25  2022 netconfig
drwxr-xr-x   2 root root    4096 3月  16  2023 netplan/
drwxr-xr-x   6 root root    4096 3月  16  2023 network/
drwxr-xr-x   8 root root    4096 3月  16  2023 networkd-dispatcher/
drwxr-xr-x   7 root root    4096 3月  16  2023 NetworkManager/
-rw-r--r--   1 root root      91 12月  5  2019 networks
drwxr-xr-x   2 root root    4096 3月  16  2023 newt/
-rw-r--r--   1 root root     542 2月  24 18:46 nsswitch.conf
-rw-r--r--   1 root root     452 4月  11  2020 nvcc.profile
drwxr-xr-x   2 root root    4096 3月   7 09:44 openal/
drwxr-xr-x   3 root root    4096 2月  24 18:47 OpenCL/
drwxr-xr-x   4 root root    4096 3月  16  2023 openvpn/
drwxr-xr-x   2 root root    4096 3月  16  2023 opt/
-rw-r--r--   1 root root    2977 6月   5 14:34 orayconfig.conf
lrwxrwxrwx   1 root root      21 2月  24 18:40 os-release -> ../usr/lib/os-release
drwxr-xr-x   2 root root    4096 3月  16  2023 PackageKit/
-rw-r--r--   1 root root     552 12月 18  2019 pam.conf
drwxr-xr-x   2 root root    4096 2月  25 18:09 pam.d/
-rw-rw-r--   1 root root       3 2月  24 18:43 papersize
-rw-r--r--   1 root root    3026 2月  25 09:06 passwd
-rw-r--r--   1 root root    3026 2月  25 09:06 passwd-
drwxr-xr-x   2 root root    4096 3月  16  2023 pcmcia/
drwxr-xr-x   3 root root    4096 3月  16  2023 perl/
drwxr-xr-x   4 root root    4096 3月  16  2023 pki/
drwxr-xr-x   3 root root    4096 3月  16  2023 pm/
-rw-r--r--   1 root root    7649 3月  16  2023 pnm2ppa.conf
drwxr-xr-x   4 root root    4096 3月  16  2023 polkit-1/
-rw-rw-r--   1 root root     350 2月  24 18:43 popularity-contest.conf
drwxr-xr-x   7 root dip     4096 5月   8 16:20 ppp/
-rw-r--r--   1 root root      10 2月  24 18:43 prime-discrete
-rw-r--r--   1 root root     581 12月  5  2019 profile
drwxr-xr-x   2 root root    4096 5月   5 12:20 profile.d/
-rw-r--r--   1 root root    2932 4月   2  2013 protocols
drwxr-xr-x   3 root root    4096 3月  16  2023 pulse/
-rw-------   1 root root       0 3月  16  2023 .pwd.lock
drwxr-xr-x   2 root root    4096 2月  25 19:03 python2.7/
drwxr-xr-x   2 root root    4096 3月  16  2023 python3/
drwxr-xr-x   2 root root    4096 2月  25 19:05 python3.8/
drwxr-xr-x   2 root root    4096 4月  29 14:38 rc0.d/
drwxr-xr-x   2 root root    4096 2月  25 18:09 rc1.d/
drwxr-xr-x   2 root root    4096 4月  29 14:38 rc2.d/
drwxr-xr-x   2 root root    4096 4月  29 14:38 rc3.d/
drwxr-xr-x   2 root root    4096 4月  29 14:38 rc4.d/
drwxr-xr-x   2 root root    4096 4月  29 14:37 rc5.d/
drwxr-xr-x   2 root root    4096 4月  29 14:38 rc6.d/
drwxr-xr-x   2 root root    4096 2月  24 18:46 rcS.d/
lrwxrwxrwx   1 root root      39 2月  24 18:41 resolv.conf -> ../run/systemd/resolve/stub-resolv.conf
lrwxrwxrwx   1 root root      13 2月  24 18:40 rmt -> /usr/sbin/rmt*
-rw-r--r--   1 root root     887 4月   2  2013 rpc
-rw-r--r--   1 root root    1382 2月  11  2020 rsyslog.conf
drwxr-xr-x   2 root root    4096 3月  16  2023 rsyslog.d/
-rw-r--r--   1 root root    5211 3月  11  2020 rygel.conf
drwxr-xr-x   3 root root    4096 2月  25 19:21 samba/
drwxr-xr-x   3 root root    4096 3月  16  2023 sane.d/
drwxr-xr-x   4 root root    4096 3月  16  2023 security/
drwxr-xr-x   2 root root    4096 3月  16  2023 selinux/
-rw-r--r--   1 root root   10593 4月   1  2022 sensors3.conf
drwxr-xr-x   2 root root    4096 3月  16  2023 sensors.d/
-rw-r--r--   1 root root   14464 2月  17  2020 services
drwxr-xr-x   3 root root    4096 3月  16  2023 sgml/
-rw-r-----   1 root shadow  1671 3月   6 11:28 shadow
-rw-r-----   1 root shadow  1566 2月  25 09:06 shadow-
-rw-r--r--   1 root root     116 3月  16  2023 shells
drwxr-xr-x   2 root root    4096 3月  16  2023 skel/
drwxr-xr-x   2 root root    4096 3月  16  2023 snmp/
drwxr-xr-x   4 root root    4096 3月  16  2023 speech-dispatcher/
drwxr-xr-x   4 root root    4096 2月  25 09:06 ssh/
drwxr-xr-x   4 root root    4096 3月  16  2023 ssl/
-rw-r--r--   1 root root      22 2月  24 18:43 subgid
-rw-r--r--   1 root root       0 3月  16  2023 subgid-
-rw-r--r--   1 root root      22 2月  24 18:43 subuid
-rw-r--r--   1 root root       0 3月  16  2023 subuid-
-r--r-----   1 root root     755 2月   3  2020 sudoers
drwxr-xr-x   2 root root    4096 2月  24 18:46 sudoers.d/
-rw-r-----   1 root root     693 6月   5 14:34 sys_config.conf
-rw-r--r--   1 root root    2351 2月  14  2020 sysctl.conf
drwxr-xr-x   2 root root    4096 3月  16  2023 sysctl.d/
drwxr-xr-x   5 root root    4096 3月  16  2023 systemd/
drwxr-xr-x   2 root root    4096 3月  16  2023 terminfo/
drwxr-xr-x   2 root root    4096 3月  16  2023 thermald/
drwxr-xr-x   2 root root    4096 4月  29 14:38 thnuclnt/
drwxr-xr-x   2 root root    4096 3月  16  2023 thunderbird/
drwxr-xr-x   2 root root    4096 2月  25 09:29 timeshift/
-rw-r--r--   1 root root     765 3月  19 09:45 timeshift.json
-rw-r--r--   1 root root      14 2月  24 18:43 timezone
drwxr-xr-x   2 root root    4096 4月  22  2020 tmpfiles.d/
drwxr-xr-x   2 root root    4096 3月  16  2023 ubuntu-advantage/
-rw-r--r--   1 root root    1260 12月 14  2018 ucf.conf
drwxr-xr-x   4 root root    4096 2月  24 18:48 udev/
drwxr-xr-x   2 root root    4096 3月  16  2023 udisks2/
drwxr-xr-x   3 root root    4096 3月  16  2023 ufw/
drwxr-xr-x   3 root root    4096 3月  16  2023 update-manager/
drwxr-xr-x   2 root root    4096 3月  16  2023 update-motd.d/
drwxr-xr-x   2 root root    4096 1月  21  2023 update-notifier/
drwxr-xr-x   2 root root    4096 3月  16  2023 UPower/
-rw-r--r--   1 root root    1523 2月  10  2020 usb_modeswitch.conf
drwxr-xr-x   2 root root    4096 2月  25  2020 usb_modeswitch.d/
-rw-r--r--   1 root root      51 8月  29  2019 vdpau_wrapper.cfg
drwxr-xr-x   2 root root    4096 3月  16  2023 vim/
drwxr-xr-x   4 root root    4096 6月   5 14:32 vmware/
drwxr-xr-x   3 root root    4096 4月  29 14:40 vmware-installer/
drwxr-xr-x   2 root root    4096 4月  29 14:37 vmware-vix/
lrwxrwxrwx   1 root root      23 2月  24 18:40 vtrgb -> /etc/alternatives/vtrgb
drwxr-xr-x   5 root root    4096 3月  16  2023 vulkan/
drwxr-xr-x   3 root root    4096 3月   6 11:18 vulkansc/
-rw-r--r--   1 root root    4942 11月 13  2021 wgetrc
drwxr-xr-x   2 root root    4096 3月  16  2023 wpa_supplicant/
drwxr-xr-x  11 root root    4096 3月   6 11:18 X11/
-rw-r--r--   1 root root     642 9月  24  2019 xattr.conf
drwxr-xr-x   6 root root    4096 3月  16  2023 xdg/
drwxr-xr-x   2 root root    4096 3月  16  2023 xml/
-rw-r--r--   1 root root     477 2月  10  2022 zsh_command_not_found
rootroot@rootroot-X99-Turbo:/etc$ 
rootroot@rootroot-X99-Turbo:/etc$ cat fstab 
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/nvme0n1p7 during installation
UUID=043c6153-1ea4-447e-ab21-c3a147b6c375 /               ext4    errors=remount-ro 0       1
# /boot was on /dev/nvme0n1p4 during installation
UUID=24b4644d-ec3d-4e91-87a8-150f85f8c68d /boot           ext4    defaults        0       2
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=A6AB-846A  /boot/efi       vfat    umask=0077      0       1
# /home was on /dev/nvme0n1p6 during installation
UUID=14b33136-dcec-4cab-8ebb-5134785d9e5d /home           ext4    defaults        0       2
# swap was on /dev/nvme0n1p5 during installation
UUID=c9ca1554-6c6f-4dd8-b932-50bfa7267e45 none            swap    sw              0       0
rootroot@rootroot-X99-Turbo:/etc$ 
rootroot@rootroot-X99-Turbo:/etc$ ll fstab
-rw-rw-r-- 1 root root 1008 2月  24 18:40 fstab
rootroot@rootroot-X99-Turbo:/etc$ 
rootroot@rootroot-X99-Turbo:/etc$ sudo chmod 777 fstab
rootroot@rootroot-X99-Turbo:/etc$ ll fstab 
-rwxrwxrwx 1 root root 1008 2月  24 18:40 fstab*
rootroot@rootroot-X99-Turbo:/etc$ 
rootroot@rootroot-X99-Turbo:/etc$ sudo cp fstab fstab.bak1
rootroot@rootroot-X99-Turbo:/etc$ 
rootroot@rootroot-X99-Turbo:/etc$ sudo vi fstab
rootroot@rootroot-X99-Turbo:/etc$ sudo vi fstab
rootroot@rootroot-X99-Turbo:/etc$ 
rootroot@rootroot-X99-Turbo:/etc$ 
rootroot@rootroot-X99-Turbo:/etc$ 
rootroot@rootroot-X99-Turbo:/etc$ sudo vi fstab
rootroot@rootroot-X99-Turbo:/etc$ sudo vi fstab
rootroot@rootroot-X99-Turbo:/etc$ 
rootroot@rootroot-X99-Turbo:/etc$ 
rootroot@rootroot-X99-Turbo:/etc$ sudo mount -a
mount: /home/rootroot/14TB: special device 97e891c6-41a7-493a-9da0-ea12afde46a3 does not exist.
rootroot@rootroot-X99-Turbo:/etc$ 
rootroot@rootroot-X99-Turbo:/etc$ sudo mount -a
rootroot@rootroot-X99-Turbo:/etc$ 
rootroot@rootroot-X99-Turbo:/etc$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev             16G     0   16G   0% /dev
tmpfs           3.2G  4.8M  3.2G   1% /run
/dev/nvme0n1p7   55G   19G   34G  36% /
tmpfs            16G  136K   16G   1% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs            16G     0   16G   0% /sys/fs/cgroup
/dev/loop0      128K  128K     0 100% /snap/bare/5
/dev/loop1       64M   64M     0 100% /snap/core20/2571
/dev/loop2       45M   45M     0 100% /snap/snapd/23771
/dev/loop3       64M   64M     0 100% /snap/core20/2582
/dev/loop4       51M   51M     0 100% /snap/snapd/24505
/dev/loop5       74M   74M     0 100% /snap/core22/1963
/dev/loop6      347M  347M     0 100% /snap/gnome-3-38-2004/119
/dev/loop7       74M   74M     0 100% /snap/core22/1981
/dev/loop9      517M  517M     0 100% /snap/gnome-42-2204/202
/dev/loop8      350M  350M     0 100% /snap/gnome-3-38-2004/143
/dev/loop12      46M   46M     0 100% /snap/snap-store/638
/dev/loop10      92M   92M     0 100% /snap/gtk-common-themes/1535
/dev/loop11      13M   13M     0 100% /snap/snap-store/1216
/dev/nvme0n1p4  536M  182M  315M  37% /boot
/dev/nvme0n1p1   96M   33M   64M  34% /boot/efi
/dev/nvme0n1p6  2.5T  2.3T   47G  99% /home
tmpfs           3.2G   32K  3.2G   1% /run/user/1000
/dev/sda1        13T   28K   12T   1% /home/rootroot/14TB
rootroot@rootroot-X99-Turbo:/etc$ Connection closing...Socket close.

Connection closed by foreign host.

Disconnected from remote host(192.168.3.208) at 18:34:38.

Type `help' to learn how to use Xshell prompt.
[C:\~]$ 

[END] 2025/6/5 19:19:39

参考资料:
百度:Ubuntu环境下挂载新硬盘
https://zhuanlan.zhihu.com/p/666997493
Ubuntu挂载新硬盘


https://zhuanlan.zhihu.com/p/388362234
Linux Ubuntu 硬盘挂载方法


# 创建要挂载的文件夹
mkdir /data
# 挂载硬盘到该文件夹上
mount /dev/sde /data

rootroot@rootroot-X99-Turbo:~$ sudo blkid /dev/sda
/dev/sda: UUID="275a607b-41c4-465a-8786-dbddd50fdde1" TYPE="ext4"
rootroot@rootroot-X99-Turbo:~$ 
# 进入 fstab 修改配置
vim /etc/fstab
# 在最后面加入指定信息
UUID=67E91005-EB18-4E24-8410-EB9A1C2E3882 /data ext4 defaults 0 0


https://zhuanlan.zhihu.com/p/623064560
ubuntu 挂载新硬盘


https://www.jianshu.com/p/be174d108186
DISK MOUNT


https://blog.csdn.net/qq_33031419/article/details/133056014
如何在Ubuntu中挂载新硬盘


https://blog.csdn.net/qq_19253847/article/details/129198661
Ubuntu系统下如何挂载新硬盘2T及以下/挂载2T以上

10.将硬盘分区信息加入分区信息表,供系统识别。
echo "UUID=/dev/sdb1 /data1 ext4 defaults 0 0" >> /etc/fstab
不建议直接用/dev/sdd等挂载,建议用UUID:
ls -l /dev/disk/by-uuid/ 查看id