Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Zaurus 中文论坛 Forum Index » 硬件讨论

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
如何将cf卡分区,格式化成ext3格式,并加100mb的swap
View previous topic :: View next topic  
Author Message
yandongdiy



Joined: 10 Dec 2007
Posts: 7

小企鹅: 237

PostPosted: 2007-Dec-12 Wed, pm5:59 Reply with quote
 Post subject: 如何将cf卡分区,格式化成ext3格式,并加100mb的swap

如何将cf卡分区,格式化成ext3格式,并加100mb的swap
Back to top
View user's profile Send private message
kisser



Joined: 14 Dec 2007
Posts: 11

小企鹅: 326

PostPosted: 2007-Dec-20 Thu, pm7:19 Reply with quote
 Post subject:

执行umount /mnt/card,然后fdisk /dev/mmcd/disc0/disc
对SD卡进行分区,分一个区即可(先敲d删除原有分区,然后敲n新建分区,选择primary partition,再选1,一路回车采用默认block分区,最后w,写入分区表);分区格式化为linux的系统盘,终端运行:mkfs.ext3 /dev/mmcd/disc0/part1
格式化完毕;

建立swap:
终端执行
cd /mnt/card

mkdir swap

cd swap

dd if=/dev/zero of=swapfile bs=8M count=10 <---bs和count数字可调,bs=2M,count=64,则交换区为128M。此处设为80M,基本满足要求了。

mkswap swapfile

swapon swapfile
(这里就增加了80M的内存)。

用free命令查看所有存储器的使用情况。
Back to top
View user's profile Send private message
Display posts from previous:     
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Zaurus 中文论坛 Forum Index » 硬件讨论 All times are GMT + 8 Hours
Page 1 of 1

 
Jump to:   
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

[ 页面生成时间: 秒 ] :: [ 次查询 ] :: [ ]
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional