포럼 회원으로 등록하신분만 다운로드가 가능합니다. 최대 업로드 가능한 용량은 20MB 입니다.

임베디드에서는 swap partition을 쓰기가 힘들다.

 

뭐, 쓸일도 대부분 없기는 하지만, 가끔가다가 필요한 경우도 생길지 모른다.

 

해서 함 자료를 찾아봤다.

 

레드햇 문서에 맘에 드는게 있어서 스크랩했고, 조금 더 자세한 것은 같이 첨부된 문서와

 

swapon 관련 문서를 참조하면 된다.

 

 

- To add a swap file:


Determine the size of the new swap file and multiple by 1024 to determine the block size.
For example, the block size of a 64 MB swap file is 65536.

1. At a shell prompt as root, type the following command with count being equal to the desired block size:

# dd if=/dev/zero of=/swapfile bs=1024 count=65536
 

2. Setup the swap file with the command:

# mkswap /swapfile
 

3. To enable the swap file immediately but not automatically at boot time:

# swapon /swapfile
 

4. To enable it at boot time, edit /etc/fstab to include:

/swapfile               swap                    swap    defaults        0 0
 

5. The next time the system boots, it will enable the new swap file.
After adding the new swap file and enabling it, make sure it is enabled by viewing the output of the
command cat /proc/swaps or free.


- To remove a swap file:


1. At a shell prompt as root, execute the following command to disable the swap file
(where /swapfile is the swap file):

# swapoff /swapfile
 
2. Remove its entry from /etc/fstab.

3. Remove the actual file:

# rm /swapfile


 

swap을 만들려면 mkswap과 swapon/swapoff 명령이 있어야 한다.

 

하지만 진짜 찾기 힘들다....ㅋㅋ

함 찾아보시라...소스레벨로....

 

원래는 fsutil같은 녀석을 찾았으나, 걸리지는 않고 한참찾았다....

 

구글링해도 찾기는 하늘의 별따기라네...--;

구글도 요즘 이상한것만 찾아낸다....

쩝...

util-linux

패키지인데,

www.kernel.org 가서 util쪽을 찾으면 될 듯(software인가?)

List of Articles
번호 제목 글쓴이 날짜 조회 수sort
70 초보자를 위한 부트로더/커널/안드로이드 빌드 환경 설정 및 실습 [10] 이제현 2010-12-25 28983
69 USB만을 이용한 NFS 부팅 [23] 이제현 2010-01-11 21127
68 Android WiFi 포팅하기 file [6] 김경수 2010-05-07 19902
67 간단한 uBoot 사용 및 환경 설정 방법 [4] 김재훈 2009-01-29 19660
66 uboot에서 ubifs 이미지 nand에 쓰는 방법 [4] 엉금엉금 2010-08-04 19466
65 U-Boot 실무 위주의 간단한 강좌 #1 - Makefile 사용법 file [3] 김재훈 2008-07-11 18861
64 android-x86/Donut 을 viliv S5에 포팅해본본 내용입니다. [3] pinebud 2010-06-25 18591
63 Linux 2.6 커널의 이해 (Embedded World) file [19] 김재훈 2009-10-21 18038
62 임베디드 시스템 포팅 가이드(PXA255 ) #1 file [7] 김재훈 2009-05-17 18027
61 임베디드 엔지니어를 위한 리눅스 커널 file [9] 김재훈 2009-05-17 17400
60 Making ARM-EABI Toolchain #1 - Crosstool 환경 설정 file [1] 김재훈 2008-07-13 16926
59 범용 운영체제를 위한 리눅스 커널 완전분석 file [5] 김재훈 2009-05-17 16708
58 이광우님 android v4l2 camera porting자료 file [6] 고도리 2011-01-27 16691
57 Crosstool 0.43 - ARM Softfloat / ARM11-VFP EABI 지원 file [6] 김재훈 2008-07-19 16518
56 u-boot.lds 분석(aesop6410) 이세종 2009-04-13 16165
55 mdev and udev 사용 방법 및 적용 가이드 file 김재훈 2009-04-06 16105
54 U-Boot 및 펌웨어에서 MMU 매핑코드 분석 방법 [2] 김재훈 2009-10-21 16071
53 ARM EABI cross-toolchain howto file [4] 고현철 2008-07-09 16030
52 embedded linux porting guide(ppcboot & mpc860) file [4] 고현철 2007-12-17 15949
51 고현철님의 리눅스 Root File System 만들기 동영상 강좌 [2] 김재훈 2009-04-05 15537

사용자 로그인