如题所述
ããåè¨ï¼æ们åå¼å§å¨èææºä¸å®è£
ubuntuçæ¶åï¼æ»æ¯èä¸å¾åé
太å¤ç硬ç空é´ãä½ç¨çç¨çæ¶é´ä¹
äºç¡¬çå°±ä¸å¤äºãä¸ç§æ笨çæ¹æ³å°±æ¯éè£
ç³»ç»ï¼ä½å´è´¹æ¶è´¹ç¥ãå¦æè½å¤å¨ä¸éè£
ç³»ç»çæ
åµä¸å¢å 硬ç就好äºãä¸é¢å°±æ¥å®ç°å®ã
ããäº.
ãã1.é¦å æubuntu shutdown.
ãã2.å¨VMwareéç¹å»èåVMââ>Settings
ãã3.å¨Hardwareéé¢åå»åºä¸çAddæé®ï¼ç¶åéæ©Hard Diskââ>Nextââ>Nextââ>Disk size(GB)æ¯æ°å¢ç¡¬çç大å°ââ>Nextââ>Finishââ>Ok. è¿æ ·å¨VMwareçDeviceséå°±å¤äºä¸ä¸ªHard Disk 2ã
ããä¸ï¼æ¥ä¸æ¥å°±æ¯è¿å ¥ubuntuï¼ææ°ç硬çmountè¿å»äºã
ãã1.
ããroot@sparkle-desktop:~# fdisk -l
ããDisk /dev/sda: 17.1 GB, 17179869184 bytes
ãã255 heads, 63 sectors/track, 2088 cylinders
ããUnits = cylinders of 16065 * 512 = 8225280 bytes
ããDisk identifier: 0x000af2a2
ããDevice Boot Start End Blocks Id System
ãã/dev/sda1 * 1 993 7976241 83 Linux
ãã/dev/sda2 994 1044 409657+ 5 Extended
ãã/dev/sda5 994 1044 409626 82 Linux swap / Solaris
ããDisk /dev/sdb: 8589 MB, 8589934592 bytes
ãã255 heads, 63 sectors/track, 1044 cylinders
ããUnits = cylinders of 16065 * 512 = 8225280 bytes
ããDisk identifier: 0x00000000
ããDisk /dev/sdb doesn't contain a valid partition table
ããå¯ä»¥çå°å¤äºä¸ä¸ª /dev/sdb
ãã2.
ããä¸é¢æ¯æ ¼å¼åæext3æ件系ç»
ããroot@sparkle-desktop:~# mkfs -t ext3 /dev/sdb
ããmke2fs 1.40.8 (13-Mar-2008)
ãã/dev/sdb is entire device, not just one partition!
ããProceed anyway? (y,n) y //ææ´ä¸ªæ°ç¡¬ä»¶æ ¼å¼åï¼ä¸ååºã
ããFilesystem label=
ããOS type: Linux
ããBlock size=4096 (log=2)
ããFragment size=4096 (log=2)
ãã524288 inodes, 2097152 blocks
ãã104857 blocks (5.00%) reserved for the super user
ããFirst data block=0
ããMaximum filesystem blocks=2147483648
ãã64 block groups
ãã32768 blocks per group, 32768 fragments per group
ãã8192 inodes per group
ããSuperblock backups stored on blocks:
ãã32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
ããWriting inode tables: done
ããCreating journal (32768 blocks): done
ããWriting superblocks and filesystem accounting information: done
ããThis filesystem will be automatically checked every 26 mounts or
ãã180 days, whichever comes first. Use tune2fs -c or -i to override.
ããroot@sparkle-desktop:~#
ãã3.
ããroot@sparkle-desktop:~# cd /home
ããroot@sparkle-desktop:/home# mkdir work
ããroot@sparkle-desktop:/home# mount /dev/sdb work //æ硬çmountå°workç®å½ã
ããroot@sparkle-desktop:/home# cd work
ããroot@sparkle-desktop:/home/work# ls
ããlost+found
ãã4.
ããç¨dfå½ä»¤æ¥çä¸ä¸æè½½æ åµ
ããroot@sparkle-desktop:~# df
ããFilesystem 1K-blocks Used Available Use% Mounted on
ãã/dev/sda1 7913216 7803524 0 100% /
ããvarrun 257788 240 257548 1% /var/run
ããvarlock 257788 0 257788 0% /var/lock
ããudev 257788 48 257740 1% /dev
ããdevshm 257788 44 257744 1% /dev/shm
ããlrm 257788 39760 218028 16% /lib/modules/2.6.24-19-generic/volatile
ãã/dev/sdb 8322488 149632 7753428 2% /home/work
ããgvfs-fuse-daemon 7913216 7803524 0 100% /root/.gvfs
ããçå°/dev /sdb 8322488 149632 7753428 2% /home/work
ããä¸é¡¹ï¼ å¯è§æåäºã
ãã5.å®ç°å¯å¨èªå¨æè½½ã
ããroot@sparkle-desktop:~# gedit /etc/fstab
ããæ ¹æ®ä¸é¢çæ ¼å¼
ãã# <file system> <mount point> <type> <options> <dump> <pass>
ããæ们èªå·±æ·»å ï¼
ãã/dev/sdb /home/work ext3 defaults 0 0
ããéå¯ï¼è¿æ ·å°±å®æäºå¢å 硬ççå ¨é¨æ¥éª¤äºã
ããäº.
ãã1.é¦å æubuntu shutdown.
ãã2.å¨VMwareéç¹å»èåVMââ>Settings
ãã3.å¨Hardwareéé¢åå»åºä¸çAddæé®ï¼ç¶åéæ©Hard Diskââ>Nextââ>Nextââ>Disk size(GB)æ¯æ°å¢ç¡¬çç大å°ââ>Nextââ>Finishââ>Ok. è¿æ ·å¨VMwareçDeviceséå°±å¤äºä¸ä¸ªHard Disk 2ã
ããä¸ï¼æ¥ä¸æ¥å°±æ¯è¿å ¥ubuntuï¼ææ°ç硬çmountè¿å»äºã
ãã1.
ããroot@sparkle-desktop:~# fdisk -l
ããDisk /dev/sda: 17.1 GB, 17179869184 bytes
ãã255 heads, 63 sectors/track, 2088 cylinders
ããUnits = cylinders of 16065 * 512 = 8225280 bytes
ããDisk identifier: 0x000af2a2
ããDevice Boot Start End Blocks Id System
ãã/dev/sda1 * 1 993 7976241 83 Linux
ãã/dev/sda2 994 1044 409657+ 5 Extended
ãã/dev/sda5 994 1044 409626 82 Linux swap / Solaris
ããDisk /dev/sdb: 8589 MB, 8589934592 bytes
ãã255 heads, 63 sectors/track, 1044 cylinders
ããUnits = cylinders of 16065 * 512 = 8225280 bytes
ããDisk identifier: 0x00000000
ããDisk /dev/sdb doesn't contain a valid partition table
ããå¯ä»¥çå°å¤äºä¸ä¸ª /dev/sdb
ãã2.
ããä¸é¢æ¯æ ¼å¼åæext3æ件系ç»
ããroot@sparkle-desktop:~# mkfs -t ext3 /dev/sdb
ããmke2fs 1.40.8 (13-Mar-2008)
ãã/dev/sdb is entire device, not just one partition!
ããProceed anyway? (y,n) y //ææ´ä¸ªæ°ç¡¬ä»¶æ ¼å¼åï¼ä¸ååºã
ããFilesystem label=
ããOS type: Linux
ããBlock size=4096 (log=2)
ããFragment size=4096 (log=2)
ãã524288 inodes, 2097152 blocks
ãã104857 blocks (5.00%) reserved for the super user
ããFirst data block=0
ããMaximum filesystem blocks=2147483648
ãã64 block groups
ãã32768 blocks per group, 32768 fragments per group
ãã8192 inodes per group
ããSuperblock backups stored on blocks:
ãã32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
ããWriting inode tables: done
ããCreating journal (32768 blocks): done
ããWriting superblocks and filesystem accounting information: done
ããThis filesystem will be automatically checked every 26 mounts or
ãã180 days, whichever comes first. Use tune2fs -c or -i to override.
ããroot@sparkle-desktop:~#
ãã3.
ããroot@sparkle-desktop:~# cd /home
ããroot@sparkle-desktop:/home# mkdir work
ããroot@sparkle-desktop:/home# mount /dev/sdb work //æ硬çmountå°workç®å½ã
ããroot@sparkle-desktop:/home# cd work
ããroot@sparkle-desktop:/home/work# ls
ããlost+found
ãã4.
ããç¨dfå½ä»¤æ¥çä¸ä¸æè½½æ åµ
ããroot@sparkle-desktop:~# df
ããFilesystem 1K-blocks Used Available Use% Mounted on
ãã/dev/sda1 7913216 7803524 0 100% /
ããvarrun 257788 240 257548 1% /var/run
ããvarlock 257788 0 257788 0% /var/lock
ããudev 257788 48 257740 1% /dev
ããdevshm 257788 44 257744 1% /dev/shm
ããlrm 257788 39760 218028 16% /lib/modules/2.6.24-19-generic/volatile
ãã/dev/sdb 8322488 149632 7753428 2% /home/work
ããgvfs-fuse-daemon 7913216 7803524 0 100% /root/.gvfs
ããçå°/dev /sdb 8322488 149632 7753428 2% /home/work
ããä¸é¡¹ï¼ å¯è§æåäºã
ãã5.å®ç°å¯å¨èªå¨æè½½ã
ããroot@sparkle-desktop:~# gedit /etc/fstab
ããæ ¹æ®ä¸é¢çæ ¼å¼
ãã# <file system> <mount point> <type> <options> <dump> <pass>
ããæ们èªå·±æ·»å ï¼
ãã/dev/sdb /home/work ext3 defaults 0 0
ããéå¯ï¼è¿æ ·å°±å®æäºå¢å 硬ççå ¨é¨æ¥éª¤äºã
温馨提示:答案为网友推荐,仅供参考
第1个回答 2014-12-17
分配新硬盘就好