B / Y / U / S
HOME À¥ È£½ºÆà µµ¸ÞÀÎ ¸Å´º¾ó °í°´Áö¿ø ¼³Á¤Á¤º¸ °èÁ¤½Åû 2024-12-05 Thursday 
À¥ È£½ºÆÃ
# °øÁö »çÇ×
# ÀÚÁÖ ¹¯´Â Áú¹®
# Áú¹®°ú ´äº¯
# °¡ÀÔ ¹®ÀÇ
Ä¿¹Â´ÏƼ
# ÀÚÀ¯°Ô½ÃÆÇ
# ¸®´ª½ºÆÁ
# ¾ÆÀÌÅ¥ Å×½ºÆ®
# ³»È¨ ¼Ò°³
# °Ö·¯¸®
# ÀÚ·á½Ç

  ¸®´ª½ºÆÁ  Go Unix Power Tools Online Book Go Bash Guide
Read No. 200 article 2005-09-22 09:46:06
NickName   Ç®ºñ´©
Subject   loop device mount
# /dev/tmp loop ÆÄƼ¼Ç »ý¼º [512¸Þ°¡]

dd if=/dev/zero of=/dev/tmp bs=1024 count=512000 
mke2fs -jFq /dev/tmp
[ ! -d /tmp/ ] && mkdir /tmp/
mount -o loop,noexec,nosuid,rw /dev/tmp/ /tmp/ 
chmod 1777 /tmp/


# tmp ÆÄƼ¼Ç »ý¼º ¿¹Á¦ /backup/tmpmount 128¸Þ°¡

if (( $(mount |grep -c /tmp) == 0 )) ; then
    [ ! -f /backup/tmpmount ] && dd if=/dev/zero of=/backup/tmpmount bs=1024 count=128000 \
                              && mke2fs -jFq /backup/tmpmount
    [ -f /backup/tmpmount ] && rm -rf /tmp/* && mount -o loop,noexec,nosuid,rw \
                               /backup/tmpmount /tmp/ && chmod 1777 /tmp/
fi
Regist Addr [ 211.111.244.137 ] ¸ñ·Ïº¸±â À­±Û ¾Æ·§±Û
Á¤±ÔÇ¥Çö½Ä [ »ó¼¼ °Ë»ö ]
Page Loading [ 0.02 Sec ] SQL Time [ 0 Sec ]

Copyleft 1999-2024 by JSBoard Open Project
Theme Designed by IDOO And follow GPL2

°³ÀÎÁ¤º¸ Ãë±Þ¹æħ ÀÌ¿ë ¾à°ü »çÀÌÆ® ¸Ê ¾îµå¹Î °ü¸®