Changes

From SME Server
Jump to navigationJump to search
471 bytes added ,  22:04, 11 February 2019
spello
Line 90: Line 90:  
  [root@ ~]# '''sfdisk -d /dev/sda > sfdisk_sda.output'''
 
  [root@ ~]# '''sfdisk -d /dev/sda > sfdisk_sda.output'''
 
  [root@ ~]# '''sfdisk /dev/sdb < sfdisk_sda.output'''
 
  [root@ ~]# '''sfdisk /dev/sdb < sfdisk_sda.output'''
 +
 +
GPT Disks
 +
 +
Larger disks will be GPT Disks, sfdisk will not work - you will need to use gdisk and partx (parted)
 +
[root@ ~]# '''yum install gdisk'''
 +
 +
The copy the partition table from a good disk to the new disk, the first line will copy the partition table from disk sda to sdd, the second will randomize the GUID
 +
[root@ ~]# '''sgdisk /dev/sda -R /dev/sdd'''
 +
[root@ ~]# '''sgdisk -G /dev/sdd'''
 +
 +
To view the partitions use partx
 +
[root@ ~]# '''partx -l /dev/sdd'''
 +
    
If you want to reinstate the same disk without replacing it, go to the next step.
 
If you want to reinstate the same disk without replacing it, go to the next step.
Line 147: Line 160:  
  grub> '''quit'''
 
  grub> '''quit'''
   −
 
+
<noinclude>
<noinclude>[[Category:Howto]][[Category:Administration:Storage]]</noinclude>
+
[[Category:Howto]]
 +
[[Category:Administration:Storage]]
 +
</noinclude>
88

edits

Navigation menu