Re: [CentOS] Accidentally nuked my system - any suggestions ?

2018-12-05 Thread Nicolas Kovacs
Le 05/12/2018 à 08:31, Phil Perry a écrit : > If you are confident in the state of sda, I would remove sdb from the > array, copy the partition table from sda to sdb as Stephen suggested > earlier, then add sdb back to the array and allow the data to be synced: > > For example: > > mdadm --fail

Re: [CentOS] Accidentally nuked my system - any suggestions ?

2018-12-04 Thread Phil Perry
On 05/12/2018 05:37, Nicolas Kovacs wrote: Le 04/12/2018 à 23:50, Stephen John Smoogen a écrit : In the rescue mode, recreate the partition table which was on the sdb by copying over what is on sda sfdisk –d /dev/sda | sfdisk /dev/sdb This will give the kernel enough to know it has things to

Re: [CentOS] Accidentally nuked my system - any suggestions ?

2018-12-04 Thread Nicolas Kovacs
Le 04/12/2018 à 23:50, Stephen John Smoogen a écrit : > In the rescue mode, recreate the partition table which was on the sdb > by copying over what is on sda > > > sfdisk –d /dev/sda | sfdisk /dev/sdb > > This will give the kernel enough to know it has things to do on > rebuilding parts. Once

Re: [CentOS] Accidentally nuked my system - any suggestions ?

2018-12-04 Thread Gordon Messmer
On 12/4/18 2:31 PM, Nicolas Kovacs wrote: Unfortunately that didn't work. The boot process stops here: [OK] Reached target Basic System. Now what ? Remove "rhgb quiet" from the kernel boot args and see if you get any more information about what's happening.  "Reached target Basic System."

Re: [CentOS] Accidentally nuked my system - any suggestions ?

2018-12-04 Thread Stephen John Smoogen
On Tue, 4 Dec 2018 at 17:30, Nicolas Kovacs wrote: > > Le 04/12/2018 à 23:10, Gordon Messmer a écrit : > > The system should boot normally if you disconnect sdb. Have you > > tried that? > > Unfortunately that didn't work. The boot process stops here: > > [OK] Reached target Basic System. > >

Re: [CentOS] Accidentally nuked my system - any suggestions ?

2018-12-04 Thread Nicolas Kovacs
Le 04/12/2018 à 23:12, mark a écrit : > I think how I'd go about it would be to boot off a rescue disk, then > either try to mount the raid, or just edit the /etc/mdadm.conf, and > tell it only sda, and maybe sdb marked as failed. Then see if you can > mount the raid. OK, I got a partial success

Re: [CentOS] Accidentally nuked my system - any suggestions ?

2018-12-04 Thread mark
Nicolas Kovacs wrote: > > My workstation is running CentOS 7 on two disks (sda and sdb) in a > software RAID 1 setup. > > It looks like I accidentally nuked it. I wanted to write an installation > ISO file to a USB disk, and instead of typing dd if=install.iso > of=/dev/sdc I typed /dev/sdb. As

Re: [CentOS] Accidentally nuked my system - any suggestions ?

2018-12-04 Thread Nicolas Kovacs
Le 04/12/2018 à 23:10, Gordon Messmer a écrit : > The system should boot normally if you disconnect sdb. Have you > tried that? Unfortunately that didn't work. The boot process stops here: [OK] Reached target Basic System. Now what ? -- Microlinux - Solutions informatiques durables 7,

Re: [CentOS] Accidentally nuked my system - any suggestions ?

2018-12-04 Thread mark
Gordon Messmer wrote: > On 12/4/18 2:01 PM, Nicolas Kovacs wrote: > >> I tried a hard reset, but of course, the boot process would stop short >> very early in the process. > > The system should boot normally if you disconnect sdb.  Have you tried > that? Duh! thanks, Gordon, a simpler answer than

Re: [CentOS] Accidentally nuked my system - any suggestions ?

2018-12-04 Thread Gordon Messmer
On 12/4/18 2:01 PM, Nicolas Kovacs wrote: I tried a hard reset, but of course, the boot process would stop short very early in the process. The system should boot normally if you disconnect sdb.  Have you tried that? ___ CentOS mailing list

[CentOS] Accidentally nuked my system - any suggestions ?

2018-12-04 Thread Nicolas Kovacs
Hi, My workstation is running CentOS 7 on two disks (sda and sdb) in a software RAID 1 setup. It looks like I accidentally nuked it. I wanted to write an installation ISO file to a USB disk, and instead of typing dd if=install.iso of=/dev/sdc I typed /dev/sdb. As soon as I hit , the screen