Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-05-2011, 08:18 PM   #1
LQ Newbie
Registered: Apr 2011
Posts: 6

Rep: Reputation: 0
Exclamation Converting from RAID1 to a single disk, after failure


I recently had an issue where one of my RAID1 configured drives died on a Debian box.

By die, I mean after post, I am presented with a black screen and flashing cursor, nothing more.

I booted into a knoppix shell and did:

mdadm --assemble /dev/md0 --run -u <UUID of the only working drive> /dev/sda1

I could then 'mount /dev/sda1 /mnt/' and see all the contents as I should be able to.

However, I cannot boot from this device by itself for some reason.

I have reinstalled grub 'grub-install --recheck --rootdirectory=/mnt /dev/sda1' #something like that, can't remember the exact --rootdirectory command without the --help switch, my apologies.

I restarted, with the failed drive unplugged, and again, I'm faced with the black screen, flashing cursor.

Can someone please assist me.

oh, if I've left anything out, my apologies.


Old 04-05-2011, 11:11 PM   #2
LQ Newbie
Registered: Apr 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Wink Fixed

All is good now.

The MBR wasn't on the working disk, so, I ran;


and did the following;

root (hd0,0)
setup (hd0)

Something very similar to the above. init 6'd, took the disk out, and alas, all is working again.




Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 11 RAID 1, Disk failure - How to boot from the single working disk NothingSpecial Linux - Hardware 2 10-18-2009 06:20 PM
Getting Ubuntu to recognise my RAID1 as a single disk brownb2 Ubuntu 0 06-28-2009 10:58 AM
How to recover a raid1 over nbd after failure of local disk? adrian_stephens Linux - Server 1 05-22-2009 12:16 PM
Converting single disk to RAID5 without loosing data malo_umoran Linux - General 2 03-10-2008 06:19 PM
RAID1 LVM disk failure - can't restore ngibsonn Linux - Software 2 03-13-2007 07:49 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:28 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration