2009. 5. 19. 23:38 IT/리눅스 TIP
Hidden HPFS/NTFS 와 lilo
windows XP를 잘 쓰고 있다가 linux 데비안(Debian)을 써야 할 일이 있어 멀티부팅으로 또 설치를 했다. 그런데 한가지 문제가 생겼다. 다른 PC에서는 잘 설치되던 GRUB이 에러가 생기면서 설치가 되지 않는 것이었다. 할 수 없이 LILO로 대체했다. 다 설정을 마치고 XP로 돌아와 부팅을 하고 보니 멀쩡하던 XP의 NTFS 2번째 파티션이 보이지 않는 것이었다.
다음 화면은 diskmgmt.msc를 실행시켜 본 화면이다. 알 수 없는 파티션으로 나타난다.
XP에서는 이 문제를 해결할 방법이 보이지 않아 데비안으로 재부팅하여 fdisk를 실행시켜 보았다. 다음과 같이 Hidden NTFS파티션으로 나타난다.
debian:~# fdisk /dev/sda
The number of cylinders for this disk is set to 77825.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sda: 640.1 GB, 640133946880 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 25496 204796588+ 7 HPFS/NTFS
/dev/sda2 25497 50992 204796620 17 Hidden HPFS/NTFS
/dev/sda3 50993 77825 215536072+ 83 Linux
어떡하랴!! 또 다시 구글신에게 물어보는 수 밖에....
1. 데비안에서 fdisk를 실행하여 파일시스템 ID를 변경하고 저장한다.
debian:~# fdisk /dev/sda
The number of cylinders for this disk is set to 77825.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sda: 640.1 GB, 640133946880 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 25496 204796588+ 7 HPFS/NTFS
/dev/sda2 25497 50992 204796620 17 Hidden HPFS/NTFS
/dev/sda3 50993 77825 215536072+ 83 Linux
Command (m for help): t
Partition number (1-4): 2
Hex code (type L to list codes): 7
Changed system type of partition 2 to 7 (HPFS/NTFS)
Command (m for help): p
Disk /dev/sda: 640.1 GB, 640133946880 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 25496 204796588+ 7 HPFS/NTFS
/dev/sda2 25497 50992 204796620 7 HPFS/NTFS
/dev/sda3 50993 77825 215536072+ 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
The new table will be used at the next reboot.
Syncing disks.
2. 다음과 같이 lilo.conf 의 설정을 추가하고 다시 한번 lilo를 실행시켜 준다.
3. 다시 XP로 부팅하여 보면 정상적으로 인식된다.
--------------------------
# Boot up Linux by default.
#
default=Windows
change-rules
reset
image=/vmlinuz
label=Linux
read-only
# restricted
# alias=1
----------------------------
debian:~# lilo
Added Linux
Skipping /vmlinuz.old
Added Windows *
'IT > 리눅스 TIP' 카테고리의 다른 글
데비안 하드디스크 추가방법 (0) | 2009.05.22 |
---|---|
promise raid카드 데비안에서 사용하기(두번째) (0) | 2009.05.22 |
데비안에서 rsync를 이용한 백업 (0) | 2009.05.22 |
Crontab 사용하기 (0) | 2009.05.21 |
Hidden HPFS/NTFS 와 lilo (0) | 2009.05.19 |
데비안 5.0(lenny) 이 안정화 공식버전이 되다. (0) | 2009.05.19 |
댓글을 달아 주세요