ÔõÑù¾ÙÐÐLinuxϵͳµÄÎļþϵͳÖÎÀíºÍ´ÅÅÌÖÎÀí
LinuxϵͳµÄÎļþϵͳÖÎÀíºÍ´ÅÅÌÖÎÀíÊÇLinuxϵͳÖÎÀíÔ±±ØÐèÒªÕÆÎյĻù±¾ÊÖÒÕÖ®Ò»¡£ÔÚLinuxϵͳÖУ¬ÒªÖÎÀíÎļþϵͳºÍ´ÅÅÌ£¬¿ÉÒÔʹÓÃһЩ»ù±¾µÄÏÂÁîºÍ¹¤¾ß£¬Èç fdisk¡¢parted¡¢mkfs¡¢mount¡¢df µÈ¡£
Éó²éÎļþϵͳºÍ´ÅÅÌÐÅÏ¢
ÔÚʹÓÃLinuxϵͳÖÎÀíÎļþϵͳºÍ´ÅÅÌ֮ǰ£¬Ê×ÏÈÒªÉó²éϵͳÖÐÎļþϵͳºÍ´ÅÅ̵ÄÐÅÏ¢¡£¿ÉÒÔʹÓÃÒÔÏÂÏÂÁîÀ´Éó²éϵͳÖдÅÅ̺ÍÎļþϵͳµÄÐÅÏ¢£º
# Éó²éÓ²ÅÌÐÅÏ¢ sudo fdisk -l # Éó²éÎļþϵͳÐÅÏ¢ sudo df -h
µÇ¼ºó¸´ÖÆ
´ÅÅÌ·ÖÇøºÍÃûÌû¯
ÔÚLinuxϵͳÖУ¬ÒªÊ¹ÓôÅÅÌ£¬ÐèÒª½«Æä¾ÙÐзÖÇø£¬²¢ÃûÌû¯·ÖÇø¡£¿ÉÒÔʹÓà fdisk »ò parted ¹¤¾ß¶Ô´ÅÅ̾ÙÐзÖÇø¡£
# ʹÓÃfdisk¶Ô´ÅÅ̾ÙÐзÖÇø sudo fdisk /dev/sdb # ʹÓÃparted¶Ô´ÅÅ̾ÙÐзÖÇø ÒÔMBΪµ¥Î» sudo parted /dev/sdb (parted) (parted) print (parted) unit MB (parted) mklabel gpt (parted) mkpart primary 0 1000 (parted) print (parted) quit
µÇ¼ºó¸´ÖÆ
·ÖÇøÍê³Éºó£¬ÐèÒª¶Ôÿ¸ö·ÖÇø¾ÙÐÐÃûÌû¯²Ù×÷£¬³£ÓÃÃûÌû¯ÏÂÁîÓÐ mkfs.ext4¡¢mkfs.ntfs¡¢mkfs.fat32 µÈ¡£
# ÃûÌû¯·ÖÇø sudo mkfs.ext4 /dev/sdb1
µÇ¼ºó¸´ÖÆ
¹ÒÔغÍжÔØÎļþϵͳ
ÔÚLinuxϵͳÖУ¬ÎļþϵͳÐèÒª¹ÒÔص½Ö¸¶¨Â·¾¶ÉÏʹÓ㬿ÉÒÔÔÚ /etc/fstab ÎļþÖÐÉ趨¿ª»ú×Ô¶¯¹ÒÔصÄÑ¡Ïî¡£ÏÂÃæÑÝʾÔõÑùÊÖ¶¯¹ÒÔغÍжÔØÎļþϵͳ¡£
# ¹ÒÔØÎļþϵͳ sudo mount /dev/sdb1 /mnt # жÔØÎļþϵͳ sudo umount /mnt
µÇ¼ºó¸´ÖÆ
À©Õ¹»òËõ¶ÌÎļþϵͳ
ÔÚʹÓÃÀú³ÌÖУ¬¿ÉÄÜÐèÒª¶ÔÎļþϵͳ¾ÙÐÐÀ©Õ¹»òËõ¶Ì²Ù×÷£¬¿ÉÒÔʹÓà resize2fs ÏÂÁî¡£
# À©Õ¹Ä¿½ñÎļþϵͳ sudo resize2fs /dev/sdb1
µÇ¼ºó¸´ÖÆ
ÒÔÉÏÊÇLinuxϵͳµÄÎļþϵͳÖÎÀíºÍ´ÅÅÌÖÎÀíµÄ»ù±¾²Ù×÷Ö¸ÄϺÍÏÂÁîʾÀý£¬ÎÒÃÇÐèÒªÕÆÎÕ²¢ÎÞаӦÓá£ËäÈ»£¬ÈôÊÇÐèÒª¾ÙÐÐÔ½·¢ÖØ´óµÄ²Ù×÷£¬ÀýÈç RAID µÈ£¬Ò²ÐèÒªÔöǿѧϰºÍʵ¼ù¡£
ÒÔÉϾÍÊÇÔõÑù¾ÙÐÐLinuxϵͳµÄÎļþϵͳÖÎÀíºÍ´ÅÅÌÖÎÀíµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡