Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[SOLVED] Wheezy grub-install problem

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
gaijin
Posts: 16
Joined: 2016-11-22 12:08

[SOLVED] Wheezy grub-install problem

#1 Post by gaijin »

hello
I have raid 1 (two disk) on my debian wheezy
Today I change one disk to new one.

Code: Select all

sfdisk -d /dev/sda | sfdisk /dev/sdb --force

mdadm -a /dev/md0 /dev/sdb1
mdadm -a /dev/md1 /dev/sdb5
mdadm -a /dev/md2 /dev/sdb6
mdadm -a /dev/md3 /dev/sdb7
mdadm -a /dev/md4 /dev/sdb8
mdadm -a /dev/md5 /dev/sdb9
mdadm -a /dev/md6 /dev/sdb10
All synchronize good and I try:

Code: Select all

grub-install /dev/sdb
/usr/sbin/grub-setup: error while loading shared libraries: unexpected PLT reloc type 0x83

What now? How to fix it?
Last edited by gaijin on 2017-08-18 08:15, edited 1 time in total.

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Wheezy grub-install problem

#2 Post by debiman »

gaijin wrote:

Code: Select all

sfdisk -d /dev/sda | sfdisk /dev/sdb --force
i just had a look at "man sfdisk" to see what this actually does.
wow.
where did you get that command from? is it the recommended way to achieve what you want?
what do you actually want to achieve with that?
shouldn't you have dumped the partition table to a file first, instead of piping it straight back into sfdisk?

also...
man sfdisk wrote: -f, --force
Disable all consistency checking.
maybe relevant?

gaijin
Posts: 16
Joined: 2016-11-22 12:08

Re: Wheezy grub-install problem

#3 Post by gaijin »

Disk is damaged. On another all is OK.

Code: Select all

--force
is unnecessary.

All command is OK. Read how to add disk to software raid on Debian
bye

Post Reply