sun's longitude:258 21 26.78 
· 자유게시판 · 묻고답하기 · 알파문서 · RPMS list
· 사용자문서 · 팁/FAQ모음 · 리눅스Links · 자료실
· 서버정보 · 운영자 · Books/FAQ · FreeBSD
/board/read.php:소스보기  
FreeBSD
FreeBSD study ....
[*** 쓰기 금지단어 패턴 ***]
글 본문 중간에 업로드할 이미지를 추가하는 방법 : @@이미지이름@@
ex) @@foo.gif@@
41 번 글: [swap] make a swapfile of 1GB
글쓴이: 산이 [홈페이지] 글쓴날: 2006년 01월 11일 11:39:44 수(오전) 조회: 5844
[swap] make a swapfile of 1GB

-- san2@2006.01.09
-- http://dev.panopticsearch.com/swapfile-notes.html
-- http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/adding-swa
p-space.html
-- http://kerneltrap.org/node/329


/part => top level partition(available of many free size)

[FreeBSD/4.x]

dd if=/dev/zero of=/part/system.swap bs=1024k count=1024
chmod 0600 /part/system.swap

## edit in `rc.conf' or `rc.conf.local'
swapfile="/part/system.swap"

vnconfig -e /dev/vn0b /part/system.swap swap 
or
reboot

*misc)
swapinfo -k
swapoff ; // FreeBSD does not currently support swapoff


[Linux/2.4]

*RH7.x)
1G => bs=1024k count=1024
2G => bs=1024k count=2047 ; // notice
4G => 2G + 2G ; // two swapfiles

dd if=/dev/zero of=/part/system.swap bs=1024k count=1024
chmod 0600 /part/system.swap
mkswap -c /part/system.swap ; // -c: check bad block

## edit in `/etc/fstab'
/part/system.swap    swap    swap    defaults    0 0

swapon /part/system.swap
or
swapon -a

*misc)
cat /proc/swaps ; // view of all swap list
swapoff /part/system.swap ; // disable

 
이전글 : [acpi] disabled of ACPI
다음글 : [rc.conf.local]  
 from 222.122.137.91
JS(Redhands)Board 0.4 +@

|글쓰기| |답장쓰기| |수정| |삭제|
|이전글| |다음글| |목록보기|
인쇄용 

apache lighttpd linuxchannel.net 
Copyright 1997-2024. linuxchannel.net. All rights reserved.

Page loading: 0.01(server) + (network) + (browser) seconds