当前位置: 技术问答>linux和unix
对fedora中fdisk输出信息的疑惑
来源: 互联网 发布时间:2016-12-06
本文导语: 问题有些多,我也在google里找过了,但是没能找到满意的答案,所以只能在这里劳烦各位了,先谢过! 问题描述: 我电脑只一个硬盘,装fedora14过程中,我也没手动分区什么的,只是把整个硬盘挂在了/下,装好后...
问题有些多,我也在google里找过了,但是没能找到满意的答案,所以只能在这里劳烦各位了,先谢过!
问题描述:
我电脑只一个硬盘,装fedora14过程中,我也没手动分区什么的,只是把整个硬盘挂在了/下,装好后想了解一下系统分区情况,于是:
(此时电脑上还插了一个U盘)
[gjh@gjh ~]$ sudo fdisk -l
[sudo] password for gjh:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes // ??? 1) (logical/physical)什么意思
I/O size (minimum/optimal): 512 bytes / 512 bytes // ??? 2)
Disk identifier: 0xf0b1ebb0
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1026047 512000 83 Linux //??? 3) block是什么,容量计算是否这样:(1026047 - 2048) * 512 = 524287488
/dev/sda2 1026048 312580095 155777024 8e Linux LVM //??? 4) 为什么它自动帮我分了两个区?为什么这里有个LVM,上面没有?
Disk /dev/dm-0: 53.7 GB, 53687091200 bytes //??? 5) dm-0是哪来的
255 heads, 63 sectors/track, 6527 cylinders, total 104857600 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 identifier: 0x00000000
Disk /dev/dm-0 doesn't contain a valid partition table //??? 6) 这句话的含义是什么
Disk /dev/dm-1: 2113 MB, 2113929216 bytes
255 heads, 63 sectors/track, 257 cylinders, total 4128768 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 identifier: 0x00000000
Disk /dev/dm-1 doesn't contain a valid partition table
Disk /dev/dm-2: 103.7 GB, 103683194880 bytes
255 heads, 63 sectors/track, 12605 cylinders, total 202506240 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 identifier: 0x00000000
Disk /dev/dm-2 doesn't contain a valid partition table
Disk /dev/sdc: 1275 MB, 1275068416 bytes // ??? 7)前面还是sda,为什么这里直接跳到sdc了,sdb呢?(我的U盘是cdrom分区+可存储分区,这里的信息是后者的)
40 heads, 61 sectors/track, 1020 cylinders, total 2490368 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 identifier: 0x73696420
This doesn't look like a partition table
Probably you selected the wrong device. //??? 8) 干啥玩意儿
Device Boot Start End Blocks Id System //??? 9) 咋有这么多分区而且好像都不正常!?我u盘可是正常的
/dev/sdc1 ? 1919950958 2464388050 272218546+ 20 Unknown
/dev/sdc2 ? 1330184202 1869160489 269488144 6b Unknown
/dev/sdc3 ? 538989391 1937352302 699181456 53 OnTrack DM6 Aux3
/dev/sdc4 * 1394627663 1394648999 10668+ 49 Unknown
Partition table entries are not in disk order
[gjh@gjh ~]$
[gjh@gjh ~]$
[gjh@gjh ~]$
/*************************************/
[gjh@gjh ~]$ df -h
Filesystem Size Used Avail Use% Mounted on // ??? 10) 第一列是文件系统? sda,sdc不是物理分区,物理盘吗?
/dev/mapper/vg_gjh-lv_root // ??? 11) 啥玩意
50G 3.1G 46G 7% /
tmpfs 501M 1.7M 499M 1% /dev/shm // ??? 12) 这个是什么,为什么又不统一是上面的形式(vg_gjh-lv_xxx)
/dev/sda1 485M 47M 413M 11% /boot // ??? 13) 这里是否对应上面fdisk中的第一行,可是为什么这里的容量是485M,上面计算出来却是524287488(B)
/dev/mapper/vg_gjh-lv_home
96G 4.7G 86G 6% /home
/dev/sdc 1.2G 0 1.2G 0% /media/USB DISK CD
/dev/sr1 694M 694M 0 100% /media/Ubuntu 10.10 i386
问题描述:
我电脑只一个硬盘,装fedora14过程中,我也没手动分区什么的,只是把整个硬盘挂在了/下,装好后想了解一下系统分区情况,于是:
(此时电脑上还插了一个U盘)
[gjh@gjh ~]$ sudo fdisk -l
[sudo] password for gjh:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes // ??? 1) (logical/physical)什么意思
I/O size (minimum/optimal): 512 bytes / 512 bytes // ??? 2)
Disk identifier: 0xf0b1ebb0
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1026047 512000 83 Linux //??? 3) block是什么,容量计算是否这样:(1026047 - 2048) * 512 = 524287488
/dev/sda2 1026048 312580095 155777024 8e Linux LVM //??? 4) 为什么它自动帮我分了两个区?为什么这里有个LVM,上面没有?
Disk /dev/dm-0: 53.7 GB, 53687091200 bytes //??? 5) dm-0是哪来的
255 heads, 63 sectors/track, 6527 cylinders, total 104857600 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 identifier: 0x00000000
Disk /dev/dm-0 doesn't contain a valid partition table //??? 6) 这句话的含义是什么
Disk /dev/dm-1: 2113 MB, 2113929216 bytes
255 heads, 63 sectors/track, 257 cylinders, total 4128768 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 identifier: 0x00000000
Disk /dev/dm-1 doesn't contain a valid partition table
Disk /dev/dm-2: 103.7 GB, 103683194880 bytes
255 heads, 63 sectors/track, 12605 cylinders, total 202506240 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 identifier: 0x00000000
Disk /dev/dm-2 doesn't contain a valid partition table
Disk /dev/sdc: 1275 MB, 1275068416 bytes // ??? 7)前面还是sda,为什么这里直接跳到sdc了,sdb呢?(我的U盘是cdrom分区+可存储分区,这里的信息是后者的)
40 heads, 61 sectors/track, 1020 cylinders, total 2490368 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 identifier: 0x73696420
This doesn't look like a partition table
Probably you selected the wrong device. //??? 8) 干啥玩意儿
Device Boot Start End Blocks Id System //??? 9) 咋有这么多分区而且好像都不正常!?我u盘可是正常的
/dev/sdc1 ? 1919950958 2464388050 272218546+ 20 Unknown
/dev/sdc2 ? 1330184202 1869160489 269488144 6b Unknown
/dev/sdc3 ? 538989391 1937352302 699181456 53 OnTrack DM6 Aux3
/dev/sdc4 * 1394627663 1394648999 10668+ 49 Unknown
Partition table entries are not in disk order
[gjh@gjh ~]$
[gjh@gjh ~]$
[gjh@gjh ~]$
/*************************************/
[gjh@gjh ~]$ df -h
Filesystem Size Used Avail Use% Mounted on // ??? 10) 第一列是文件系统? sda,sdc不是物理分区,物理盘吗?
/dev/mapper/vg_gjh-lv_root // ??? 11) 啥玩意
50G 3.1G 46G 7% /
tmpfs 501M 1.7M 499M 1% /dev/shm // ??? 12) 这个是什么,为什么又不统一是上面的形式(vg_gjh-lv_xxx)
/dev/sda1 485M 47M 413M 11% /boot // ??? 13) 这里是否对应上面fdisk中的第一行,可是为什么这里的容量是485M,上面计算出来却是524287488(B)
/dev/mapper/vg_gjh-lv_home
96G 4.7G 86G 6% /home
/dev/sdc 1.2G 0 1.2G 0% /media/USB DISK CD
/dev/sr1 694M 694M 0 100% /media/Ubuntu 10.10 i386
|
block是块具体可以看看硬盘相关介绍,sdb或是sdc是U盘枚举决定的,是物理设备,sdc1(后面有数字的才是分区)