LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1835|回复: 1

fstab中关于REISERFS的设定

[复制链接]
发表于 2002-11-5 03:00:02 | 显示全部楼层 |阅读模式
我的gentoo为/dev/hda10 reiserfs分区,在lfs-book中提到过reiserfs的设置,参照,设定如下
/dev/hda10     /    reiserfs   notail         0 0

一事不明
接合以下说明
(fs_dump - 该选项被"dump"命令使用来检查一个文件系统应该以多快频率进行转储,若不需要转储就设置该字段为0

fs_pass - 该字段被fsck命令用来决定在启动时需要被扫描的文件系统的顺序,根文件系统"/"对应该字段的值应该为1,其他文件系统应该为2。若该文件系统无需在启动时扫描则设置该字段为0)

dump的相关设置知道了,2.4内核一开始就不兼容他,Linuz本人也说dump 很愚蠢

倒………发这帖子的时候找到了答案
又是gentoo总裁写的文章,服气,牛,真牛
http://www-900.ibm.com/developer ... em/l-fs/index.shtml
算了,发了这帖子吧
发表于 2002-11-8 10:25:23 | 显示全部楼层
sd44兄已经说了fstab中的设定,我来说一下,如果我们的系统ext3的格式的,如果我们想加一个reiserfs格式的空间,我们应该按下面的方法来做。

操作环境:
我是在RedHat 8.0中,创建一个一个reiserfs的分区,应该用cfisk或fdisk分出一个空间来。这步我省略了。

如果您已经有了现成的分区,只想格式化和加载,我只说前这个过程:用mkreiserfs来格式化磁盘分区。

步骤:
在格式化之前,我们要看一下分区,然后决定格式化哪个分区。

#fdisk -l
[root@Linsir01 root]# fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdb1   *         1      1020   8193118+   7  HPFS/NTFS
/dev/hdb2          1021      9729  69955042+   f  Win95 Ext'd (LBA)
/dev/hdb5          1021      2040   8193118+   7  HPFS/NTFS
/dev/hdb6          2041      3060   8193118+   b  Win95 FAT32
/dev/hdb7          3061      4080   8193118+   b  Win95 FAT32
/dev/hdb8          4081      5100   8193118+  83  Linux
/dev/hdb9          5101      6120   8193118+  83  Linux
/dev/hdb10         6121      7140   8193118+  83  Linux
/dev/hdb11         7141      9665  20282031   83  Linux
/dev/hdb12         9666      9729    514048+  82  Linux swap


下面这个例子是我想把hdb11格式成reiserfs格式的,格式化时要小心,会清空磁盘分区里的所有的资料,切记。




[root@LinuxSir01 root]# mkreiserfs /dev/hdb11


<-------------mkreiserfs, 2002------------->
reiserfsprogs 3.6.2

mkreiserfs: Guessing about desired format..
mkreiserfs: Kernel 2.4.18-17.8.0 is running.
Format 3.6 with standard journal
Count of blocks on the device: 1463915
Number of blocks consumed by mkreiserfs formatting process: 8256
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: 8b93e43a-d708-4014-9625-3e34888a157e
ATTENTION: YOU SHOULD REBOOT AFTER FDISK!
        ALL DATA WILL BE LOST ON '/dev/hdb11'!
Continue (y/n):y
Initializing journal - 0%....20%....40%....60%....80%....100%
Syncing..ok

The Defense Advanced Research Projects Agency (DARPA) is the primary sponsor of
Reiser4. DARPA does not endorse this project; it merely sponsors it.

Continuing core development of version 3 is mostly paid for by Hans Reiser from
money made selling licenses in addition to the GPL to companies who don't want
it known that they use ReiserFS as a foundation for their proprietary product.
And my lawyer asked 'People pay you money for this?'.  Yup.  Hee Hee.  Life is
good.  If you buy ReiserFS, you can focus on your value add rather than
reinventing an entire FS.  You should buy some free software too....

SuSE pays for continuing work on journaling for version 3, and paid for much of
the previous version 3 work.  Reiserfs integration in their distro is
consistently solid.

MP3.com paid for initial journaling development.

Bigstorage.com contributes to our general fund every month, and has done so for
quite a long time.

Thanks to all of those sponsors, including the secret ones.  Without you, Hans
would still have that day job, and the merry band of hackers would be missing
quite a few....

Have fun.
第二步是mount分区,当然要在/mnt/下建一个目录,然后用命令mount过,详细的情况如下。

[root@LinuxSir01 root]# mkdir /mnt/hdb11
[root@LinuxSir01 root]# mount -t reiserfs /dev/hdb11 /mnt/hdb11/

如果是自动开机加载,就按sd44兄说的方法来解决。
如果是用命令来加载,我们就要这样来做。
#mkdir /mnt/hdb11
#mount /dev/hdb11 /mnt/hdb11

这样我们就能向/mnt/hdb11里面写东西了。比较简单。。。


有不实之处,请弟兄们指正。多谢。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表