[精讚] [會員登入]
1690

[Freebsd] 建立ramdisk

Freebsd 建立ramdisk,作為高速的暫存空間

分享此文連結 //n.sfs.tw/10346

分享連結 [Freebsd] 建立ramdisk @新精讚
(文章歡迎轉載,務必尊重版權註明連結來源)
2017-01-10 23:49:38 最後編修
2016-12-02 14:52:06 By 張○○
 

自動目錄

建立200mb的ramdisk,md1解除 md4

# mdconfig -a -t swap -s 200m -u 1
# newfs -U md1
/dev/md1: 200.0MB (409600 sectors) block size 16384, fragment size 2048
        using 4 cylinder groups of 50.02MB, 3201 blks, 6464 inodes.
        with soft updates
super-block backups (for fsck -b #) at:
 160, 102592, 205024, 307456
# mount /dev/md1 /mnt
# df /mnt

解除 md4

# mdconfig -d -u 4

參考資料

[1] http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-virtual.html

END

你可能感興趣的文章

[FREEBSD10] 解決vi/vim的中文字亂碼問題 vi, vim在Freebsd10使用UTF8時,中文字會出現亂碼,解決方法

Freebsd 套件和套件有關的指令 在 Freebsd 上的套件(packages)要如何安裝,可以自行下載檔案解壓編譯,或是利用 ports。

[Freebsd10] 使用者的crontab Freebsd 使用者的排程crontab和 root 層級的不太一樣

Freebsd shell 的日期date表示法 Freebsd 的日期date功能超級強大,學會會很方便。

設定友善的FREEBSD shell環境 FREEBSD 的原始SHELL很不友善,以下設定可以讓你的FREEBSD 很友善,和CENTOS差不多,這樣子FREEBSD 就有好用的介面。

[Freebsd] VSFTP的安裝和配置 Freebsd 安裝和配置 VSFTP

隨機好文

[MAC] 截取螢幕畫面的方法 截取螢幕畫面的方法,在MAC中叫作螢幕快照,英文是screenshot

[jQuery] textarea 的取值和給值 HTML 的 TEXTAREA 標籤若要用 jquery 取值,不能使用 .text() 或 .html() ,使用 .

[jQuery] select 元件的取值及給值 html中的元件select,在jquery中要如何使用?

SELinux 常用指令和檔案 在Redhat系列中,Centos5以後加入了selinux,他並沒有這麼可怕,不必每次看到Selinux ,就想把他

[CodeIgniter3] 解決無法上傳特定檔案(.sb2)的問題 上傳時出現The filetype you are attempting to upload is not allowed,要怎麼解決?