예전 우분투를 사용하다가 한동안 떠나있었던 초보입니다.
이번에 크런치뱅을 이용할 마음으로 Xp가 설치된 노트북에 파티션 나눈 D드라이브를 밀고
크런치뱅을 설치했습니다. 그런데 grub 메뉴엔트리에 xp가 뜨질 않습니다.
검색해서 grub custom config 도 건드려보고 했지만 잘되질 않네요…
현재 fdisk 상황은
hyunsookim@crunchbang:~$ fdisk -l /dev/sda
Cannot open /dev/sda
hyunsookim@crunchbang:~$ sudo fdisk -l /dev/sda
[sudo] password for hyunsookim:
Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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: 0xbed60006
Device Boot Start End Blocks Id System
/dev/sda1 288342016 488396799 100027392 83 Linux
/dev/sda2 20980951 288342015 133680532+ f W95 Ext’d (LBA)
/dev/sda5 * 20980953 281008979 130014013+ 7 HPFS/NTFS/exFAT
/dev/sda6 281010176 288342015 3665920 82 Linux swap / Solaris
Partition table entries are not in disk order
입니다.
고수님들 도와주세요 현재 Xp를 버릴수는 없는 상황이라 많이 답답하네요…
/boot/grub/custom.cfg를 편집하셔서
[code:7gj6i6ta]
menuentry "Windows XP" {
insmod vfat
insmod ntfs
insmod ntldr
search -s -f /ntldr
ntldr /ntldr
}
menuentry "Windows 7" {
insmod vfat
insmod ntfs
insmod ntldr
search -s -f /bootmgr
ntldr /bootmgr
}[/code:7gj6i6ta]
[quote="protochaos":55h6alah]/boot/grub/custom.cfg를 편집하셔서
[code:55h6alah]
menuentry "Windows XP" {
insmod vfat
insmod ntfs
insmod ntldr
search -s -f /ntldr
ntldr /ntldr
}
menuentry "Windows 7" {
insmod vfat
insmod ntfs
insmod ntldr
search -s -f /bootmgr
ntldr /bootmgr
}[/code:55h6alah][/quote:55h6alah]
소중한 답변 감사합니다.
다만 리부팅을 하고 나서 엔트리에 목록은 떳으나 ntldr 관련 에러가 나오는 군요. ntldr관련해서 찾질 못하는건가요.
root=를 줘서 (hd0,5)를 잡아줬을때도 에러가 났었습니다.
sda5가 논리파티션이라서 그런걸까요. 부팅플래그는 줬습니다.
[quote="qoodaa":2rkbl7zt]
소중한 답변 감사합니다.
다만 리부팅을 하고 나서 엔트리에 목록은 떳으나 ntldr 관련 에러가 나오는 군요. ntldr관련해서 찾질 못하는건가요.
root=를 줘서 (hd0,5)를 잡아줬을때도 에러가 났었습니다.
sda5가 논리파티션이라서 그런걸까요. 부팅플래그는 줬습니다.[/quote:2rkbl7zt]
sda5가 윈도우즈 파티션이군요.
문제는 extfat으로 포멧되어서 그런 것입니다.
extfat은 GRUB에서 지원하지 못하지 싶습니다.
extfat을 리눅스에서 지원하는 경우는 fuse를 사용하는 fuse-exfat을 사용해야하고,
fuse를 사용하려면 리눅스 커널에 진입해야 합니다.
그렇기 때문에, GRUB에서 자동검색 및 메뉴로 추가되질 못하는 것입니다.
참고로 위에서 적어준 insmod fat, insmod ntfs등이 GRUB에서 파일시스템을 읽는 모듈입니다.
그러니까 exfat대신 ntfs로 포멧하시거나,
부트로더를 GRUB대신 윈도우즈 부트로더를 MBR에 설치하시고,
GRUB4DOS를 다운받아 설치하여, 윈도우즈 부트메뉴에 GRUB4DOS를 추가하고,
GRUB4DOS에서, 리눅스로 진입하는 방법이 있습니다.
단 이 경우에도, GRUB4DOS가 exfat을 지원하지 않는 관계로,
GRUB4DOS가 위치하는 파티션은 fat,fat32,ntfs중의 하나로 설정하셔야 합니다.
써주신 덧글을 토대로 늦었지만 성공했습니다.
정말 감사합니다^^