1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | [root@172_29_140_173 sbin]# parted GNU Parted 1.8.1 Using /dev/sda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Model: AIX VDASD (scsi) Disk /dev/sda: 21.5GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags 1 32.3kB 8225kB 8193kB primary boot, prep 2 8225kB 115MB 107MB primary ext3 3 115MB 19.3GB 19.2GB primary ext3 4 19.3GB 21.4GB 2089MB primary linux-swap |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | [root@172_29_140_173 sbin]# mkfs.ext3 /dev/sda1 mke2fs 1.39 (29-May-2006) Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) 2000 inodes, 8000 blocks 400 blocks (5.00%) reserved for the super user First data block=1 Maximum filesystem blocks=8388608 1 block group 8192 blocks per group, 8192 fragments per group 2000 inodes per group Writing inode tables: done Creating journal (1024 blocks): done Writing superblocks and filesystem accounting information: done |
1 2 3 4 | root@172_29_140_173 sbin]# resize2fs /dev/sda1 1G resize2fs 1.39 (29-May-2006) The containing partition (or device) is only 8001 (1k) blocks. You requested a new size of 1048576 blocks. |
1 2 3 4 5 6 7 8 | root@172_29_140_173 sbin]# rpm -qa |more popt-1.10.2-47.el5 pcre-6.6-1.1 libICE-1.0.1-2.1 libattr-2.4.32-1.1 libxslt-1.1.17-2 libgfortran-4.1.2-14.el5 bc-1.06-21 |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |