View Single Post
Old 9th September 2017
gustaf gustaf is offline
Fdisk Soldier
 
Join Date: Dec 2016
Posts: 69
Default

Your clear and easy-to-follow instructions are exactly what I have been looking for. I think this disk is finally formatted properly:

Code:
$ disklabel -h sd1

# /dev/rsd1c:
type: SCSI
disk: SCSI disk
label: BUP Slim BK     
duid: 0000000000000000
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 243201
total sectors: 3907029167 # total bytes: 1.8T
boundstart: 0
boundend: 3907029167
drivedata: 0 

16 partitions:
#                size           offset  fstype [fsize bsize   cpg]
  c:             1.8T                0  unused                    
  i:             1.8T               64   MSDOS

Code:
$ fdisk sd1
Disk: sd1       geometry: 243201/255/63 [3907029167 Sectors]
Offset: 0       Signature: 0xAA55
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
*0: 0C      0   1   2 - 243200 254  63 [          64:  3907024001 ] FAT32L      
 1: 00      0   0   0 -      0   0   0 [           0:           0 ] unused      
 2: 00      0   0   0 -      0   0   0 [           0:           0 ] unused      
 3: 00      0   0   0 -      0   0   0 [           0:           0 ] unused
I have a few final questions:

Will this disk be readable by any machine running Linux or Windows? This will be a backup drive. If something happens to my OpenBSD machine, I want to be able to read and possibly restore my files to another location.

I noticed that the offset of partition "i" and LBA start values have changed from 32 to 64. Does that make a difference?

I'm also wondering how you learned the process for formatting disks. I will probably have to format additional drives on OpenBSD at some point in the future, and I'd really like to be confident that I have the knowledge to do so correctly.
Reply With Quote