ntfsresize ã使ã£ã¦ãNTFSãªãã¼ãã£ã·ã§ã³ã®ãµã¤ãºãå¤æ´ããæ¹æ³ã
2023å¹´9æ19æ¥ãè¨äºãå°ãæ´æ°ãã¾ãã
Windowså´ã§ããã©ã°ãè¡ãã
ãããã©ã°ãè¡ããã¨ã§ãã¼ãã£ã·ã§ã³ã®å¾åé¨åãæªä½¿ç¨ãªé åã«ããã
linuxãèµ·åããã
- linuxã®ã¤ã³ã¹ãã¼ã©ã«ä»å±ãã¦ãã rescue mode ï¼ã¬ã¹ãã¥ã¼ã¢ã¼ãï¼
- live CD
ãªã©ã使ã£ã¦USBãCDROMçµç±ã§Linuxãèµ·åãã¾ãã
ãã¼ãã£ã·ã§ã³æ å ±ã®ç¢ºèª
- fdisk /dev/hda
- "u" ã³ãã³ãã§ãã»ã¯ã¿åä½ã®è¡¨ç¤ºã¢ã¼ãã«åãæ¿ãã¦
- 1ã»ã¯ã¿ã®ãã¤ãæ°ã確èªãã¦ãããæ®éã512Bytes
- 念ã®ãããNTFSãªãã¼ãã£ã·ã§ã³ã®éå§ã»ã¯ã¿ã¨çµäºã»ã¯ã¿ãã¡ã¢ãã¦ããã
ntfsã®ããªã¥ã¼ã ã«é¢ããæ å ±ã確èª
$ntfsresize -n -i /dev/hda1
以ä¸ã®æ å ±ã確èª
- å²ãå½ã¦ãããããªã¥ã¼ã ã®ãµã¤ãº
- å²ãå½ã¦ãããããã¤ã¹ã®ãµã¤ãº
ãµã¤ãºãå¤æ´ãã
å³å¯ãªããªã¥ã¼ã ã®ãµã¤ãºã¯ã»ã¯ã¿ã®æ´æ°åã§æå®ããå¿ è¦ãããããããé¢åãªè¨ç®ã¯ãntfsresizeãåæã«ãã£ã¦ããããã¨ããããã22G ããããæå®ãã¦ã¿ãã
$ ntfsresize -n -s 22000M /dev/hda1
"-n" ãªãã·ã§ã³ãä»ããã¨å®éã«æ¸ãè¾¼ã¿ãè¡ããªãã¢ã¼ãã§åä½ç¢ºèªãã§ãããã¨ã©ã¼ãåºãªããã°ã"-n"ãå¤ãã¦
$ ntfsresize -s 22000M /dev/hda1
ã¨ããã°ãç´22GByteã«ãªãµã¤ãºãããã
å®éã«å²ãå½ã¦ããã»ã¯ã¿æ°ã確èªã
å度 ntfsresize ãå®è¡ããããªã¥ã¼ã ã®ãµã¤ãºã確èªããããã ããä»åã¯"-f"ãä»ããå¿ è¦ãããã
$ntfsresize -f -n -i /dev/hda1
ãå®éã«å²ãå½ã¦ãããããªã¥ã¼ã ã®ãµã¤ãºãã»ã¯ã¿ã®é·ãã§å²ããã¨ã§ãå®éã«å¿ è¦ãªããã¤ã¹ã®ã»ã¯ã¿æ°ãè¨ç®ã§ããã
fdisk ã§ããã¼ãã£ã·ã§ã³ããªãµã¤ãºãã
å¿ è¦ãªã»ã¯ã¿æ°ãããã£ãããfdisk ã§ãã¼ãã£ã·ã§ã³ããªãµã¤ãºããã
$ fdisk /dev/hda
- ä¸åº¦ãã¼ãã£ã·ã§ã³ãæ¶ã
- "u"ã³ãã³ãã§ãã»ã¯ã¿åä½ã®ã¢ã¼ãã«å¤æ´ããã
- å¿ è¦ãªã»ã¯ã¿æ°ã®ãã¼ãã£ã·ã§ã³ãä½æããã
- "t"ã³ãã³ãã§ããã¼ãã£ã·ã§ã³ã® type ãã7 (NTFS) ã«ããã
- "a"ã³ãã³ãã§ããã¼ãã£ã·ã§ã³ãactive ã«ããã
- åé¡ãªããã°ã"w"ã³ãã³ãã§ãå¤æ´ãæ¸ãè¾¼ãã