Click to See Complete Forum and Search --> : Need Help with Reiserfs


slacker_x
09-27-2001, 03:05 PM
I am trying to convert my root filesystem to reiserfs.

I have already converted /dev/hdc1 to resiserfs and it works fine.

There are instructions here saying how to convert your root fs to resiser: http://www.reiserfs.org/change_fs.html

I have copied the /bin /etc /lib /sbin directories over to /dev/hdc1 according to the instructions.

I have also created a backup of my current root partition on that drive by doing this:
rsync -av --exclude=/hdc1/* / /hdc1/image/

The instructions say to create a boot disk and then boot from it. When the lilo prompt comes up, you are supposed to do:
Linux root=/dev/hd init=/bin/bash
I think that by root=/dev/hd they mean root=/dev/hdc1 in my case. The problem is that I don't know how to create a boot disk using my current kernel. How can I do this?

I use debian and make-kpkg to create my kernels. When you are installing a kernel deb, it prompts you to make a boot disk, so I did:
dpkg-reconfigure kernel-image-2.4.9

It prompted me to make the boot disk and I did.


When I tried to boot from this boot disk, it doesn't give a lilo prompt, it just starts booting the OS exactly as it normally would. if you just selected Linux.


I tried booting from the hard drive and then specifying the options Linux root=/dev/hdc1 init=/bin/bash

here is what happened:

FAT: Bogus logical sector size 0
FAT: Bogus logical sector size 0
reiserfs: checking transation log (device 16:01)...
Warning, log replay starting on readonly filesystem
reiserfs: replayed 1 transaction in 5 seconds
Using R5 hash to set _____ (can't read what I wrote there)
Reiserfs version 3.6.25
VFS: Mounted root (reiserfs filesystem) readonly
Freeing unused kernel memory: 200k freed
Warning: unable to open an initial console
kernel panic: attempted to kill init!



I don't really know what this means. I'm hoping it will be helpful. Those are just the last few lines before it sits and doesn't respond

solo
09-27-2001, 03:15 PM
One little trick to the ReiserFS is that it needs its own root (boot?) partition (about 10MB's, or so should do it). Did you create that separate partition before you tried to boot into Reiser?

slacker_x
09-27-2001, 03:35 PM
I don't think you quite understand:
currently /dev/hda1 is an ext2 root partition that includes boot and everything

/dev/hdc1 is a reiser partition that I put copied /lib /bin /sbin /etc to according to the entry in the FAQ linked above. Also put a backup of the files on /dev/hda1 on there.

the theory is that you use a boot disk to do a very minimal boot off of /dev/hdc1 and then do mkreiserfs /dev/hda1 and then copy all of your files back on to /dev/hda1, modify the /etc/fstab and then you are done