LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-13-2015, 02:41 AM   #1
slipstream5
LQ Newbie
 
Registered: Mar 2012
Location: Canada
Distribution: Ubuntu, Korora, SalixOs,
Posts: 26

Rep: Reputation: Disabled
Unhappy How to remove (ubuntu 'softRAID') dmraid without messing up files on other partitions


Hello!

I had created 2 software raid 0 partitions which I had used for root and home partitions but now I have no use for software raid or the old OS anymore.

I had previously created the array following:

https://help.ubuntu.com/community/In...n/SoftwareRAID

which looked similar to this:

Code:
md0X: active raid1 sdaX[0] sdbX[1]
      256896 blocks [2/2] [UU]
md0Y : active raid2 sdaY[0] sdbY[1]
      256896 blocks [2/2] [UU]
(from 4 partitions on 2 separate HDDs). These HDDs also contain other non raid partitions with other OSs and important data.

I don't think I can manage backing up the current OS so I want to make sure I proceed properly.

So far I had simply deleted 2 of the raid partitions on one disk and reformatted them with Gparted. But on the other disk I keep getting libparted errors:

(which I don't remember clearly at the moment but I will copy the saved info tommorow when I access the computer in question).
Quote:
The partition is in use by the kernel and needs to be rebooted ...
so gparted can't delete the partition.

Now the same link mentions:

to remove a disk from an array:

Code:
sudo mdadm --remove /dev/md0 /dev/sda1
but now I already have reformatted half the array on one disk. I didn't think that software raid left any metadata on the drive, but clearly something is confusing Gparted.


Do I load Gparted again from cd and work from the terminal? I want to make sure that I am only removing the partions in the remaining array and not other valuable partitions.

Note: I will try to get more exact info tommorow from my HDDs.
 
Old 07-13-2015, 03:13 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Try to backup the important data and then proceed.
 
  


Reply

Tags
gparted, mdadm, remove, software raid, ubuntu



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
How to remove other linux install partitions wihtout messing up my main install? bmcgonag Linux - Desktop 2 08-18-2012 05:00 PM
Dual booting Windows + Ubuntu on SoftRaid controller acidrop Linux - Hardware 7 08-03-2010 11:49 PM
Dmraid does not activate partitions Wurstbrot Linux - Software 2 11-14-2009 09:40 AM
Dmraid partitions names sorin_ban Fedora 0 07-19-2006 01:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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

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
Open Source Consulting | Domain Registration