LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

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


Hi,

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.

Regards,

X3N.
 
Old 04-05-2011, 11:11 PM   #2
x3nn3x
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;

grub

and did the following;

root (hd0,0)
setup (hd0)
quit

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

Thanks.

X3N
 
  


Reply


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


All times are GMT -5. The time now is 08:16 AM.

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