[opensuse] reconstructing a boot disk
Hello, one of my servers broke. I have a rsync backup of the hole disk. I can't anymore build a new version of this same distro, obsolete (12.1). However I would prefer to start from the initial disk, because the setup was a bit special and not documented enough. I can connect a new hard drive and rsync back to it, but I wonder how I can regain grub boot? is it possible to install grub from an other running distro (certainly not the same version) or may I have to boot a rescue disk and chroot into the reconstructed disk? thanks jdd -- http://www.dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 22/04/2014 16:13, jdd a écrit :
I can connect a new hard drive and rsync back to it, but I wonder how I can regain grub boot?
well, I just found a mirror with the 12.1 dvd iso, I will start from this one http://opensuse.mirrors.ovh.net/opensuse/distribution/12.1/iso/ (and it's my provider, so very fast dl :-) jdd -- http://www.dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 04/22/2014 05:13 PM, jdd wrote:
Hello,
one of my servers broke.
I have a rsync backup of the hole disk. I can't anymore build a new version of this same distro, obsolete (12.1). However I would prefer to start from the initial disk, because the setup was a bit special and not documented enough.
I can connect a new hard drive and rsync back to it, but I wonder how I can regain grub boot?
is it possible to install grub from an other running distro (certainly not the same version) or may I have to boot a rescue disk and chroot into the reconstructed disk?
- believe : ............. Start the Live openSuSE or rescue system. Find the disk root partition, then, assuming its hdxy (or probably sdxy): mount /dev/hdxy /mnt mount -o bind /proc /mnt/proc mount -o bind /sys /mnt/sys mount -o bind /dev /mnt/dev chroot /mnt ........................................ finally: start YAST to install boot-loader ............... regards -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 22/04/2014 16:33, ellanios82 a écrit :
Start the Live openSuSE or rescue system. Find the disk root partition, then, assuming its hdxy
Yes, it's like this that I do most of the time. but the rescue disk have to be the same version as the installed system (same kernel) I didn't find the 12.1 rescue, but searching for it I full the full dvd, even best :-) thanks jdd -- http://www.dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 04/22/2014 05:58 PM, jdd wrote:
I didn't find the 12.1 rescue, but searching for it I full the full dvd, even best :-)
_______________ the page : http://software.opensuse.org/121/en - seems to have the correct items ............. regards -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
jdd wrote:
Le 22/04/2014 16:33, ellanios82 a écrit :
Start the Live openSuSE or rescue system. Find the disk root partition, then, assuming its hdxy
Yes, it's like this that I do most of the time.
but the rescue disk have to be the same version as the installed system (same kernel)
No, that's not necessary as long as the architectures (intel, 32bit, 64bit) match.
I didn't find the 12.1 rescue, but searching for it I full the full dvd, even best :-)
You could use the NET iso too and boot with "usessh=1". -- Per Jessen, Zürich (18.4°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 22/04/2014 19:09, Per Jessen a écrit :
jdd wrote:
but the rescue disk have to be the same version as the installed system (same kernel)
No, that's not necessary as long as the architectures (intel, 32bit, 64bit) match.
I often had problem with this
I didn't find the 12.1 rescue, but searching for it I full the full dvd, even best :-)
You could use the NET iso too and boot with "usessh=1".
12.1 dvd have the rescue part and the main problem was disks names (UID), after that I could boot (admin mode) and fix things. thanks jdd -- http://www.dodin.org -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
jdd wrote:
Le 22/04/2014 19:09, Per Jessen a écrit :
jdd wrote:
but the rescue disk have to be the same version as the installed system (same kernel)
No, that's not necessary as long as the architectures (intel, 32bit, 64bit) match.
I often had problem with this
I guess there could be an issue if the kernels are too far removed, but I've never had a problem just because of a mismatch. -- Per Jessen, Zürich (12.5°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2014-04-22 16:13 (GMT+0200) jdd composed:
I wonder how I can regain grub boot?
The Grub man page explains. (not to be confused with Grub2, which I do not use, and IIRC was not 12.1's default bootloader)
is it possible to install grub from an other running distro (certainly not the same version) or may I have to boot a rescue disk and chroot into the reconstructed disk?
Chroot is one way. When you want to run a script, you need the environment that provides access to it. But, installation of Grub does not require any script, or necessarily even mounting of the target. Here's the procedure I use to put a brand new or wiped disk into use: 1-boot something providing the ability to create partitions (I boot either DOS or Knoppix from removable media, and use a non-FOSS cross-platform partitioner called "DFSee") 2-create all partitions that will be required in foreseeable future 3-copy standard DOS/BIOS code to MBR 4-set boot flag appropriate to plans 5-reboot, either Win installation disk to install Windows, or Knoppix CD or DVD to prepare for Linux installation 6-for Linux, create require filesystem(s) and swap space 7-mount any filesystems that will be home to Grub 8-make a /boot/grub directory and copy Grub's *stage* files to it 9-create a /boot/grub/device.map 10-optionally create a skeleton /boot/grub/menu.lst 11-"install" Grub according to its man page, e.g.: grub> find /boot/grub/stage1 # confirm Grub's files are where they need to be grub> root (hd0,2) # provide Grub the environment it needs to proceed grub> setup (hd0,2) # this the foundation of "installing" Grub For your case, rather than creating all new filesystems, I would most likely have used DFSee to clone from the backup media to the new HD as an integral preparation step at partition creation time, so would not have needed to mount anything to copy Grub's *stage* files or create device.map or menu.lst. If say an original / partition on /dev/sda2 was once cloned to a backup disk as /dev/sdb2, I'd just reverse the process to the new HD, after which only above steps 3, 4 & 11 would be needed. If the "cloning" method had been tar or rsync or cp, the process of restoration would nevertheless still be simpler than needing all 11 steps, since it would include the content of /boot/grub, leaving little more to do than set flag, put MBR code in place, and "install" Grub via setup command from grub> prompt. -- "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
participants (4)
-
ellanios82
-
Felix Miata
-
jdd
-
Per Jessen