• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

help loading raid configuratoin from live CD

So i'm attempting to get recovery root access to my system; i accidentally removed myself from the admins group. . . normal "recovery" mode asks for a "maintenance password" which i don't have. after not being able to edit the "kernel" line like in previous versions to boot into single user mode, i've found instructions to come in as root on the file system by way of booting from a live-cd.

i've got a software raid10. . . so i don't think i can directly mount it, i'll have to run MDAMD first to initalize RAID, then mount md1 . . . can I do that from a live CD or am i hosed?
 
I've never used raid, so I can't help you there. I take it there isn't a root account with the distro you're using
 
Yep you should be able to load the raid. You will need to know what the devices are though but mdadm is pretty smart to figure out the rest.

You would do something like:

mdadm --assemble /dev/md0 /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf /dev/sdg

Where md0 is the raid device and the ones after are the drives. If you get the wrong ones I assume it should just error out.

Once you are under Linux with the live CD you should be able to chroot to the / folder of the system and then use passwd to change the root password.
 
Red Squirrel is right. Happened to me a few times. If the live CD you are using does not have the raid and mdadm stuff built in, you will need to (For Debian systems) "apt-get install mdadm", then start mdadm, then finally "assemble an existing raid".
 
I usually have luck with mdadm --assemble --scan. That handles everything automatically. I have each partition setup as a linux raid partition though, so that might help with the ability to do this.

Then I mount it.
 
Back
Top