Fedora支持創(chuàng)建Fedora reiserfs文件系統(tǒng)
Fedora reiserfs文件系統(tǒng)已被廣泛應(yīng)用但是也在不斷的更新,這里介紹Fedora reiserfs文件系統(tǒng)安裝設(shè)置使用,幫助大家安裝更新Fedora reiserfs文件系統(tǒng)系統(tǒng)。文件系統(tǒng)管理之讓Fedora支持創(chuàng)建Fedora reiserfs文件系統(tǒng)。
閱讀此文檔,您需要必備的知識(shí):
《Linux 創(chuàng)建文件系統(tǒng)及掛載文件系統(tǒng)流程詳解》
《Linux 查看磁盤分區(qū)、文件系統(tǒng)、使用情況的命令和相關(guān)工具介紹》
《實(shí)例解說 fdisk 使用方法》
《合理規(guī)劃您的硬盤分區(qū)》
《Fedora / Redhat 軟件包管理指南》
一、Fedora reiserfs文件系統(tǒng)優(yōu)點(diǎn);
Fedora reiserfs文件系統(tǒng) 比ext3 、ext2 以及windows中的ntfs、fat 等文件系統(tǒng)更安全,更優(yōu)秀,速度更快;至于更專業(yè)的,您可以訪問Fedora reiserfs文件系統(tǒng)官方網(wǎng)站;但Red Hat 公司卻一直認(rèn)為他的ext3文件系統(tǒng)是最好的;所以只能把Fedora reiserfs文件系統(tǒng)打倒在地了;呵... ...從我使用的情況來看reiserfs 的確是比較安全,到目前還沒有出過什么大事;ext3或者ext2文件系統(tǒng),文件系統(tǒng)mount 到一定次數(shù)后,會(huì)fsck 檢查文件系統(tǒng),這是在系統(tǒng)啟動(dòng)階段中進(jìn)行的。我們知道系統(tǒng)啟動(dòng)階段的風(fēng)險(xiǎn)最大;如果到一定時(shí)間或者文件系統(tǒng)被掛載一定次數(shù)就fsck ,實(shí)在是有極大的風(fēng)險(xiǎn);
二、讓Fedora 支持創(chuàng)建Fedora reiserfs文件系統(tǒng);
我們有兩個(gè)方法,一個(gè)是通過到Fedora reiserfs文件系統(tǒng)官方網(wǎng)站下載源碼包安裝reiserfsprogs ;第二個(gè)方法是在線安裝 reiserfs-utils ,兩種辦法都可以;
1、通過系統(tǒng)盤安裝 reiserfs-utils
在Fedora Core 4.0 中,您可以在安裝盤中找到reiserfs-utils-3.6.19-2.i386.rpm ;用 rpm -ivh Fedora reiserfs文件系統(tǒng);最好是通過本地軟件包管理器 system-config-packages來安裝;請參考: 《Fedora / Redhat 軟件包管理指南》
如果您能用yum或apt來在線安裝或更新包;請參考:《Fedora / Redhat 軟件包管理指南》
[root@localhost beinan]# yum install reiserfs-utils
或[root@localhost beinan]# apt install reiserfs-utils
您也可以下載 reiserfs-utils 的軟件包,請到下面的網(wǎng)站去查詢下載;
http://ayo.freshrpms.net/fedora/linux/4/i386/RPMS.core/
http://mirrors.kernel.org/fedora/core/4/i386/os/Fedora/RPMS/
reiserfs-utils包含工具如下:
/sbin/debugreiserfs 注:用來檢察文件系統(tǒng)的內(nèi)部結(jié)構(gòu),以便手工修理損壞了的文件系統(tǒng)或?yàn)?Fedora reiserfs文件系統(tǒng) 提供修復(fù)線索
/sbin/fsck.reiserfs 注:檢查和修復(fù)Fedora reiserfs文件系統(tǒng)工具;
/sbin/mkfs.reiserfs 注:在空白分區(qū)創(chuàng)建reiserfs文件系統(tǒng)工具
/sbin/mkreiserfs 注:同mkfs.reiserfs
/sbin/reiserfsck 注:同 fsck.reiserfs
/sbin/reiserfstune
/sbin/resize_reiserfs
簡單用法:
[root@localhost beinan]# mkfs.reiserfs 設(shè)備 這是為存儲(chǔ)設(shè)備創(chuàng)建文件系統(tǒng),比如我們想在/dev/sda5創(chuàng)建文Fedora reiserfs文件系統(tǒng):
[root@localhost beinan]# mkfs.reiserfs /dev/sda5
或 [root@localhost beinan]# mkreiserfs /dev/sda5
檢查及修復(fù)文件系統(tǒng)舉例:
[root@localhost beinan]# reiserfsck /dev/sda5
2、源碼包安裝 reiserfsprogs
Fedora reiserfs文件系統(tǒng) 官方是: http://www.namesys.com ;
目前 reiserfsprogs 的最新版本是 reiserfsprogs-3.6.19.tar.gz ;
我們可以到reiserfs 的官方FTP 上得到: ftp://ftp.namesys.com/pub/reiserfsprogs/
1)Fedora reiserfs文件系統(tǒng)解壓安裝;
[root@localhost beinan]# tar zxvf reiserfsprogs-3.6.19.tar.gz
[root@localhost beinan]# cd reiserfsprogs-3.6.19
[root@localhost reiserfsprogs-3.6.19]# ./configure
[root@localhost reiserfsprogs-3.6.19]# make
[root@localhost reiserfsprogs-3.6.19]# make install
2)應(yīng)用;
如果您想添加新分區(qū),或者新增了硬盤,想切割硬盤,請參考:
首先您要學(xué)會(huì)用fdisk -l 來查看目您的機(jī)器的硬盤和分區(qū)情況;請參考:
通過源碼包安裝支持創(chuàng)建Fedora reiserfs文件系統(tǒng)的軟件包 reiserfsprog ,其中有三個(gè)是我們常用的工具mkreiserfs 、reiserfsck和debugreiserfs。
mkreiserfs 是在空白分區(qū)創(chuàng)建文件系統(tǒng)用的;
reiserfsck是檢查及修復(fù)文件系統(tǒng)用的;
debugreiserfs 用來檢察文件系統(tǒng)的內(nèi)部結(jié)構(gòu),以便手工修理損壞了的文件系統(tǒng)或?yàn)?reiserfsck 提供修復(fù)線索;
簡單用法:
[root@localhost beinan]# mkreiserfs 設(shè)備
這是為存儲(chǔ)設(shè)備創(chuàng)建文件系統(tǒng),比如我們想在/dev/sda5創(chuàng)建文Fedora reiserfs文件系統(tǒng):
[root@localhost beinan]# mkreiserfs /dev/sda5
mkreiserfs 3.6.19 (2003 www.namesys.com)
A pair of credits:
Alexander Lyamin keeps our hardware running, and was very generous to our
project in many little ways.
The Defense Advanced Research Projects Agency (DARPA, www.darpa.mil) is the
primary sponsor of Reiser4. DARPA does not endorse this project; it merely
sponsors it.
Guessing about desired format.. Kernel 2.6.11-1.1369_FC4 is running.
Format 3.6 with standard journal
Count of blocks on the device: 49088
Number of blocks consumed by mkreiserfs formatting process: 8213
Blocksize: 4096
Hash function used to sort names: "r5"
Journal Size 8193 blocks (first block 18)
Journal Max transaction length 1024
inode generation number: 0
UUID: 7b1fc9a2-7dbf-4d21-8f8d-687102c9d41d
ATTENTION: YOU SHOULD REBOOT AFTER FDISK!
ALL DATA WILL BE LOST ON '/dev/sda5'!
Continue (y/n): y 注:在這里輸入y,就進(jìn)行創(chuàng)建了;
我們還可以通過 reiserfsck 來檢查文件系統(tǒng),用法;
[root@localhost beinan]# mkreiserfs 設(shè)備
舉例:比如我們對/dev/sda5這個(gè)分區(qū)做檢查;
[root@localhost beinan]# reiserfsck /dev/sda5
reiserfsck 3.6.19 (2003 www.namesys.com)
*************************************************************
** If you are using the latest reiserfsprogs and it fails **
** please email bug reports to reiserfs-list@namesys.com, **
** providing as much information as possible -- your **
** hardware, kernel, patches, settings, all reiserfsck **
** messages (including version), the reiserfsck logfile, **
** check the syslog file for any related information. **
** If you would like advice on using this program, support **
** is available for $25 at www.namesys.com/support.html. **
*************************************************************
Will read-only check consistency of the filesystem on /dev/sda5
Will put log info to 'stdout'
Do you want to run this program?[N/Yes] (note need to type Yes if you do):y
【編輯推薦】