다음과 같은 디스크 구성이 있습니다.
Disk /dev/sda: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x28ec8922
Device Boot Start End Blocks Id System
Disk /dev/sdb: 256.1 GB, 256060514304 bytes
255 heads, 63 sectors/track, 31130 cylinders, total 500118192 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: 0x72654d40
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sdb2 206848 62914559 31353856 7 HPFS/NTFS/exFAT
/dev/sdb3 62914560 167772159 52428800 7 HPFS/NTFS/exFAT
/dev/sdb4 167774206 284358655 58292225 5 Extended
/dev/sdb5 167774208 168357887 291840 83 Linux
/dev/sdb6 168359936 218357759 24998912 83 Linux
/dev/sdb7 218359808 268357631 24998912 83 Linux
/dev/sdb8 268359680 284358655 7999488 82 Linux swap / Solaris
Disk /dev/sdc: 24.0 GB, 24015495168 bytes
255 heads, 63 sectors/track, 2919 cylinders, total 46905264 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: 0x28ec8923
Device Boot Start End Blocks Id System
, /dev/sdb
두 개의 Windows 7 설치가 있습니다. /dev/sdb1은 Windows 시스템 파티션이고, /dev/sdb2
첫 번째 Windows 7 설치이고, /dev/sdb3
두 번째 Windows 7 설치입니다. 나머지 파티션은 Ubuntu 14.04이고 Grub을 사용하고 있습니다. grub 메뉴에는 Windows 로더만 나열되며, 부팅할 Windows 설치 중 하나를 선택하려면 Windows 로더로 이동해야 합니다. grub 메뉴에 Windows 설치를 나열할 수 있습니까?
다음 Grub 사용자 정의 메뉴를 사용해 보았지만 grub-update를 실행하면 OS가 감지되지 않습니다.
#!/bin/sh
exec tail -n +3 $0
menuentry "Ubuntu" {
recordfail
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='hd1,msdos5'
search --no-floppy --fs-uuid --set=root /dev/sdb5
linux /vmlinuz-3.13.0-24-generic root=UUID=/dev/sdb5 ro recovery nomodeset
initrd /initrd.img-3.13.0-24-generic
}
menuentry "Windows Lab" {
insmod ntfs
set root='hd1,1'
search --no-floppy --fs-uuid --set=root /dev/sdb2
chainloader+1
}
menuentry "Windows Personal" {
insmod ntfs
set root='hd1,1'
search --no-floppy --fs-uuid --set-root /dev/sdb3
chainloader+1
}
grub
Windows 7 설치 목록을 나열하는 메뉴를 얻으려면 어떻게 해야 합니까 ?