You are not logged in.

#1 2005-07-06 20:06:34

matjaz
Member
Registered: 2004-03-08
Posts: 16

migrating to reiser4 creating /dev [SOLVED]

In order to migrate to reiser4 I created a new partition and copied all my files to that partition except I created dir /sys /dev /proc. Then I tried running:

chroot $1 /bin/bash
MAKEDEV null console zero
echo exit

(as suggested in http://bbs.archlinux.org/viewtopic.php? … t=reiser4)
where the first line gives me an error to the order /bin/bash is not a directory so I tried just running MAKEDEV null console zero on my old installation. When I tried rebooting into the copied installation I get an error that it can not open the initial console and the boot process hangs. I presume the error is because there are no initial device nodes so I was wondering how to create them for the new partition. I haven't tried booting from the CD yet and executing the commands which is I presume what I am supposed to do, or is there an easier way to make the nodes on the new installation.

Thanks for the help,
Matt

Offline

#2 2005-07-06 21:18:46

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: migrating to reiser4 creating /dev [SOLVED]

If you're in the old partition then just copy your /dev/ with cp -ax to your new partition.

Best way to chroot is to first change to the place you want to become the new dir and then do "chroot ."

Offline

#3 2005-07-06 21:21:14

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,017

Re: migrating to reiser4 creating /dev [SOLVED]

I'd just chroot to the new partition and execute 'migrate-udev'. If for any reason it didn't work, I'd just uninstall udev and install it again.

Offline

#4 2005-07-06 22:58:55

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: migrating to reiser4 creating /dev [SOLVED]

you can also create the new nodes using mknod once chroot'd to the new partition. as someone else has already said, the easiest way is to just cp the old /dev to the new partiton. i'd do this when booted from a livecd. when i converted over the reiser4 i used the mknod method for initctl, null and console.

Something like this:

 mknod -m644 initctl p
 mknod -m644 console c 5 1
 mknod -m644 null c 1 3

Offline

#5 2005-07-07 10:09:33

matjaz
Member
Registered: 2004-03-08
Posts: 16

Re: migrating to reiser4 creating /dev [SOLVED]

Thanks for all the help. The problem is fixed

Offline

Board footer

Powered by FluxBB