ubuntu disk

pcl@pcl-HP-EliteDesk-800-G4-WKS-TWR:~$ sudo fdisk -l
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: 91.69 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/loop2: 266.63 MiB, 279584768 bytes, 546064 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: 12.32 MiB, 12922880 bytes, 25240 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: 496.98 MiB, 521121792 bytes, 1017816 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: 74.21 MiB, 77819904 bytes, 151992 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: 40.43 MiB, 42393600 bytes, 82800 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: 452 KiB, 462848 bytes, 904 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/nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: SK hynix BC501 HFM512GDJTNG-8310A       
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: 94822197-2590-407F-AFE3-47798D411FE1

Device          Start        End   Sectors   Size Type
/dev/nvme0n1p1   2048     616447    614400   300M EFI System
/dev/nvme0n1p2 616448     878591    262144   128M Microsoft reserved
/dev/nvme0n1p3 878592 1000215182 999336591 476.5G Microsoft basic data


Disk /dev/sda: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: ST2000DM008-2FR1
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: 6C1D76CA-8A2B-4BF3-97C6-D9538EE24F12

Device          Start        End   Sectors  Size Type
/dev/sda1          34      32767     32734   16M Microsoft reserved
/dev/sda2  1025490944 1220802559 195311616 93.1G Linux filesystem
/dev/sda3  1220802560 1298927615  78125056 37.3G Linux filesystem

Partition 1 does not start on physical sector boundary.
pcl@pcl-HP-EliteDesk-800-G4-WKS-TWR:~$ sudo fdisk /dev/sda

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

This disk is currently in use - repartitioning is probably a bad idea.
It's recommended to umount all file systems, and swapoff all swap
partitions on this disk.


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 (4-128, default 4): 4
First sector (32768-3907029134, default 1298927616):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (1298927616-3907029134, default 3907029134): 2342168223

Created a new partition 4 of type 'Linux filesystem' and of size 497.5 GiB.

Command (m for help): w
The partition table has been altered.
Syncing disks.

pcl@pcl-HP-EliteDesk-800-G4-WKS-TWR:~$ sudo fdisk -l
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: 91.69 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/loop2: 266.63 MiB, 279584768 bytes, 546064 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: 12.32 MiB, 12922880 bytes, 25240 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: 496.98 MiB, 521121792 bytes, 1017816 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: 74.21 MiB, 77819904 bytes, 151992 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: 40.43 MiB, 42393600 bytes, 82800 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: 452 KiB, 462848 bytes, 904 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/nvme0n1: 476.94 GiB, 512110190592 bytes, 1000215216 sectors
Disk model: SK hynix BC501 HFM512GDJTNG-8310A       
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: 94822197-2590-407F-AFE3-47798D411FE1

Device          Start        End   Sectors   Size Type
/dev/nvme0n1p1   2048     616447    614400   300M EFI System
/dev/nvme0n1p2 616448     878591    262144   128M Microsoft reserved
/dev/nvme0n1p3 878592 1000215182 999336591 476.5G Microsoft basic data


Disk /dev/sda: 1.82 TiB, 2000398934016 bytes, 3907029168 sectors
Disk model: ST2000DM008-2FR1
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: 6C1D76CA-8A2B-4BF3-97C6-D9538EE24F12

Device          Start        End    Sectors   Size Type
/dev/sda1          34      32767      32734    16M Microsoft reserved
/dev/sda2  1025490944 1220802559  195311616  93.1G Linux filesystem
/dev/sda3  1220802560 1298927615   78125056  37.3G Linux filesystem
/dev/sda4  1298927616 2342168223 1043240608 497.5G Linux filesystem

Partition 1 does not start on physical sector boundary.
pcl@pcl-HP-EliteDesk-800-G4-WKS-TWR:~$ sudo mkfs -t ext4 /dev/sda4
mke2fs 1.46.5 (30-Dec-2021)
Discarding device blocks: done                            
Creating filesystem with 130405076 4k blocks and 32604160 inodes
Filesystem UUID: 2ec9061d-65d9-4de3-b1b1-ecd55742b14f
Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
    4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
    102400000

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

pcl@pcl-HP-EliteDesk-800-G4-WKS-TWR:~$ ls
data     Documents  fishros  Pictures  snap       Videos
Desktop  Downloads  Music    Public    Templates
pcl@pcl-HP-EliteDesk-800-G4-WKS-TWR:~$ sudo df -h
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           3.2G  2.1M  3.2G   1% /run
/dev/sda2        92G  8.5G   79G  10% /
tmpfs            16G     0   16G   0% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
efivarfs        150K   86K   60K  59% /sys/firmware/efi/efivars
/dev/nvme0n1p1  300M   32M  269M  11% /boot/efi
/dev/sda3        37G  142M   35G   1% /home
tmpfs           3.2G  1.7M  3.2G   1% /run/user/1000
/dev/sda4       489G  127M  464G   1% /media/pcl/2ec9061d-65d9-4de3-b1b1-ecd55742b14f
pcl@pcl-HP-EliteDesk-800-G4-WKS-TWR:~$ sudo blkid | grep /dev/sda4

/dev/sda4: UUID="2ec9061d-65d9-4de3-b1b1-ecd55742b14f" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="04047920-da39-c945-b3b1-873035f5d043"
pcl@pcl-HP-EliteDesk-800-G4-WKS-TWR:~$
pcl@pcl-HP-EliteDesk-800-G4-WKS-TWR:~$ sudo blkid | grep /dev/sda3
/dev/sda3: UUID="084ffd07-c04e-4e5d-8a2a-0625aba4c10c" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="847806c5-436e-4993-be62-1f2493964619"
pcl@pcl-HP-EliteDesk-800-G4-WKS-TWR:~$

~$ sudo gedit /etc/fstab

sudo cp -arv /home/* /test

相关推荐

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-15 03:52:03       66 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-15 03:52:03       70 阅读
  3. 在Django里面运行非项目文件

    2024-07-15 03:52:03       57 阅读
  4. Python语言-面向对象

    2024-07-15 03:52:03       68 阅读

热门阅读

  1. 数据结构与算法基础篇--递归

    2024-07-15 03:52:03       20 阅读
  2. 来看一个14台480KW的充电站实际收入情况

    2024-07-15 03:52:03       20 阅读
  3. dify/api/models/workflow.py文件中的数据表

    2024-07-15 03:52:03       21 阅读
  4. Linux 命令集

    2024-07-15 03:52:03       23 阅读
  5. 代码随想录算法训练营第34天

    2024-07-15 03:52:03       25 阅读
  6. Yolo系列合集

    2024-07-15 03:52:03       21 阅读
  7. 如何打开SQLServer配置管理器

    2024-07-15 03:52:03       20 阅读
  8. SQL笔试题【数据岗】

    2024-07-15 03:52:03       20 阅读
  9. sqlalchemy排序

    2024-07-15 03:52:03       18 阅读