Ubuntu 12.04 파티션을 안전하게 삭제하고 Elementary OS에 할당되지 않은 공간을 사용할 수 있습니까?

Ubuntu 12.04 파티션을 안전하게 삭제하고 Elementary OS에 할당되지 않은 공간을 사용할 수 있습니까?

나는 다음과 같은 설정을 가지고 있습니다 :

영상

저는 기본 Linux 배포판으로 Elementary OS Luna(Ubuntu 12.04의 포크)로 전환하기로 결정했습니다. 이제 10Gb에 불과한 eOS 용량을 추가하려면 Ubuntu 파티션을 삭제해야 합니다.

현재 내 eOS /dev/sda9는 Ubuntu입니다 /dev/sda8/. 부트로더가 설치된 위치를 잊어버려서 bootinfoscript를 실행했는데 다음이 반환되었습니다.

`============================== 시작 정보 요약: =============== = ===============

=> Grub2(v1.99)는 /dev/sda의 MBR에 설치되며 동일한 하드 드라이브의 섹터 1에서 core.img를 찾습니다. core.img는 여기에 있으며 .

sda1: ____________________________________________________________________________

File system:       ntfs
Boot sector type:  Windows Vista/7: NTFS
Boot sector info:  No errors found in the Boot Parameter Block.
Operating System:  
Boot files:        /bootmgr /Boot/BCD

sda2: ______________________________________________________________

File system:       ntfs
Boot sector type:  Windows Vista/7: NTFS
Boot sector info:  No errors found in the Boot Parameter Block.
Operating System:  Windows 7
Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe

sda3: ____________________________________________________________________________

File system:       ntfs
Boot sector type:  Windows Vista/7: NTFS
Boot sector info:  No errors found in the Boot Parameter Block.
Operating System:  
Boot files:        /bootmgr /boot/bcd

sda4: ____________________________________________________________________________

File system:       Extended Partition
Boot sector type:  -
Boot sector info: 

sda5: ______________________________________________________________

File system:       ntfs
Boot sector type:  Windows Vista/7: NTFS
Boot sector info:  According to the info in the boot sector, sda5 starts 
                   at sector 2048.
Operating System:  
Boot files:        

sda6: ____________________________________________________________________________

File system:       swap
Boot sector type:  -
Boot sector info: 

sda7: ______________________________________________________________

File system:       ext4
Boot sector type:  Grub2 (v1.99)
Boot sector info:  Grub2 (v1.99) is installed in the boot sector of sda7 
                   and looks at sector 851823520 of the same hard drive 
                   for core.img, but core.img can not be found at this 
                   location.
Operating System:  
Boot files:        /grub/grub.cfg /extlinux/extlinux.conf

sda8: ____________________________________________________________________________

File system:       ext4
Boot sector type:  Grub2 (v1.99)
Boot sector info:  Grub2 (v1.99) is installed in the boot sector of sda8 
                   and looks at sector 860224256 of the same hard drive 
                   for core.img. core.img is at this location and looks 
                   for (,msdos9)/boot/grub on this drive.
Operating System:  Ubuntu 13.04
Boot files:        /etc/fstab

sda9: ______________________________________________________________

File system:       ext4
Boot sector type:  -
Boot sector info: 
Operating System:  elementary OS Luna
Boot files:        /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img`

진행 방법에 대한 조언이 필요합니다. 내 말은, Ubuntu와 /dev/sda7/ 파티션을 삭제하면 내 GRUB가 엉망이 되지 않을까요? 도와주세요, 감사합니다.

답변1

일반적으로 Ubuntu 파티션을 삭제하거나 Elementary OS를 설치할 수 없는 이유는 없습니다.

대부분의 경우 Linux 배포판은 사용 가능한 모든 운영 체제 설치(워싱턴 레드먼드의 결함이 있고 오래된 제품 포함)를 감지하고 감지된 설치를 기반으로 부팅 메뉴를 구축한 다음 드라이브의 MBR 부팅에 GRUB를 설치하려고 시도합니다. 따라서 GRUB 부팅 메뉴아마도Elementary OS를 설치하면 처음부터 다시 빌드됩니다.

Elementary OS 설치에 실패한 경우(더 정확하게는 GRUB 설치를 시도하기 전에 실패한 경우)그리고다른 파티션을 이동하거나 크기를 조정하지 않았다고 가정하면 부팅 블록의 나머지 GRUB 구성을 사용하여 다른 파티션으로 부팅할 수 있습니다.

부록: @d4ryl3은 "Ubuntu 및 /dev/sda7/ 파티션을 삭제하면 내 GRUB가 엉망이 되지 않을까요?"라는 질문을 통해 질문을 명확히 했습니다.아마도아니요. "

GRUB를 마지막으로 설치한 사람, 파티션을 찾기 위해 GRUB를 구성한 방법, 디스크를 다시 분할하려는 방법에 따라 다릅니다. 볼륨 ID나 볼륨 레이블을 찾도록 GRUB을 구성했다면 문제가 없을 것입니다. 왜냐하면 일반적으로 파티션을 이동할 때 볼륨 ID는 변경되지 않고 볼륨 레이블도 (명시적으로 변경하지 않는 한) 확실히 변경되지 않기 때문입니다.

OTOH GRUB이 "원래" 파티션 번호를 찾도록 구성된 경우에도 여전히아마도제대로. 예를 들어, /dev/sda7은 MBR 파티션 테이블의 7번째 항목이기 때문에 /dev/sda7이라고 합니다. 파티션 "삭제"대개파티션 항목을 유효하지 않거나 숨겨진 것으로 표시함을 나타냅니다.대개삭제된 항목을 채우기 위해 모든 후속 항목을 위로 이동한다는 의미는 아닙니다. 그렇게 하면 모든 항목에 새 파티션 번호가 부여되기 때문입니다. 파티션 번호가 변경되면 최신 파티션 구조를 알 수 있도록 GRUB 설치를 다시 실행해야 합니다.

파티션 항목이 이동되거나 파티션이 설명하는 데이터 블록이 이동되고 GRUB가 데이터 블록이 있던 위치에서 무언가를 이동해야 하는 경우 심각한 영향을 받을 수 있습니다. 귀하의 경우에는 두 시나리오 모두 불가능합니다. 그러나 결과에 영향을 미칠 수 있는 디스크를 다시 분할하는 방법은 설명하지 않았습니다.

다시 파티션을 나눈 후에 해야 할 두 가지 작업이 있습니다.앞으로재시작:

  • 시스템 유틸리티를 다시 실행하여 모든 운영 체제 파티션을 감지하고 GRUB를 MBR에 다시 설치하십시오.
  • GRUB가 포함된 부팅 가능한 USB 스틱을 만들어 손상을 복구할 확률을 절반으로 줄이세요.

관련 정보