On Mon, 2003-02-10 at 02:40, [EMAIL PROTECTED] wrote:
> 
> I Installed woody and all its filesystem on one reiserfs partition /dev/hdb1. Now, 
>because my beloved debian has grown over time, I'd like to move the entire 1.6 GB 
>/usr directory to a reiserfs /dev/hdb6 partition.
> I had a go at it mounting a /usr-bis directory to /dev/hdb6 and issuing a "cp -A 
>/usr /usr-bis", modifying fstab, and renaming the old /usr to /usr.backup and the 
>/usr-bis to /usr. 
> When I restarted it all, debian (or reiserfs ?)complained many times on something 
>wrong with the files, the dependencies, and so on.
> 
> What steps should I take to fix it, to move to the new /dev/hdb6 partition?
> 
I am not sure what exactly went wrong for you but here is what I would
do to make a new reiserfs partition and copy /usr to it.

1. First ensure your kernel has reiserfs support built in.  If not
compile a new kernel and compile it in.  This is easier than using
initrd and loading modules etc.

2. Make the filesystem on the device.
mkreiserfs /dev/hdb6

3. Mount the new device
mount -t reiserfs /dev/hdb6 /mnt

4. Copy over the /user files
cd /usr
cp -av . /mnt

(Nb. I did some testing and found that all the following seem to create
a usr directory under /mnt and copy everything below that.  In other
words you end up with /mnt/usr/allusrfiles instead of /mnt/alluserfiles)
cp -a /usr /mnt
cp -a /usr/ /mnt
cp -a /usr /mnt/
So don't use these commands but first change dir into /usr and then use
the command above (cp -av . /mnt) - it worked OK.

5. Edit /etc/fstab and put an entry like:
/dev/hdb6       /usr    reiserfs        defaults    0      0

6. Unmount the old /usr partition
umount /dev/hdb? (? whatever partition it was on.)

7. Mount the new reiserfs /usr partition
mount /usr (Should now work since you have updated fstab)

If all works well and you have reiserfs compiled into your kernel then
rebooting should be OK.

Nb. Any problems or things don't seem correct then change back your
/etc/fstab and don't reboot until you are sure things are working.

Regards.
Mark.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to