
내 시스템은 Ubuntu 12.04.1 LTS 및 Windows 7을 듀얼 부팅하도록 구성되었습니다. 오늘 저는 Windows 8의 MSDN 버전을 구해 Windows 7에 설치했습니다. 이제 GRUB 화면을 로드하지 않고 컴퓨터가 Windows 8로 직접 부팅됩니다.
그래서 아래 제안된 단계를 따랐습니다.https://help.ubuntu.com/community/RecoveringUbuntuAfterInstallingWindows. 다음 명령을 실행하세요:
ls -l /dev/disk/by-label/
다음과 같은 출력을 제공합니다.
total 0
lrwxrwxrwx 1 root root 10 Sep 11 07:51 Entertainment -> ../../sda2
lrwxrwxrwx 1 root root 10 Sep 11 02:45 PENDRIVE -> ../../sdb1
이 명령은 또한 fdisk -l
다음과 같은 출력을 제공합니다.
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x1246aa23
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 319582199 159790076 7 HPFS/NTFS/exFAT
/dev/sda2 319582208 602906623 141662208 7 HPFS/NTFS/exFAT
/dev/sda3 602908672 625135615 11113472 83 Linux
Disk /dev/sdb: 1939 MB, 1939865600 bytes
64 heads, 63 sectors/track, 939 cylinders, total 3788800 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc3072e18
Device Boot Start End Blocks Id System
/dev/sdb1 * 2248 3788799 1893276 c W95 FAT32 (LBA)
그래서 나는 이것을 실행해야 한다고 가정합니다: sudo grub-install /dev/sda3
GRUB를 시작하고 실행하십시오. 하지만 다음 오류가 발생합니다.
/usr/sbin/grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?).
누구든지 나를 올바른 방향으로 안내할 수 있습니까? 현재 Ubuntu 설치는 부팅 관리자 문제로 인해 손실될 필요에 비해 너무 사용자 정의되어 있습니다! 어떤 도움이라도 대단히 감사하겠습니다!
답변1
chroot 방법을 사용해 보십시오: (이 모든 명령을 루트에서 사용하거나 sudo를 사용하십시오)
mount /dev/sda3 /mnt/
mount -o bind /dev /mnt/dev
mount -o bind /proc /mnt/proc
cp /proc/mounts /mnt/etc/mtab/
chroot /mnt /bin/bash
grub-install /dev/sda
답변2
Windows 부팅 관리자를 사용하여 언제든지 이중 부팅을 생성할 수 있습니다.
Ubuntu 항목을 추가하는 프로세스는 다음과 같습니다.
- Ubuntu "/boot/grub/boot.img"에서 Windows "c:\"로 복사합니다(Windows에서 "ext2fsd" 유틸리티를 사용하여 Ubuntu 파일 시스템에 액세스할 수 있음)
- c:\boot.img를 가리키는 Windows BCD에서 부팅 섹터 로더를 만듭니다.
답변3
sudo grub-install /dev/sda
GRUB는 파티션이 아닌 드라이브의 MBR에 설치되기 때문입니다.