Re: overwrote boot sector, advice requested!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday November 29, armenb@xxxxxxxxxx wrote:
> However, my attempts at trying to determine the exact location of the 
> physical partition from the location of the raid superblock and the 
> size of the "enclosed partition" (sb->size) has not given me much luck 
> (I probably am making erroneous assumptions about where exactly the 
> raid superblocks are located).

The raid superblock are located at the start of the last complete 64K
aligned 64K chunk of the device. i.e. round down the size to a
multiple of 64K, and subtract 64K.

If all your raid5 partitions were (exactly) the same size, then
sb->size will be the location of the raid superblock in the partition,
so subtracting one from the other should give you the start of the
device.

> 
> Is there any kind of software setting or tool that those in-the-know 
> can recommend that I use for determining the locations of the physical 
> partitions based on the location of the RAID superblock? (or anything 
> else for that matter!)

I recommend you look at mdadm
   http://www.kernel.org/pub/linux/utils/raid/mdadm/
(use 1.8.0, not 1.8.1).

It won't do exactly what you want, but you may still find it helpful.

Good luck.

NeilBrown
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux