Mounting a file system with superblock 32
Duckbreath
duckbreath at yahoo.com
Sat Jun 28 03:38:41 UTC 2014
Hello all, I have a hard drive that represents an older installation of FreeBSD and I would like to access it. Using a USB -> IDE connection device the drive appears as:
/dev/da0[x*] where x* is various letters 'a', 'e', 'f', which no doubt represent the partitions from the previous installation.
A simple mount doesn't work though, returning an error message about unrecognized device.
A simple usage of fsck_ff however shows the file system clear,
fsck_ff -b 32 /dev/da0a returns system clean, and newfs -N will give me various facts about the drive (blocksize, fragment size, cylinder groups, blocks, indoes, and sectors).
Googling around has shown that perhaps the mdmfs utility is what I need. Maybe. It appears to be in vogue as a general purpose utility that looks like it has a 'everything for everybody' type design. I couldn't find anything in the manuals on it about specifying a superblock location though, like 32. Also, the manual and the handbook http://www.freebsd.org/doc/en/books/handbook/disks-virtual.html have a discrepancy where the manual claims the '-s' option only makes sense if -F is not specified, even though the example in the handbook specifies both.
I believe UFS drives with the older superblock at 32 are called 'UFS1' (as opposed to 'UFS2', of course, which is for larger drives). The mount utility's "-t" option can't seem to specify either, with only ufs being an available choice.
This fits my definition of non-trivial. Any of you know how to mount a UFS1 drive?
More information about the freebsd-fs
mailing list