Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

So I screwed up my grub.conf file on a CentOS system and I'm in recovery right now (it's only a test dedicated server). My disks are /dev/sda1 and /dev/sdb1 (RAID 1). Now I need to mount /dev/sda1 and make changes to the grub file, however those changed need to be reflected on the second disk aswell.

How do I mount these RAID disks? I can mount one using mount -t ext3however it will damage the RAID array.

share|improve this question
1  
what kind of raid is it? mdadm ( software raid ) or do you have a hardware raid card? –  Olivier S Mar 30 '12 at 20:45
    
@OlivierS Ah thanks it's software raid. I've found out now how to mount it, I had to make it active. Cheers! –  Devator Mar 30 '12 at 20:48
add comment

1 Answer 1

up vote 1 down vote accepted

I've found out already, I had to make the raid active and then mount it with mount /dev/md1 /mnt/raid:

How do I mount a software RAID in the Rescue System?
The command:
cat /proc/mdstat
shows all available software RAID arrays. Normally the Rescue System assembles all autodected arrays. Should your array not be automatically started, you can manually do so with the following command:
mdadm --assemble /dev/md0 /dev/sda1 /dev/sdb1
Now you can mount the just created MD device with:
mount /dev/md0 /mnt
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.