ããimg/isoæ件æ¯éåæ件ï¼å¨Linuxç³»ç»æä½ä¸ææ¶éè¦å¶ä½éåæ件ï¼é£ä¹å¶ä½éåæ件çæ¹æ³æåªäºå¢ï¼ä¸é¢å°ç¼å°±ç»å¤§å®¶ä»ç»ä¸å¦ä½ä¸Linuxä¸å¶ä½å¯å¯å¨img/isoæ件ã
å¦ä½å¨Linuxç³»ç»ä¸å¶ä½å¯å¯å¨img/isoéåæ件
ããå¶ä½éåæ件æä¸ç§æ¹æ³ï¼cpï¼ catï¼ dd åå
¶å®ä¸ç¨å·¥å
·ãcp ï¼cat å ddé½å¯ä»¥ä»è®¾å¤å¤å¶æ件æ¥å建éåãè dd å½ä»¤æ´ä¸ºå¼ºå¤§ï¼å¯ä»¥éè¿æå®å大å°ï¼åå¤å°æ¥ç´æ¥å建éåã
ããIMG æ件ï¼
ããå 为cpï¼ cat åªè½ä»è®¾å¤æ¥å¶ä½éåï¼ä½å没æä¸ç¨å·¥å
·æ¥å IMG æ件ï¼æ
è¿éç¨ dd å½ä»¤æ¥å¶ä½ IMG æ件ã
ãã1ï¼å¶ä½
ããdd if=/dev/zero of=fdimage.img count=2880
ããor
ããdd if=/dev/zero of=fdimage.img bs=1024 count=1440
ãã2ï¼æ ¼å¼å
ããmkfs.msdos fdimage.img
ãã3ï¼ä¿®æ¹
ããå¯ä»¥ç¨ä¸é¢çå½ä»¤ mount åï¼å¯ç´æ¥ä¿®æ¹
ããmount -o loop *.img /mnt
ãã4ï¼å¯å¯å¨
ããå 为å¶ä½å¯å¯å¨éåä¸å®ä¼ç¨å°èææºï¼æ¨èç¨ Virtualboxï¼å
å°ç½ä¸ä¸ä¸ª DOS å¯å¨çæ¥å¼å¯¼ãç¨ DOS ç sys å½ä»¤ä¼ éç³»ç»ãæ¨èä½¿ç¨ FreeDOSï¼å±èªç±è½¯ä»¶ãä¹å¯ç¨ dd å½ä»¤ æ¥ä¼ éå¼å¯¼å¼å¯¼ä¿¡æ¯ï¼å¹¶å¤å¶å¯å¨å¯å¨æ¶æéæ件æ¥åå¯å¨çã以 FreeDOS 为ä¾ï¼ä¼ éå¯å¨ä¿¡æ¯ç¨ä»¥ä¸å½ä»¤ï¼å
¶ä¸ä¸è½½çå¯å¨ç为 balder10.img æ件
ããdd if=balder10.img of=fdimage.img bs=512 count=1 conv=notrunc
ããå¤ç³»ç»ç¨ grub4dosï¼
ãã1ï¼ï¼ç¨ grub.exe å¼å¯¼å¤ç³»ç»
ãã2ï¼ï¼å®è£
grub å°MBRï¼ç¨ grldr æ¥å¼å¯¼å¤ç³»ç»ãå½ç¶ä¹å¯ç¨åä¸é¢ä¸æ ·çåæ³ç¨ dd ç´æ¥åå
¥å¼å¯¼ä¿¡æ¯ã
ããbootlace.com --floppy --chs 0x00
ãã注ï¼æåç°ç¨ dd å½ä»¤åªè½ä»é»è¾æåºå¼å§ copyï¼å
åææ³å¯å¦ç¨ dd æ¥å° grldr.mbr åå
¥ u çï¼æç¨èªå·±ç U çè¯äºï¼ç»æä¸è½æå¼äºãå 为æç U ç为 fat16 æ ¼å¼ï¼é»è¾æåºå¼å§æ¯OBRï¼æ¥çæ¯FAT表ï¼ç»ææ FAT1 表ç»çäºï¼é£æ¶è¿æ²¡ææ³å°è¿æ FAT2 å¢ï¼å°±æ ¼äºï¼ç°å¨æ³èµ·æ¥éé·åï¼å¥½å¤ä¸è¥¿é½æ²¡æäºã
ãã为ä»ä¹è½¯çå¯ä»¥å¢ï¼å 为å®å°±æ²¡æåé¢ç63个æåºï¼ç´æ¥ä»é»è¾0æåºå¼å§çã
ããISO æ件ï¼
ããå 为æ件系ç»çå
³ç³»ï¼å°±ä¸è½ç¨ dd æ¥ç´æ¥å ISO éåäºï¼å½ç¶ï¼å®è¿æ¯å¯ä»¥ä»è®¾å¤å¶ä½ ISO éåï¼ã ISO æ件çå¶ä½æä¸ç¨å·¥å
·ï¼
ãã1ï¼å¶ä½
ããmkisofs -r -o cdimage.iso /home/XXX/cddir
ãã2ï¼æ ¼å¼å
ããç¨mkisoå¶ä½ç iso å·²ææä»¶ç³»ç» iso9660
ãã3ï¼å¯å¯å¨
ããæ 论æ¯å¼å¯¼åç³»ç»è¿æ¯å¼å¯¼å¤ç³»ç»é½è¿æ¯ç¨ mkisofs è¿ä¸ªå·¥å
·ï¼åªæ¯å è½½å°å
çç boot loader ä¸ä¸æ ·èå·²ãå½ç¶ä¹å¯ä»¥å° DOS çå¼å¯¼å¨ ï¼ä¹å°±æ¯å®çå¼å¯¼æåºï¼ æ windows çå¼å¯¼å¨ ï¼ XP ç³»ç»çæ¯ ntldr ï¼ æ¾å
¥è®©å
çå¼å¯¼ãä¸é¢åªè®¨è®º grub4dos ç使ç¨
ãã1ï¼ï¼ç¨ grub.exe å¼å¯¼å¤ç³»ç»
ããç¨ DOS å è½½ grub.exe å¼å¯¼å¤ç³»ç»
ãã2ï¼ï¼å° grub å®è£
å°å
ç MBR
ããå¨å¶ä½æ¶å¯ç¨ä¸é¢çå½ä»¤ç´æ¥çæå¯å¯å¨éåï¼å
¶ä¸ grldrï¼ menu.lst è¦æ¾å¨ cddir ç®å½ä¸ï¼ä¹å°±æ¯å¨ cd æ ¹ç®å½ã
ããmkisofs -R -b grldr -no-emul-boot -boot-load-seg 0x1000 -o cdimage.iso cddir
ããmkisofs -R -b grldr -no-emul-boot -boot-load-size 4 -o cdimage.iso cddir
ããPSï¼ä¸é¢ç»åº dd å½ä»¤å mkisofs åæ°è¯´æ
ããdd ï¼convert and copy filesï¼
ããdd æ¯ Linux/UNIX ä¸çä¸ä¸ªé常æç¨çå½ä»¤ï¼ä½ç¨æ¯ç¨æå®å¤§å°çåæ·è´ä¸ä¸ªæ件ï¼å¹¶å¨æ·è´çåæ¶è¿è¡æå®ç转æ¢ã
ããdd ç主è¦é项ï¼
ããæå®æ°åçå°æ¹è¥ä»¥ä¸åå符ç»å°¾ä¹ä»¥ç¸åºçæ°åï¼
ããb=512ï¼ c=1ï¼ k=1024ï¼ w=2ï¼ xm=number m
ããif=file
ããè¾å
¥æ件åï¼ç¼ºç为æ åè¾å
¥ã
ããof=file
ããè¾åºæ件åï¼ç¼ºç为æ åè¾åºã
ããibs=bytes
ããä¸æ¬¡è¯»å
¥ bytes 个åèï¼å³ä¸ä¸ªå大å°ä¸º bytes 个åèï¼ã
ããobs=bytes
ããä¸æ¬¡å bytes 个åèï¼å³ä¸ä¸ªå大å°ä¸º bytes 个åèï¼ã
ããbs=bytes
ããåæ¶è®¾ç½®è¯»ååç大å°ä¸º bytes ï¼å¯ä»£æ¿ ibs å obs ã
ããcbs=bytes
ããä¸æ¬¡è½¬æ¢ bytes 个åèï¼å³è½¬æ¢ç¼å²åºå¤§å°ã
ããskip=blocks
ããä»è¾å
¥æ件å¼å¤´è·³è¿ blocks 个åååå¼å§å¤å¶ã
温馨提示:答案为网友推荐,仅供参考