तुम हमेशा fdisk -l
जो, बहुत अच्छी तरह से काम करने के लिए भी इस तरह के EC2 xvda उपकरणों के रूप में अजीब व्यवस्था पर लगता है कर सकते हैं।
[email protected]:~# fdisk -l
Disk /dev/xvda1: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders, total 20971520 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/xvda1 doesn't contain a valid partition table
Disk /dev/xvda2: 365.0 GB, 365041287168 bytes
255 heads, 63 sectors/track, 44380 cylinders, total 712971264 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/xvda2 doesn't contain a valid partition table
Disk /dev/xvda3: 939 MB, 939524096 bytes
255 heads, 63 sectors/track, 114 cylinders, total 1835008 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/xvda3 doesn't contain a valid partition table
mount
कहते हैं जबकि:
[email protected]:~# mount
/dev/xvda1 on/type ext4 (rw)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
/dev/xvda2 on /mnt type ext3 (rw)
और /proc/partitions
का कहना है:
यहाँ एक m1.large उदाहरण के लिए एक डंप है
[email protected]:~# cat /proc/partitions
major minor #blocks name
202 1 10485760 xvda1
202 2 356485632 xvda2
202 3 917504 xvda3
साइड नोट
कैसे fdisk -l
काम कुछ ऐसा है जो मुझे खुद को जानना अच्छा लगेगा।
आप विभाजन की एक सूची चाहते हैं जब से तुम उन्हें शायद घुड़सवार होने के बारे में बात करते हैं, मुझे लगता है कि नहीं, की डिस्क? –
विभाजन ठीक हैं, हाँ, हाँ :) .. अगर मुझे विभाजन पता है, तो मुझे यह भी पता चलेगा कि भौतिक उपकरण – warren
उपलब्ध हैं क्योंकि [यूनिक्स और लिनक्स] (http://unix.stackexchange.com) अब उपलब्ध है, इस प्रश्न को – warren