CAFE

부팅

펌 리눅스 mbr 제거

작성자동우|작성시간11.11.29|조회수467 목록 댓글 0

http://forums.whirlpool.net.au/archive/1103602
dd if=/dev/null of=/dev/sdX bs=512 count=1

sudo dd if=/dev/zero of=/dev/<disk identifier> bs=8M

sudo  dd if=/dev/zero of=/dev/hda bs=1M 로우 레벨

dd if=/dev/zero of=/dev/hda bs=1k seek=blockcount

정말 한참 걸립니다 중간에 빼면 하드 망가질수 있다니 절대 빼면 안된다네요.. 강제로 멈추거나요..


파티션이 GPT의 경우 삭제 안됩니다..startx 하셔서 gparted를 통해 mbr을 초기화 하세요

http://cafe.daum.net/candan/HXP5/102

gpt 초기화 방법



우선 dd if=/dev/zero of=/dev/hda bs=446 count=122 로 추기화 해야 하네요..


usb에 하드에 용량이 있으면 거기 까지만 찾고 더 이상 안되기도 하네요


http://www.addictivetips.com/windows-tips/how-to-completely-wipe-erase-hard-disk-drive-step-by-step-guide/


http://www.bootdisk.com/

미니씨디





dd if=/dev/zero of=/dev/sdX bs=512 count=128

천천히 완전히 지우기


An old thread, but for passers by ... 옛날 방식

dd if=/dev/zero of=/dev/sdX bs=446 count=1


will wipe the MBR only, leaving the partition table intact. NTFS 하드 기본 포멧 방법

dd if=/dev/zero of=/dev/sdX bs=512 count=1



http://www.experts-exchange.com/OS/Linux/Q_21601291.html
will wipe the MBR AND the partition table (Make the whole drive appear empty)

As the parent suggested using count=128 would wipe the first 64K of the disk, where some odd boot loading code, or viruses may possibly reside. Good if you want to start from scratch, just realise that any existing partitions (like Windows) will be destroyed.


주의 사항은 우분투로 부팅 해서 하지 마시고요.. usb 같은 거에 넣어서 언마운트 된 상태에서 usb를 통해서 사용 하시길 바랍니다.. 우분투로 부팅 하면 하드가 마운트 되어 잠겨 있는 상태가 되어 복구 하면 알수 없는 오류가 나네요.. 참고 사항 입니다..

To backup the MBR and partition table first, use MBR백업
dd if=/dev/sdX of=\path\to\file bs=512 count=1



http://www.cyberciti.biz/faq/howto-copy-mbr/



mbr 파티션 복구 복사

dd if=/dev/sda of=/dev/sdb bs=512 count=1


백업 2012

dd if=/dev/sda of=/tmp/mbrsda.bak bs=512 count=1


복구 여기서 주의 사항은 백업은 512 지만 복구는 446 이다..

dd if=/tmp/mbrsda.bak of=/dev/sdb bs=446 count=1



To restore from backup MBR복구
dd if=/path/to/file of=/dev/sdX bs=446 count=1


부팅 백업

To backup the boot sector: 부팅 백업
dd if=/dev/hda of=backup.boot bs=512 count=1

To restore the boot sector: 부팅 복구
dd if=backup.boot of=/dev/hda bs=1


다른 분 팁

dd if=/dev/sdX of=/tmp/sda-mbr.bin bs=512 count=1

dd if= sda-mbr.bin of=/dev/sdX bs=1 count=64 skip=446 seek=446

http://www.bigip.co.kr/index.php?document_srl=7049

파티션은 fdisk -l로 보시면 되고 보시면 boot라고 하고 * 표시 되어 있는 녀석이 따로 있네요

글 참조 여기에서는 if=/ 슬러쉬를 주었는대 슬러쉬 없어야 작동 하네요.


주의 사항은 백업은 우분투으로 부팅 해서 가능 하지만 복구는 마운트 되어 있는 하드가 있으면 에러가 날수 있음으로 필히

usb에 mbr 백업 파일 넣으셔야 합니다.. mount /dev/sdbX /mnt/windows 이런 식으로 마운트 하여 cd /mnt/windows 하셔서 가셔서 복구 하시면 되네요

http://www.sysresccd.org/ 이거 추천 합니다..


mbr 백업 방법

dd if=/dev/sdaX of=mbrback.bin bs=512 count=1


To restore from backup MBR복구
dd if=mbrback.bin of=/dev/sdaX bs=512 count=1


부팅 백업

To backup the boot sector: 부팅 백업
dd if=/dev/sdaX of=backup.boot bs=512 count=1

To restore the boot sector: 부팅 복구
dd if=backup.boot of=/dev/sdaX bs=1



다음검색
현재 게시글 추가 기능 열기

댓글

댓글 리스트
맨위로

카페 검색

카페 검색어 입력폼