Vivek Joshi's Weblog

Thursday Nov 09, 2006

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.

Comments:

Post a Comment:
Comments are closed for this entry.

Calendar

Feeds

Search

Links

Navigation

Referrers