Linux 查看硬盘类型

【Linux 查看硬盘类型】壮心未与年俱老,死去犹能作鬼雄。这篇文章主要讲述Linux 查看硬盘类型相关的知识,希望能为你提供帮助。
Linux 查看硬盘类型

root@user-PC:~# lsblk -d -o name,rota NAMEROTA loop01 sda1 sdb1 sdc1 sdd0 sde1 sdi1 sdj1 sdk1 sdl1 sr01 sr11 # 返回0:SSD盘 返回1:SATA盘 root@user-PC:~# lsscsi# 查看SCSI控制器设备的信息 [0:0:0:0]diskATAST2000NM0008-2F3 SN02/dev/sda [1:0:0:0]diskATAST2000NM0008-2F3 SN02/dev/sdb [2:0:0:0]diskATAST2000NM0008-2F3 SN02/dev/sdc [3:0:0:0]diskATATS512GSSD452KS7JA/dev/sdd [5:0:0:0]cd/dvdSlimtype DVD ADS8ACSHLC2M/dev/sr0 [6:0:0:0]diskATAST2000NM0008-2F3 SN02/dev/sde [7:0:0:0]cd/dvdAMIVirtual CDROM01.00/dev/sr1 [8:0:0:0]diskAMIVirtual Floppy01.00/dev/sdf [9:0:0:0]diskAMIVirtual HDisk01.00/dev/sdg [9:0:0:1]diskAMIVirtual HDisk11.00/dev/sdh [10:0:0:0]diskTOYOUDisk-Array3123/dev/sdi [10:0:1:0]diskTOYOUDisk-Array3123/dev/sdj [11:0:0:0]diskTOYOUDisk-Array3123/dev/sdk [11:0:1:0]diskTOYOUDisk-Array3123/dev/sdl root@user-PC:~# fdisk -l /dev/sdd Disk /dev/sdd: 477 GiB, 512110190592 bytes, 1000215216 sectors Disk model: TS512GSSD452K 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: D085E238-459F-4F36-9022-1FE98F8BC83FDeviceStartEndSectorsSize Type /dev/sdd12048616447614400300M EFI System /dev/sdd2616448376217531457281.5G Linux filesystem /dev/sdd33762176203804671 20004249695.4G Linux filesystem /dev/sdd4203804672905842687 702038016 334.8G Linux filesystem /dev/sdd59058426889666600956081740829G Linux filesystem /dev/sdd6966660096 10002145273355443216G Linux swaproot@user-PC:~# lsblk NAMEMAJ:MIN RMSIZE RO TYPEMOUNTPOINT loop07:00 547.7M0 loop/kbdata/test sda8:001.8T0 disk sdb8:1601.8T0 disk sdc8:3201.8T0 disk sdd8:481477G0 disk ├─sdd18:491300M0 part/boot/efi ├─sdd28:5011.5G0 part/boot ├─sdd38:51195.4G0 part/ ├─sdd48:521 334.8G0 part/data ├─sdd58:53129G0 part/recovery └─sdd68:54116G0 part[SWAP] sde8:6411.8T0 disk sdi8:12804T0 disk └─mpatha 253:004T0 mpath /kbdata sdj8:14404T0 disk └─mpatha 253:004T0 mpath /kbdata sdk8:16004T0 disk └─mpatha 253:004T0 mpath /kbdata sdl8:17604T0 disk └─mpatha 253:004T0 mpath /kbdata sr011:015.6G0 rom sr111:111024M0 rom root@user-PC:~# df -h 文件系统容量已用可用 已用% 挂载点 udev32G032G0% /dev tmpfs6.4G6.1M6.4G1% /run /dev/sdd394G7.2G82G9% / tmpfs32G46M32G1% /dev/shm tmpfs5.0M16K5.0M1% /run/lock tmpfs32G032G0% /sys/fs/cgroup /dev/sdd21.5G49M1.4G4% /boot /dev/sdd4329G29G284G10% /data /dev/sdd529G8.1G19G30% /recovery /dev/sdd1300M6.5M293M3% /boot/efi /dev/mapper/mpatha4.0T94G4.0T3% /kbdata tmpfs6.4G128K6.4G1% /run/user/1001 tmpfs6.4G160K6.4G1% /run/user/0 /dev/loop0548M548M0100% /kbdata/test


    推荐阅读