[精讚] [會員登入]
1693

[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

你可能感興趣的文章

[FreeBSD] 查看檔案詳細資訊 利用stat查看檔案詳細資訊

[Freebsd14] 安裝bind9 安裝dns服務器bind9 記錄

[Freebsd] 查看dhcp客戶端 Freebsd如何能知道目前的租約及有效狀態

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

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

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

隨機好文

[Windows7] 移除IE10及移除IE11 Windows7 不得已的情況要移除IE11或IE10怎麼做?

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

UTF-8的網頁但IE8一片空白 UTF8編碼的網頁在Firefox 正常顯示、但IE8 就是空白,IE8編碼設定是「自動偵測」可是自動偵測到的是 big5...

[PHP] 檢查檔案是否是圖檔 使用getimagesize函數檢查檔案是否是圖檔

APACHE的記錄檔格式 LogFormat 語法 在APACHE中有定義一些記錄的語法模版 在 /etc/httpd/conf/httpd.conf 中: LogForm