You are not logged in.
Pages: 1
Hi
I try to move my system from hda to sda.
The first Problem occoured is solved http://bbs.archlinux.org/viewtopic.php?t=26417. Thanx to Romashka and Penguin!
But now ther is the next Problem.
I copyed
hda1 to sda1
hda2 was swap
hda3 was root an is now sda6 for root and sda7 for /var
Problem 1:
sda is on SATA1 on the Mainboard (Asus A8N-SLI)
grub says it is hd0 but linux says it is sdb
Problem2:
my my menu.1st looks like:
root (hd0,5)
kernel (hd0,0)/vmlinuz26 root=/dev/sdb6 vga=791 ro
initrd (hd0,0)/kernel26.img
the bootprocess is normal while it is inside the initcpio
but then...
...
:: Initramfs Completed - control passing to kinit
IP-Config: no devices to configure
XFS mounting filesystem sdb6
kinit: Mounted root (xfs filesystem) readonly.
kinit: opening console: Read-only file system
Kernel panic - not syncing: Attempted to kill init!
whats going on there?
I tried to change the divice.map file but always the same wrong maping.
I tried to delete the device.map but nothing changes.
Any Ideas what I have to do to fix my system?
I can boot my system from The ata disk without any problems. BTW, sure I have changed my fstab.
thank you for helping me
Chris
Offline
did you try to regenerate your initcpio image? Can't remember the exact command for that off hand, something like mkinitcpio -g /boot/kernel26.img. You can reinstall your kernel and it will automatically do it. Be sure sata and auto(?) is listed in the hooks array. Remember there is a fallback image you can use which has everything included in it. kernel26-fallback.img or something like that.
Offline
Hi
I regeneraeted the initcpio many times. Now I have everything inside the image I can imagine and the error occours aftersuccsessfull execution of the cpio image.
chris
Offline
Random guess - can you remove 'ro' from your kernel line and see if anything changes?
Offline
You didn't provide the commands that you used to copy the files, but I guess you broke something while copying it. Cloning a system has to be done VERY carefully. If you use the wrong commands, you end up with broken permissions (setuid and setgid bits lost) and device node being regular files. This is what happened to you:
Although udev creates most device nodes in a ramfs, there have to be some device nodes on your real filesystem. Most important of them is /dev/console:
kinit: opening console: Read-only file system
kinit tries to open /dev/console for writing, but as it is a regular file now, it claims that the filesystem is readonly.
You have to recreate the /dev/{console,null,zero} devices on your real root filesystem properly (using mknod). But I guess your system will be broken anyway, as you most likely also lost other special files and permissions that you need to run.
Offline
Did you keep your data on old drive hda1?
As has been said you cannot copy hda1 to sda1
Can you not put hda1 (old drive) into system and try again?
my2c
Mr Green
Offline
Hi
sure, I still have my old data!
Thats a mistake thats I will never do again.
I now try to copy the data with cp -a with a cd linux.
chris
Offline
I'm using mc for copying data from one partition to another. It always works for me.
Offline
mc was what I used first too :-)
Offline
thank you!
It works!
Offline
Reiser4FShowto
It may help a bit
Mr Green
Offline
For future reference, the way to use cp to transfer data:
1) boot into a live cd or switch down to single user mode (telinit S)
2) mount it read-only: mount -o ro /dev/hdxy /mnt/hdxy or mount -o remount,ro /dev/hdxy
3) use the cp command with the preserve switch to retain ownership and permissions with the recursive switch: cp -rp /mnt/hdxy /mnt/sdxy or cp -rp / /mnt/sdxy
The best way is to use dd which will copy your data block for block. The only downside is that your target partion must be the same size or larger for it to work. In this case use a live cd and do not mount either partition. Issue the following command:
dd if=/dev/hdxy of=/dev/sdxy bs=4096 conv=noerror,notrunc
Be sure not to mess up the order of if and of - if is your source (input file) while of is your target (output file).
Offline
Am interested in this because I want to be able to back up my /home dir. but was getting those link errors using cp -ax
Got to add a partiton so I wanted to resize /home....
emmm
Mr Green
Offline
Nothing beats rsync on the file-level; if you want to be even more accurate it has to be block-level and dd.
1000
Offline
Easy: adapt your /etc/fstab to the new location
Martin
Offline
Pages: 1