Vivek Joshi's Weblog
Solaris partitions issues (contd)
I did a little investigation about ufs layout. The file system is made of :-
- Boot block
- Super block
- Inode table
- Data blocks
Super block contains info about the file system state, size of fs, number of free inode, magic number (0x11954 for ufs) etc. This is very important information and replicated across the cylinder groups. It's interesting to note that this magic number is at offset of 0x55c (in decimal 1372). We can think of rebuilding our lost vtoc based on this information. We can 'dd' on some starting blocks on a cylinder and then start searching for a valid SB (as mentioned in identify_ufs). But the main question is, from where or which offset we should check against the super block.
My vtoc entries are lost for that partiion. So, I am not sure how different slices were alligned ? All I know from fdisk are the start & end cylinder numbers for that partition.
I'll continue investigating this in my spare time.
Posted at 04:24PM Nov 09, 2006 by vbjoshi in General |