📄 00000004.htm
字号:
<HTML><HEAD> <TITLE>BBS水木清华站∶精华区</TITLE></HEAD><BODY><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER>发信人: cybergene (基因~也许以后~~), 信区: Linux <BR>标 题: [HowTo]Change / from e2fs to reiserfs <BR>发信站: BBS 水木清华站 (Sun Nov 12 01:26:48 2000) <BR> <BR> <BR>We'd first suggest you copy everything on your regular ext2 partition to <BR> the spare partition. If the spare is smaller than your original data, <BR>compress your whole partition into a tar.gz file on the spare partition. <BR> After making sure this worked correctly and all your files are there <BR>(and/or you have a good backup!), copy the /bin, /etc, /lib and /sbin <BR>directories (plus the mkreiserfs utility) to the spare partition. This <BR>is in preparation for booting off that partition so you can reformat the <BR> original ext2 partition as reiserfs. <BR>Next, make a boot diskette with a ReiserFS-enabled kernel on it (don't <BR>forget to run lilo on the diskette!) and make sure it works (so you <BR>won't get stuck with an unbootable system.) After booting this diskette, <BR> you should get a lilo: prompt. Enter "linux root=/dev/hd <BR>init=/bin/bash" at the lilo prompt. Your system should boot and stop <BR>at a bare bash "#" prompt. <BR> <BR>At the prompt (now off of your spare partition), try tar ztvf to test <BR>the backup archive if you did the compression step above (just to make <BR>sure you can get at your data still.) If you're convinced that you <BR>want to go ahead with the conversion, run mkreiserfs on your original <BR>ext2 partition, ERASING ALL DATA THERE (but you have the backup of <BR>course.) Then, mount the new partition somewhere as reiserfs and cd to <BR>the mount directory. Make sure the amount of free disk space is what you <BR> expected (just as a double check), and untar your backup archive to <BR>restore everything. <BR> <BR>At this point, your data is on ReiserFS and you should be able to <BR>rerun lilo (make sure your default kernel supports ReiserFS!) on your <BR>normal root partition to get the kernel set up again. Unmount all <BR>partitions and reboot. If everything goes as planned, Linux should say <BR>"VFS: Mounted root ... as reiserfs" at some point, and you should be all <BR> set. If the system doesn't boot, etc. you have your backup diskette and <BR> can just boot off the spare partition to fix things. Make sure you have <BR> the right ReiserFS-enabled kernel installed beforehand and all <BR>configuration files (especially lilo.conf) are up to date. <BR> <BR> <BR> <BR>------------------------------------------------------------- <BR>Matt T. Yourst Massachusetts Institute of Technology <BR><A HREF="mailto:yourst@mit.edu">yourst@mit.edu</A> 617.225.7690 <BR>513 French House 476 Memorial Drive - Cambridge, MA 02136 <BR>------------------------------------------------------------- <BR> <BR> <BR>-- <BR> 桃花坞里桃花庵,桃花庵下桃花仙;桃花仙人种桃树,又摘桃花卖酒钱。 <BR> 酒醒只在花前坐,酒醉换来花下眠;半醒半醉日复日,花落花开年复年。 <BR> 但愿老死花酒间,不愿鞠躬车马前;车尘马足富者趣,酒盏花枝贫者缘。 <BR> 若将富贵比贫贱,一在平地一在天;若将贫贱比车马,他得驱驰我得闲。 <BR> 别人笑我忒疯癫,我笑他人看不穿;不见五陵豪杰墓,无花无酒锄做田。 <BR> <BR> <BR>※ 来源:·BBS 水木清华站 smth.org·[FROM: 211.99.240.122] <BR><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -