2016-08-01 4 views
-2

I가의 fdisk -l에서 다음과 같은 출력 :/dev/sda에/dev/mapper에 나열된 파티션이 있습니까?

$ sudo fdisk -l 

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 
I/O size (minimum/optimal): 512 bytes/512 bytes 
Disk identifier: 0x000dd2f1 

    Device Boot  Start   End  Blocks Id System 
/dev/sda1 *  2048  499711  248832 83 Linux 
/dev/sda2   501758 312580095 156039169 5 Extended 
/dev/sda5   501760 312580095 156039168 83 Linux 

Disk /dev/mapper/sda5_crypt: 159.8 GB, 159782010880 bytes 
255 heads, 63 sectors/track, 19425 cylinders, total 312074240 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/mapper/sda5_crypt doesn't contain a valid partition table 

Disk /dev/mapper/ubuntu--vg-root: 151.3 GB, 151309516800 bytes 
255 heads, 63 sectors/track, 18395 cylinders, total 295526400 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/mapper/ubuntu--vg-root doesn't contain a valid partition table 

Disk /dev/mapper/ubuntu--vg-swap_1: 8468 MB, 8468299776 bytes 
255 heads, 63 sectors/track, 1029 cylinders, total 16539648 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/mapper/ubuntu--vg-swap_1 doesn't contain a valid partition table 

내 질문은 : 내 디스크의 공간이 무엇인가? /dev/sda 크기 (160.0 GB) 만입니까? 또는/dev/mapper의 디스크 크기를 합산해야합니까? 그래서 내 디스크 공간은 실제로 160.0GB + 159.8GB + 151.3GB + 8468MB입니까?

/dev/sda 디스크에/dev/mapper 디스크가 들어있는 경우 총 크기가 160.0 GB 인 경우 크기가 159.8 GB이고 크기가 151.3 GB 인 논리 디스크를 어떻게 가질 수 있습니까?

디스크가 여기에 어떻게 구성되어 있는지 보려면 문제가 있습니다./dev/mapper에 익숙하지 않으며 필자의 노트북에 디스크가 하나 밖에 없다고 확신합니다.

감사

+0

'/ 디바이스/매퍼 /'논리적 파티션이다. 자세한 내용은 [여기] (http://unix.stackexchange.com/questions/204413/dev-mapper-in-fdisk)를 참조하십시오. – Downvoter

+0

고맙지 만 총 크기가 160G 인 경우 어떻게 159.8GB의 논리 파티션과 151.3GB의 논리 파티션을 가질 수 있습니까? –

+0

내가 왜 downvoted되었다? 더 좋은 방법으로 내 질문을 어떻게 구성 할 수 있습니까? –

답변

1

귀하의 전체 크기는 160G, 그리고 당신이 당신의 디스크가 어떻게 구성되어 있는지보고 싶다면, 당신이 gparted를 사용하는 것이 좋습니다.

/dev/mapper/*는 논리 파티션이며 LVM2 논리 볼륨 관리를 사용하여 시스템을 설치했음을 나타냅니다.

정확한 방정식은 다음

159.8 GB = 151.3 GB + 8468 MB 
+1

우분투 - vg-root와 우분투 - vg-swap_1은 흥미 롭습니다. sda에 포함 된 sda5_crypt에 포함되어 있습니다. 감사합니다. –

관련 문제