[opensuse] official way of moving (12.3) to different hdd? dont boot, kernel panic, but all grub, grub2 and fstab edited to new devdiskbyid
official way of moving (12.3) to different hdd? dont boot, kernel panic, but all grub, grub2 and fstab edited to new devdiskbyid I was wondering what the actual official way is to move a current opensuse system to a new harddisk. I copied everything over via gparted live distro. Recreated all the partitions the same way (both are sata disks), copied over everything, went fine, activated the boot partition as bootable. Then due to a lack of current bootable rescue system with 12.3 i used an older dvd iso of 11.something or so to bootup into rescue mode and edit all the files I knew of where it mattered and exchanged those /dev/disk/by-id/ata...... from the old (samsung) to the new IDs (seagate). (fstab, menu.cfg of grub and I even had some grub2 directory that I also edited as well) The new disk then commenced to boot up also displayed the grub menu, but it would then always kernel panic after a little while when it continued to load the kernel and initrd. Later I selected the advanced entry 12.3 in the grub menu I dont recall any more what it was named exactly, but it displayed more messages and I could catch that at the end right when it kernel panicked, it still wrote out lines that it was missing the dev/disk/by-id/....samsung.... stuff, although I had changed all the places I knew about. So I had to fetch some current 12.3 bootable media, and eventually even had to mount all the disks in rescue mode and the special sys proc and some third directory, and then chroot into the system and then issue a mkinitrd which then apparently recreated something to a deeper extent and the system only then booted up from the new HDD. Am I doing things wrong here? It seems quite a big work when I compare this to older opensuse versions, where the steps of editing fstab and grub.cfg just simply worked back then. I never had to mkinitrd or chroot into a system when only a simple sata disk id had changed. What is the official way of migrating over to a new storage device for running aka booting from? Thanks for pointers. Regards. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2013-07-18 11:13 (GMT+0200) cagsm composed:
official way of moving (12.3) to different hdd? dont boot, kernel panic, but all grub, grub2 and fstab edited to new devdiskbyid
Next time try using LABEL= syntax in fstab and grub menu configfile. I can't recall experiencing this problem using them with openSUSE (only with Grub Legacy), unlike in Fedora (where I use openSUSE's Grub Legacy). If you read https://bugzilla.redhat.com/show_bug.cgi?id=979269 you might spot something useful re openSUSE cloning. -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 07/18/2013 05:35 AM, Felix Miata pecked at the keyboard and wrote:
On 2013-07-18 11:13 (GMT+0200) cagsm composed:
official way of moving (12.3) to different hdd? dont boot, kernel panic, but all grub, grub2 and fstab edited to new devdiskbyid
Next time try using LABEL= syntax in fstab and grub menu configfile. I can't recall experiencing this problem using them with openSUSE (only with Grub Legacy), unlike in Fedora (where I use openSUSE's Grub Legacy). If you read https://bugzilla.redhat.com/show_bug.cgi?id=979269 you might spot something useful re openSUSE cloning.
I recently had to move to a new disk as the old one was starting to fail and some system programs were starting to give errors. You need to boot with the install DVD and using: 1. Boot to rescue mode (mount your partitions) 2. mount /dev/sda1 /mnt (suppose /dev/sda1 is your / partition) 3. mount --bind /dev /mnt/dev 4. mount --bind /sys /mnt/sys 5. mount --bind /proc /mnt/proc 6. chroot /mnt use zypper (or YaST) to reinstall the kernel. Once you are able to boot the system check the log files for any other problem packages that may need to be reinstalled. HTH -- Ken Schneider SuSe since Version 5.2, June 1998 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (3)
-
cagsm
-
Felix Miata
-
Ken Schneider - openSUSE