bin/Linux
-
mountbin/Linux 2008. 8. 7. 09:52
man mount Since Linux 2.4.0 it is possible to remount part of the file hierarchy somewhere else. The call is mount --bind olddir newdir After this call the same contents is accessible in two places. One can also remount a single file (on a single file). This call attaches only (part of) a single filesystem, not possible submounts. The entire file hierarchy including submounts is attached a secon..
-
gpt 와 partedbin/Linux 2008. 7. 10. 12:35
* gpt 로 만든 런은 fdisk 에서 에러메시지 발생(정상임) WARNING: GPT (GUID Partition Table) detected on '/dev/sde'! The util fdisk doesn't support GPT. Use GNU Parted. * gpt 제거: mkfs.ext3 로 제거할수도 있음. 1) dd 로 안됨. dd if=/dev/zero of=/dev/sde bs=10240 count=10240 2) mkfs.ext3 로는 제거됨. 그 후에 fdisk 로 파티셔닝 하면됨. parted 유틸에서는 제거하는 방법을 못찾았음. mkfs.ext3 를 사용하는 꽁수. # mkfs.ext3 /dev/sde mke2fs 1.39 (29-May-2006) /dev/sde is enti..
-
splicebin/Linux 2008. 4. 24. 14:41
http://lwn.net/Articles/178199/ long splice(int fd_in, loff_t *off_in, int fd_out, loff_t *off_out, size_t len, unsigned int flags); fd_in 에서 fd_out 으로 len 바이트를 이동한다. 데이타는 커널영역에서만 이동한다. 최소한으로 카피가 일어난다. 현재는 fd 둘 중에 하나는 반드시 pipe device 여야 한다. 미래에는 없어질 수도 있다. off_in, off_out - 데이타 전송을 시작하기 전에 먼저 flags - 카피방법 SPLICE_F_NONBLOCK: non-blocking 그러나 fd 둘중에 하나라도 non-blocking I/O 설정되지 않으면 splice() 는 블록될수 있..
-
리눅스 설치bin/Linux 2008. 4. 24. 14:39
[ nfs 서비스 설정 ] # cd /home/product/kernel/ISO/CentOS4.6-i386 # mkdir nfs iso iso 파일 모두 마운트해서 복사 # mount -o loop CentOS-4.6-i386-bin1of4.iso ./iso/ # cp -a ./iso/* /centos # umount ./iso 복사한 rpm 디렉토리를 nfs 서비스한다. # vi /etc/exports /home/product/kernel/ISO/CentOS4.6-i386/nfs *(ro) # /etc/init.d/nfs restart # /usr/sbin/exportfs -v [ nfs 설치 설정 ] 1. 배포판 1번 시디를 집어넣는다. 2. boot : 화면에 linux askmethod 3. NF..
-
makebin/Linux 2008. 3. 6. 14:06
한글 http://www.viper.pe.kr/docs/make-ko/make-ko_toc.html 영어 http://www.gnu.org/software/make/manual/make.html two flavors of variables = 재귀적 확장매크로(recursively expanded) 장점: recursive 확장, 정의가 뒤에 있어도 됨. CFLAGS = $(include_dirs) -O include_dirs = -Ifoo -Ibar 단점: 자기 자신을 assign 못함 CFLAGS = $(CFLAGS) -O make 무한루프 에러 := 단순확장매크로(simply expanded) 장점: shell 함수와 := 를 결합해서 사용할 때 유용, 딱 한번 확장되고 끝 ifeq (0,${MAK..
-
psbin/Linux 2008. 3. 6. 11:09
http://whatilearned2day.wordpress.com/2006/11/29/wchan-in-ps-l/ /proc/*/wchan # cat /proc/18293/wchan do_exit ‘ps -l’ uses System.Map file for reading the symbols -bash-2.05b# ps -l F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD 4 S 0 21597 21595 0 76 0 - 1096 wait4 pts/2 00:00:00 bash 4 R 0 21677 21597 0 80 0 - 794 - pts/2 00:00:00 ps CODE HEADER DESCRIPTION nwchan WCHAN address of the ke..