方法1:
[root@localhost xly]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sr0 11:01 1024M 0 rom
sda 8:00 40G 0 disk
├─sda1 8:10 300M 0 part /boot
├─sda2 8:20 17.8G 0 part /
└─sda3 8:302G 0 part [SWAP]
sdb 8:16 0 20G 0 disk /opt
可知系统有sda和sdb两块磁盘
方法2:
[root@localhost xly]# fdisk -l
Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00041bdd
Device Boot Start End Blocks Id System
/dev/sda1 * 1 39 307200 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 39235818631680 83 Linux
/dev/sda323582611 2031616 82 Linux swap / Solaris
Disk /dev/sdb: 21.5 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
10M,不过你要定做LINUX,而且这样的LINUX会没有图形界面,只有字符界面。如果一般安装,且不含任何应用程序,要200M左右。各版本的LINUX会少有差别。如果是服务器版,将更大。Linux介绍看《Linux就该这么学》欢迎分享,转载请注明来源:内存溢出
评论列表(0条)