Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 |
Tags
- H/W
- Linux
- program
- LiveCD(USB)
- Command
- game
- calculator
- web
- PC
- explorer
- MS Windows PE
- FTP
- script
- javascript
- Disk Partition
- Update
- MS windows
- Backup(Restore)
- 대항해시대
- OS(operating system)
- network
- Crack(Serial Key)
- portable
- Network Info(Tool)
- Programming
- SSH
- apm
- webhard
- Windows 10
- UNIX
Archives
- Today
- Total
<In Story>
raw device size 확인 스크립트 // [Unix] [Linux] [Script] [Programming] [Command] 본문
Programming/Script
raw device size 확인 스크립트 // [Unix] [Linux] [Script] [Programming] [Command]
<In Story, Hi story, History> 2015. 6. 6. 18:20http://ktdsoss.tistory.com/174
#!/bin/sh
DISK=`cat /etc/sysconfig/rawdevices | grep -v \# | awk -F /dev/ '{print $3}'`
for i in $DISK
do
SIZE=`cat /proc/partitions | grep $i | awk '{print $3}'`
echo $i $(($SIZE/1024/1024)) GB
done
-- by 이찬호