콘텐츠로 건너뛰기
Home » 20091204 :: Gparted를 대신할 명령줄 명령어

20091204 :: Gparted를 대신할 명령줄 명령어

기록차원에서 남겨둡니다.
0. Following Steps need ‘ntfsresize’ which is able to be installed with “sudo apt-get install ntfsprogs“. And MUST UNMOUNT partition to be resized.

1. Check file system on /dev/sdaX for errors and (if possible) fix them

ntfsresize -P -l -f -v /dev/sda6 (sda6은 변경할 장치 디스크의 id)

2. Shirink file system (simulate)

ntfsresize -P -force /dev/sda6 -s 76585549823 -no-actionㅠ  (빨간 숫자는 용량)

3. Real resize

ntfsresize -P -force /dev/sda6 -s 76585549823

4. Check file system on /dev/sdaX for errors and (if possible) fix them once again.

ntfsresize -P -l -f -v /dev/sda6

5. Now move EXT4 partition to the left. First, check EXT4 journaling system. At this time you use ‘e2fsck’

e2fsck -f -y -v /dev/sda7
하지만 root 파티션을 변경하기 위해서는 unmount해야 하고 결국은 라이브 시디가 있어야 한다는 소리 ㅠㅠ. 티스토리 분점에서 이어진 글임.