View Single Post
  #8   (View Single Post)  
Old 8th July 2008
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,507
Default

Quote:
Originally Posted by spiderpig View Post
The author advocates using dump & restore on each partition, but if cloning the entire drive is the goal, why not simply back up the c partition?
dump and restore act on filesystems.From the dump man page
Code:
NAME
     dump - filesystem backup
Label "c" does not have a filesystem, it is just a virtual label encompassing the complete disk, which could have other operating systems installed.

From one of my systems
Code:
$ disklabel wd0
# Inside MBR partition 0: type A6 start 63 size 81915372
# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: WDC WD3200AAKS-2
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 38913
total sectors: 625142448
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # microseconds
track-to-track seek: 0  # microseconds
drivedata: 0 

16 partitions:
#                size           offset  fstype [fsize bsize  cpg]
  a:         81787372               63  4.2BSD   2048 16384    1 
  b:           128000         81787435    swap                   
  c:        625142448                0  unused      0     0      
  i:        204796620        163830870 unknown                   
  j:        256509855        368627490   MSDOS
See, no fstype defined for label "c"

I have some other OS's installed
Code:
]fdisk wd0
Disk: wd0       geometry: 38913/255/63 [625142448 Sectors]
Offset: 0       Signature: 0xAA55
          Starting         Ending        LBA Info:
 #: id      C   H  S -      C   H  S [       start:        size ]
------------------------------------------------------------------------
*0: A6      0   1  1 -   5098 254 63 [          63:    81915372 ] OpenBSD     
 1: A9   5099   0  1 -  10197 254 63 [    81915435:    81915435 ] NetBSD      
 2: A5  10198   0  1 -  22945 254 63 [   163830870:   204796620 ] FreeBSD     
 3: 05  22946   0  1 -  38912 254 63 [   368627490:   256509855 ] Extended DOS
These all lie within the boundaries of the label "c" size of 625,142,448 sectors.
dump is not so smart it can backup NetBSD, FreeBSD and the extended DOS partitions in one go
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote