Thanks to all who replied.
Needed to enlarge partition via disklabel (command b) instead of fdisk (see 
below line OpenBSD area),

sd0> p                                                                          
OpenBSD area: 64-244188000; size: 244187936; free: 244187936                    
#                size           offset  fstype [fsize bsize   cpg]              
  c:       1953525168                0  unused                                  
sd0> b                                                                          
Starting sector: [64]                                                           
Size ('*' for entire disk): [244187936] *                                       
sd0*> p                                                                         
OpenBSD area: 64-1953525168; size: 1953525104; free: 1953525104                 
#                size           offset  fstype [fsize bsize   cpg]              
  c:       1953525168                0  unused                                  
sd0*> a d                                                                       
offset: [64]                                                                    
size: [1953525104]                                                              
FS type: [4.2BSD]                                                               
sd0*> p                                                                         
OpenBSD area: 64-1953525168; size: 1953525104; free: 48                         
#                size           offset  fstype [fsize bsize   cpg]              
  c:       1953525168                0  unused                                  
  d:       1953525056               64  4.2BSD   8192 65536     1               
sd0*> w

-->just to note, prior to this I played enough to get  fdisk returning Can't 
read sector 0 and also some kernel panic ...I had to resort to Linux fdisk to 
write a fresh DOS partition table (there also noticed that the disk had a GPT 
type partition table which may be the culprit all along somehow).

-- 
Patrick
https://monero.how
On Wed, Aug 19, 2020 at 08:02:47AM +0200, Otto Moerbeek wrote:
> On Tue, Aug 18, 2020 at 04:03:12PM -0400, Patrick wrote:
> 
> > Hello, I tried to create a new partition via disklabel but is limited to 
> > 244M size ?  This is via the SATA interface of an armv7 Allwiner A10 
> > (OlinuXino).
> > Thanks in advance for any hint.
> > 
> > =disklabel output - note the size of partition c is 1TB but ends up with 
> > only 244MB.
> > 
> > OpenBSD area: 64-244188000; size: 244187936; free: 244187936
> > #                size           offset  fstype [fsize bsize   cpg]
> >   c:       1953525168                0  unused                    
> > sd0> a
> > partition: [a] d
> > offset: [64] 
> > size: [244187936] 1953525168
> > FS type: [4.2BSD] 
> > sd0*> p
> > OpenBSD area: 64-244188000; size: 244187936; free: 0
> > #                size           offset  fstype [fsize bsize   cpg]
> >   c:       1953525168                0  unused                    
> >   d:        244187936               64  4.2BSD   2048 16384     1
> > 
> > 
> > --> don't think armv7 uses fdisk ...anyhow fdisk reports OpenBSD MBR 
> > partition ending sector (15199) vs geometry (121601) ?
> > 
> > Disk: sd0       geometry: 121601/255/63 [1953525168 Sectors]
> > Offset: 0       Signature: 0xAA55
> >             Starting         Ending         LBA Info:
> >  #: id      C   H   S -      C   H   S [       start:        size ]
> > -------------------------------------------------------------------------------
> >  0: 00      0   0   0 -      0   0   0 [           0:           0 ] unused  
> >     
> >  1: 00      0   0   0 -      0   0   0 [           0:           0 ] unused  
> >     
> >  2: 00      0   0   0 -      0   0   0 [           0:           0 ] unused  
> >     
> > *3: A6      0   1   2 -  15199 254  63 [          64:   244187936 ] OpenBSD
> > 
> 
> MBR is used. Enlarge the OpenBSD partition, disklabel will adapt its
> bounds and you should be good.
> 
>       -Otto

Reply via email to