View previous topic :: View next topic |
Author |
Message |
souln0thing n00b
Joined: 25 Jan 2005 Posts: 14
|
Posted: Sun May 15, 2005 3:13 am Post subject: reiser4 questions |
|
|
Ok after having boot issues on my sda, hard drive and trying every kernel source there is genkernel and hand configured, im going to try reiser 4 on my ide hard drive. What i want to know is a few things
1:. I have pretty much a full setup gentoo on my sda hard drive on reiserfs. What do i have to do to get it over, without errors. Meaning i just tried copying over the data like this. Extract a stage 3 tarball, on the new partition, copy over the old data, and i got problems with portage/emerge permission issues(by the way the command i used was #cp -r -v /mnt/gentoo/* /mnt/gentoo64). Essentialy is there a special trick to copying one gentoo from one partition to another, or should I recompile everything, please no.
2: Kernel patch or not, i currently and have used the gentoo sources, i havent noticed much difference with the ck kernel. I configure the kernels myself, and i find them to be plenty fast. If i just use vanilla or gentoo sources what patches do i apply. (If you advise patch please explain so i tried applying patches and it didnt seem to do anything). Also any special configuration tips i should know of. The primary purpose of the computer will be gaming, audio, and learning development stuff.
3: Bootloader does grub require a special patch (again please give commands to use)
I might have some more questions, thats it for now i figured out my partitioning scheme already, thanks in advance.[/code] |
|
Back to top |
|
|
allanw Arch/Herd Tester
Joined: 02 Mar 2005 Posts: 60
|
Posted: Sun May 15, 2005 3:50 am Post subject: |
|
|
I've been doing this to copy over root filesystems.
-a preserves permissions
-u only copies new modified files
-v verbose (prints the files)
-f force
-g prints a progress bar for big files
-x stay on one file system
This way it doesn't try to copy /dev or /proc and mess up.
cp -auvfgx / /mnt/gentoo |
|
Back to top |
|
|
mr.ed Tux's lil' helper
Joined: 30 Nov 2004 Posts: 75
|
Posted: Sun May 15, 2005 7:17 am Post subject: |
|
|
Hey souln0thing,
In regard to your questions bout grub and kernel, i think i might be able to help u out. First things first of course, u asked if it's possible to use vanilla or gentoo-sources patched with reiser4. Well it is! Look at this url: https://forums.gentoo.org/viewtopic-t-295168-postdays-0-postorder-asc-highlight-reiser4-start-0.html
In the last page there's an ebuild, which u can copy to your portage overlay and u can use for gentoo-sources. If u want the sole patch from namesys, here's the place to go: ftp://ftp.namesys.com/pub/.
I myself use a modified ebuild, which pulls in the latest patches from gentoo (all i did though, was modifying the ebuild's patchset number). And if the reiser4 patch is updated, all u have to do is change that number in the ebuild ;-P. It works like a charm, been using it for over a month now!
As for reiser4 on boot: why would u want to do that? Ask yourself this: is my boottime drastically lower with reiser4 on boot? The answer is no. U can patch grub for reiser4 off course, but it's really unstable and if something goes wrong... U do the math! I personally do not even mount my boot partition on boot, it only gets mounted when backing up my system.
Hope this'll help u out a bit further.
Greetz, Mr-Ed
P.s.: Some info to show it works... System uname: 2.6.11-reiser4-r8 x86_64 Intel(R) Xeon(TM) CPU 3.20GHz _________________ (Ex-Pornstar) |
|
Back to top |
|
|
tomk Bodhisattva
Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
|
Back to top |
|
|
mr.ed Tux's lil' helper
Joined: 30 Nov 2004 Posts: 75
|
Posted: Sun May 15, 2005 8:22 am Post subject: |
|
|
Hehehe lol... could have been expected _________________ (Ex-Pornstar) |
|
Back to top |
|
|
souln0thing n00b
Joined: 25 Jan 2005 Posts: 14
|
Posted: Sun May 15, 2005 3:17 pm Post subject: |
|
|
For the boot partition, personally i never had any luck with the boot partition setup. I just keep all the kernels on my / filesystem, in the boot folder. Oh well ill just redo my partitioning scheme. Thanks for the responses. And reiser4 is pretty fast i notice a dramatic increase with portage in a chroot environment. |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Wed May 18, 2005 10:12 pm Post subject: |
|
|
It's not a question of luck using a /boot partition , it is pretty universal practice. If it does not work you should work out what you are doing wrong.
As explained above , I see not reason to use anything other than ext3 for /boot.
Using cp -a works perfectly to copy across a partition. Use man cp to find out what it means.
I use R4 for portage and point my portage_tmpdir to somewhere on that partition as well rather than /var/tmp .
I can see useful, measurable improvements in speed which is nice but I would not say "dramatic".
_________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
|
freelight Apprentice
Joined: 12 Jun 2004 Posts: 295 Location: NYC, NY, USA
|
Posted: Wed May 18, 2005 11:56 pm Post subject: |
|
|
Regarding the kernels, you will need a properly patched kernel if you would like to use Reiser4. You can use mm-sources (emerge mm-sources), or one of the unofficial patchsets here in Gentoo Forums->Unsuppertoed Software (such as nitro-sources). The instructions for installing the unofficial patcshet should be in the corresponding thread. Make sure that when you do make menuconfig, you enable reiser4 support.
As for /boot, there really is no reason to put reiser4 on it. It will be a hassle to manually patch and recompile grub, and there really are no benefits. Leave your /boot partition on ext3.
The copy command has been covered above, try what has been suggested, it will work. Altertanively, you can archive your entire drive into a tarball, extract it to the new (reiser4) partition, and keep a backup of the tarball somewhere safe. The commands:
tar cvjf /oldroot/* gentoo.tar.bz2
tar xvjf gentoo.tar.bz2 /reiser4root/
Be sure to back up your important data. Reiser4 can be unpredictable. It's a wild animal that hasn't been tamed yet, and sometimes it bites.
Naturally, you will need a reiser4-enabled LiveCD to do all this. Good luck. |
|
Back to top |
|
|
Gentree Watchman
Joined: 01 Jul 2003 Posts: 5350 Location: France, Old Europe
|
Posted: Thu May 19, 2005 7:45 am Post subject: |
|
|
Quote: | Naturally, you will need a reiser4-enabled LiveCD to do all this. Good luck. |
No you dont. You can install an R4 capable kernel , boot to it , then make and use your R4 partition.
Hwvr, an R4 bootable cd would be a useful thing to have if you want to maintain a system using r4.
_________________ Linux, because I'd rather own a free OS than steal one that's not worth paying for.
Gentoo because I'm a masochist
AthlonXP-M on A7N8X. Portage ~x86 |
|
Back to top |
|
|
vipernicus Veteran
Joined: 17 Jan 2005 Posts: 1462 Location: Your College IT Dept.
|
|
Back to top |
|
|
SysOP XXL Tux's lil' helper
Joined: 27 Jan 2004 Posts: 139 Location: Kecskemét, Hungary
|
Posted: Fri May 20, 2005 6:04 am Post subject: |
|
|
vipernicus wrote: | Take your hard drive out and beat it with a hammer. This is the same effect as patching your kernel with reiser4 and using it as your main filesystem. |
I agree. Comments like these might seem exaggerating, too ironic and biased, but your opinion will change when the filesystem corrupts itself after a restart (been there, seen that), and you'll have to fsck for hours, hoping nothing was lost.
I felt like experimenting 2 months ago, when coming back from FreeBSD I've installed on a R4 /. It was quite fast indeed, I was amazed. But it slowed down eventually, became sluggish, hogged the CPU all the time, and kicked responsivity in the balls.
And then I had 2 "crashes", both needed two hours of fscking (fsck.reiser4 --build-fs) to repair, but I kept on using R4. Two weeks ago it crashed again - now corrupting my /etc, /lib, /sbin, /bin, /root directories, practically leaving me with an unbootable system. With 8 hours of hacking around, I've replaced the damaged parts from a stage3 tarball and remerged some corrupted packages.
YMMV of course, but that's exactly what I was thinking before installing. _________________ Magyarok jelentkezzetek!
A /etc/portage és használata |
|
Back to top |
|
|
Jake Veteran
Joined: 31 Jul 2003 Posts: 1132
|
Posted: Sun May 22, 2005 2:04 am Post subject: |
|
|
SysOP XXL, did you attempt to track down the source of your problem? Namesys currently has surprisingly few people who actually submit useful bug reports.
Regarding the integrity of the FS, I think everyone should keep backups. reiser4 has worked for me on multiple machines for well over a year without data loss, except on AMD64 when I knew there was a bug, and I was specifically trying to crash and lose data on a test partition. That bug has been fixed and I'm confident enough to keep some non-backed-up data on reiser4. Everything I really care about, however, gets backed up to a DragonFlyBSD machine. That way if I get my Gentoo installation into an unfixable state, suffer a stray rm -rf, have a hard drive die, or find a reiser4 bug, my important data is safe. Interestingly enough, of those previously mentioned ways to screw up a system, FS corruption is the only one I haven't dealt with, although I had a few close calls with XFS. |
|
Back to top |
|
|
SysOP XXL Tux's lil' helper
Joined: 27 Jan 2004 Posts: 139 Location: Kecskemét, Hungary
|
Posted: Mon May 23, 2005 3:22 pm Post subject: |
|
|
I have to admit I haven't studied the inner workings of the Reiser4 filesystem, nor have I even tried to debug. After that crash I tried to recover my system with all my might, and not even thought of writing every line down. Sorry. _________________ Magyarok jelentkezzetek!
A /etc/portage és használata |
|
Back to top |
|
|
Jake Veteran
Joined: 31 Jul 2003 Posts: 1132
|
Posted: Mon May 23, 2005 7:40 pm Post subject: |
|
|
SysOP XXL wrote: | I have to admit I haven't studied the inner workings of the Reiser4 filesystem, nor have I even tried to debug. After that crash I tried to recover my system with all my might, and not even thought of writing every line down. Sorry. |
You don't need to know the inner workings of the filesystem to submit a bug report, nor do you need to actually attempt to debug the filesystem. All Namesys asks is that you can repeat the crash with a supported kernel (mm or their vanilla patches) with reiser4 debugging enabled, and that you submit relevant kernel message logs. If you suspect corruption, they'll also want fsck logs and possibly a metadata dump. |
|
Back to top |
|
|
SysOP XXL Tux's lil' helper
Joined: 27 Jan 2004 Posts: 139 Location: Kecskemét, Hungary
|
Posted: Tue May 24, 2005 6:24 am Post subject: |
|
|
Jake wrote: | You don't need to know the inner workings of the filesystem to submit a bug report, nor do you need to actually attempt to debug the filesystem. All Namesys asks is that you can repeat the crash with a supported kernel (mm or their vanilla patches) with reiser4 debugging enabled, and that you submit relevant kernel message logs. If you suspect corruption, they'll also want fsck logs and possibly a metadata dump. |
It's too late now, but how am I supposed to boot an mm or vanilla kernel, when I can't even get my system to boot? And I would have sent them the fsck logs, if fsck didn't segfault on every check... That's when I started to panic, and attempted save everything despite the corruption. _________________ Magyarok jelentkezzetek!
A /etc/portage és használata |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|