ºìÁªLinuxÃÅ»§
Linux°ïÖú

ÔÚSCOÏÂÖ±½ÓʹÓÃISO¾µÏñ°²×°Èí¼þµÄ·½·¨

·¢²¼Ê±¼ä:2006-10-12 11:24:44À´Ô´:ºìÁª×÷Õß:bear10214
ÒÔÈü²©ÖÐÎĵÄISOÎļþΪÀý¡£
¡¡¡¡ Äã¿ÉÒÔʹÓÃISOÎļþÔÚSCOÏÂÖ±½Ó°²×°£¬µ«±ØÐë±£Ö¤ÄãµÄ»úÆ÷ÉÏÒѾ­°²×°Á˹âÇý£¬²¢ÇÒÔÚºËÐÄÖк¬ÓÐCDROMÉ豸£¬¼´hwconfig -h ÁбíÖÐÓÐCDROMÐÅÏ¢¡£½ÓÏÂÀ´Äã¿ÉÒÔͨ¹ýÏÂÃæµÄ²½ÖèÀ´´¦Àí£º
¡¡¡¡¡¡ cd /dev
¡¡¡¡¡¡ mv cd0 cd0.bak
¡¡¡¡¡¡ cd /tmp (´Ë´¦¼Ù¶¨ÄãµÄcyber.iso·ÅÔÚ/tmpĿ¼ÖÐ)
¡¡¡¡¡¡ marry -a cyber.iso
¡¡¡¡¡¡ cd /dev
¡¡¡¡¡¡ ln -s /dev/marry/tmp/cyber.iso cd0
¡¡¡¡¡¡ l cd0 ÏÔʾ½á¹ûÈçÏ£º
¡¡¡¡¡¡ brw-r----- 1 root sys 76, 1 Feb 26 10:45 cd0@
¡¡¡¡¡¡ mv rcd0 rcd0.bak
¡¡¡¡¡¡ mknod rcd0 c 76 1¡¡
¡¡¡¡¡¡ l *cd0 ÏÔʾ½á¹ûÈçÏ£º
¡¡¡¡¡¡ brw-r----- 1 root sys 76, 1 Feb 26 10:45 cd0@
¡¡¡¡¡¡ crw-r--r-- 1 root sys 76, 1 Feb 26 10:48 rcd0
¡¡¡¡¡¡ custom
¡¡¡¡¡¡ Ñ¡Ôñ°²×°½éÖÊʱѡCDROM¾Í¿ÉÒÔ°²×°ÁË¡£
¡¡¡¡¡¡ ¼ÇµÃ°²×°Íê³ÉÖ®ºó
¡¡¡¡¡¡ cd /dev
¡¡¡¡¡¡ rm cd0 rcd0
¡¡¡¡¡¡ mv cd0.bak cd0
¡¡¡¡¡¡ mv rcd0.bak rcd0;
¡¡¡¡¡¡ marry -d /tmp/cyber.iso
¡¡¡¡¡¡ »Ö¸´ÄãµÄ¹âÇýÉ豸£¬·ñÔòÄãµÄ¹âÇý²»ÄÜʹÓÃÀ²£¡
²¹³ämarryµÄ˵Ã÷£º
marry -- marriage driver
¡¡¡¡ The marriage driver allows a regular file to be treated as a device. It does not drive any hardware directly, but it redirects reads and writes on its device to the associated regular file.
¡¡¡¡ marry(ADM) uses the marriage driver to associate a block special device file with a regular file. The regular file may then be accessed through the block device node created below the /dev/marry directory, or through a character device node.
¡¡ swap(ADM) uses marry to allow a regular file to act as a block device for swapping. marry may also be used to allow a regular file to act as a block device for mounting.
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ