Solaris x86 Partition Table Viewer

I have been playing around with some filesystem stuff on Solaris x86 lately in my free time and a bunch of things are brewing. While doing all this I constantly hit against the lack of a good partition table viewing tool. The standard fdisk just does not cut the ice. In addition I wanted to see all extended partitions as well since I intend to support accessing other filesystems on extended partitions. So I spent a couple of weekends and conjured up a utility to dump the entire x86 partition table in various formats - Philip Brown's getfdisk.c was my starting point. In addition mounting PCFS (FAT/FAT32) filesystems in extended partitions on OpenSolaris is tricky at the best due to the /dev/dsk/c\*p0: format.

The utility has the ability to scan the partition table and generate appropriate device names that can be used with PCFS. The utility can be downloaded from: http://www.belenix.org/binfiles/FSWpart.tar.gz This is an SVR4 package so to install just untar the package and execute "pkgadd -d . FSWpart". Just run "prtpart" without arguments to dump the table. "prtpart -help" prints detailed help text on the options. There is no manpage as yet. This utility is still being worked on and a more finished version will be included in the next BeleniX release in addition with EXT2/3 and NTFS support without any kernel changes :)

Comments:

Do you have sample output by any chance? Thanks, - Ryan

Posted by Matty on August 16, 2006 at 04:11 AM PDT #

Here is a couple of outputs: Raw dump of all the partition table entries: http://blogs.sun.com/roller/resources/moinakg/prtpart.out1 Human readable dump showing less and more readable info: http://blogs.sun.com/roller/resources/moinakg/prtpart.out2 BTW The FSWpart package also includes source code: usr/share/src/prtpart.c.

Posted by Moinak Ghosh on August 16, 2006 at 04:35 AM PDT #

Post a Comment:
Comments are closed for this entry.
About

moinakg

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today