linux 查看硬盘和网卡的信息

网友投稿 891 2022-05-28

ECS信息

规格:2vCPUs | 4GiB | kc1.large.2

镜像:openEuler 20.03 64bit with ARM | 公共镜像

linux 查看硬盘和网卡的信息

# fdisk -l Disk /dev/vda: 40 GiB, 42949672960 bytes, 83886080 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 Disklabel type: gpt Disk identifier: E4391D6A-9819-45CA-BDE4-52285BCE52A7 Device Start End Sectors Size Type /dev/vda1 2048 2099199 2097152 1G EFI System /dev/vda2 2099200 83884031 81784832 39G Linux filesystem

# lsblk -l NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT vda 253:0 0 40G 0 disk vda1 253:1 0 1G 0 part /boot/efi vda2 253:2 0 39G 0 part /

# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 1.2G 0 1.2G 0% /dev tmpfs 1.5G 0 1.5G 0% /dev/shm tmpfs 1.5G 13M 1.5G 1% /run tmpfs 1.5G 0 1.5G 0% /sys/fs/cgroup /dev/vda2 39G 4.0G 33G 11% / tmpfs 1.5G 64K 1.5G 1% /tmp /dev/vda1 1022M 5.8M 1017M 1% /boot/efi tmpfs 298M 0 298M 0% /run/user/0

IP地址已隐藏

# ifconfig eth0: flags=4163 mtu 1500 inet 192.168.0.XXX netmask 255.255.255.0 broadcast 192.168.0.XXX inet6 XXXX::XXXX:XXXX:XXXX:XXXX prefixlen 64 scopeid 0x20 ether XX:XX:XX:XX:XX:XX txqueuelen 1000 (Ethernet) RX packets 1470 bytes 152156 (148.5 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 1133 bytes 138160 (134.9 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73 mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10 loop txqueuelen 1000 (Local Loopback) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

# ethtool -i eth0 driver: virtio_net version: 1.0.0 firmware-version: expansion-rom-version: bus-info: 0000:03:00.0 supports-statistics: yes supports-test: no supports-eeprom-access: no supports-register-dump: no supports-priv-flags: no

# lspci |grep -i Ethernet 03:00.0 Ethernet controller: Virtio: Virtio network device (rev 01)

linux 查看硬盘和网卡的信息

Virtio是虚拟机用到的虚拟化技术。

使用modinfo查看网卡驱动的基本信息

# modinfo virtio filename: /lib/modules/4.19.90-2003.4.0.0036.oe1.aarch64/kernel/drivers/virtio/virtio.ko license: GPL srcversion: 4625C9AF9657B792DEA6038 depends: intree: Y name: virtio vermagic: 4.19.90-2003.4.0.0036.oe1.aarch64 SMP mod_unload modversions aarch64 ......部分截取

学习资料

弹性云服务器 ECS

openEuler-官网

openEuler-B站

openEuler-慕课

openEuler-文档

鲲鹏社区

欢迎各位同学一起来交流学习心得^_^

Linux openEuler

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:U盘图标DIY方法
下一篇:磁盘上怎么存储NULL值?
相关文章