LinuxQuestions.org
Help answer threads with 0 replies.
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, 03:41 AM   #1
slipstream5
LQ Newbie
 
Registered: Mar 2012
Location: Canada
Distribution: Ubuntu, Korora, SalixOs,
Posts: 15

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, 04:13 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Kubuntu 18.04, Manjaro, Win 10
Posts: 2,155

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


Reply

Tags
gparted, mdadm, remove, software raid, ubuntu


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

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

All times are GMT -5. The time now is 07:26 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration