vmware 新增硬碟
[root@new-host-832 home]# fdisk -l
Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2544 20434648+ 83 Linux
/dev/sda2 2545 2610 530145 82 Linux swap / Solaris
Disk /dev/sdb: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 2610 20964793+ 83 Linux
Disk /dev/sdc: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
[root@new-host-832 home]# fdisk /dev/sdc (select n -> p -> 1 -> enter -> enter -> w)
[root@new-host-832 home]# mkfs.ext3 /dev/sdc1
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
5242880 inodes, 10484412 blocks
524220 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
320 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 38 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@new-host-832 home]# mount /dev/sdc1 /home/carlosnew/
[root@new-host-832 home]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 19G 7.3G 11G 41% /
tmpfs 379M 0 379M 0% /dev/shm
/dev/sdb1 20G 18G 1.6G 92% /home/DDRcodtelN
/dev/sdc1 40G 177M 38G 1% /home/carlosnew
vim /etc/rc.d/rc.local add below line:
mount -t ext3 /dev/sdc1 /home/carlosnew/
留言