본문 바로가기
프로...Linux

[util] partition/mount - fdisk/lsblk(blkid)/df/mount

by 크크다스 2018. 12. 14.
반응형

[util] partition/mount - fdisk/lsblk(blkid)/df/mount


[fdisk] disk를 파티션닝할 경우 사용되는 툴

<HELP>

a       toggle a bootable flag    <== Linux에서 부트 tagging은 안해도 상관없음.

b       edit bsd disklabel

c       toggle the dos compatibility flag

d       delete a partition

l       list known partition types

n       add a new partition

o       create a new empty DOS partition table

p       print the partition table

q       quit without saving changes

s       create a new empty Sun disklabel

t       change a partition's system id

u       change display/entry units

v       verify the partition table

w       write table to disk and exit        <== 마지막에 꼭 write해야 적용됨

x       extra functionality (experts only)



none) /root> fdisk -l 

Disk /dev/sda: 8 MB, 8388608 bytes, 16384 sectors

64 cylinders, 8 heads, 32 sectors/track

Units: cylinders of 256 * 512 = 131072 bytes


Disk /dev/sda doesn't contain a valid partition table

Disk /dev/sdb: 932 GB, 1000204886016 bytes, 1953525168 sectors

121601 cylinders, 255 heads, 63 sectors/track

Units: cylinders of 16065 * 512 = 8225280 bytes


Device  Boot StartCHS    EndCHS        StartLBA     EndLBA    Sectors  Size Id Type

/dev/sdb1    0,1,1       1023,254,63         63  131620544  131620482 62.7G 83 Linux

/dev/sdb2    1023,254,63 1023,254,63  131620545  171638459   40017915 19.0G 83 Linux

/dev/sdb3    1023,254,63 1023,254,63  171638460  191655449   20016990 9773M 83 Linux

/dev/sdb4    1023,254,63 1023,254,63  191655450 1953520064 1761864615  840G  5 Extended

/dev/sdb5    1023,254,63 1023,254,63  191655513  391664699  200009187 95.3G 83 Linux

/dev/sdb6    1023,254,63 1023,254,63  391664763  431682614   40017852 19.0G 83 Linux

/dev/sdb7    1023,254,63 1023,254,63  431682678 1953520064 1521837387  725G 83 Linux


(none) /root> lsblk 

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT

sda      8:0    0     8M  0 disk

sdb      8:16   0 931.5G  0 disk

├─sdb1   8:17   0  62.8G  0 part

├─sdb2   8:18   0  19.1G  0 part

├─sdb3   8:19   0   9.6G  0 part

├─sdb4   8:20   0     1K  0 part

├─sdb5   8:21   0  95.4G  0 part

├─sdb6   8:22   0  19.1G  0 part

└─sdb7   8:23   0 725.7G  0 part



(none) /root> blkid 
/dev/storage: UUID="318af942-ffbc-448c-91c8-d9773bead260"
/dev/sdb3: UUID="e7900268-f01c-4f46-96da-c13b9b6074f0"
/dev/varlog: UUID="e35b6f60-216f-4a39-b08e-7a177dab9ded"
/dev/db: UUID="c1378c86-2ebc-4f21-b84a-84661ce83a0a"
/dev/sdb1: UUID="349149ba-d117-488d-90bd-ed61520e210c"
/dev/sdb7: UUID="318af942-ffbc-448c-91c8-d9773bead260"
/dev/apps: UUID="40574439-cec6-4e32-886b-1ca264c3618f"
/dev/sdb2: UUID="40574439-cec6-4e32-886b-1ca264c3618f"
/dev/sdb6: UUID="e35b6f60-216f-4a39-b08e-7a177dab9ded"
/dev/sdb5: UUID="c1378c86-2ebc-4f21-b84a-84661ce83a0a"
/dev/ram0: UUID="70001426-6a6b-4ab9-941f-e52a1acedff9"
/dev/os: UUID="349149ba-d117-488d-90bd-ed61520e210c"
/dev/swap: UUID="e7900268-f01c-4f46-96da-c13b9b6074f0"



반응형

'프로...Linux' 카테고리의 다른 글

[Info] Check HW information  (0) 2018.12.21
[SCRIPT] partitioning  (0) 2018.12.14
[SVN] Repository 추가 생성  (0) 2018.11.15
[sh] bourne shell(sh)에서 rand 사용법  (0) 2018.11.06
[sh] predefined variables(special)  (0) 2018.09.28