|
发表于 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里面写东西了。比较简单。。。
有不实之处,请弟兄们指正。多谢。 |
|