Difference between revisions of "NUC Backup"

From wikidb
Jump to: navigation, search
(Created page with "== Create the Backup Disk == Determine what disk are currently on the system. The Icy Dock disk is ext2 so it will be re-partitioned and formated mount or sudo parted -...")
 
(Create the Backup Disk)
Line 6: Line 6:
 
or  
 
or  
 
   sudo parted -l
 
   sudo parted -l
 
 
 
   sudo parted /dev/sdbeepp@rainier:~$ sudo parted /dev/sdb
 
   sudo parted /dev/sdbeepp@rainier:~$ sudo parted /dev/sdb
GNU Parted 2.3
+
        GNU Parted 2.3
Using /dev/sdb
+
        Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
+
        Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel gpt                                                       
+
    (parted) mklabel gpt                                                       
Warning: The existing disk label on /dev/sdb will be destroyed and all data on
+
        Warning: The existing disk label on /dev/sdb will be destroyed and all data on
this disk will be lost. Do you want to continue?
+
        this disk will be lost. Do you want to continue?
Yes/No? Yes
+
    Yes/No? Yes
(parted) print                                                             
+
    (parted) print                                                             
Model: WDC WD50 01AALS-00L3B2 (scsi)
+
        Model: WDC WD50 01AALS-00L3B2 (scsi)
Disk /dev/sdb: 500GB
+
        Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
+
        Sector size (logical/physical): 512B/512B
Partition Table: gpt
+
        Partition Table: gpt
 
+
       
Number  Start  End  Size  File system  Name  Flags
+
        Number  Start  End  Size  File system  Name  Flags
 
+
(parted) unit s                                                           
+
    (parted) unit s                                                           
(parted) mkpart primary 1M -1M                                             
+
    (parted) mkpart primary 1M -1M                                             
(parted) print                                                           
+
Model: WDC WD50 01AALS-00L3B2 (scsi)
+
Disk /dev/sdb: 976773168s
+
Sector size (logical/physical): 512B/512B
+
Partition Table: gpt
+
 
+
Number  Start  End        Size        File system  Name    Flags
+
1      2048s  976773119s  976771072s              primary
+
  
 
(parted) quit                                                             
 
(parted) quit                                                             

Revision as of 16:18, 21 June 2015

Create the Backup Disk

Determine what disk are currently on the system. The Icy Dock disk is ext2 so it will be re-partitioned and formated

 mount

or

 sudo parted -l
 sudo parted /dev/sdbeepp@rainier:~$ sudo parted /dev/sdb
       GNU Parted 2.3
       Using /dev/sdb
       Welcome to GNU Parted! Type 'help' to view a list of commands.
   (parted) mklabel gpt                                                      
       Warning: The existing disk label on /dev/sdb will be destroyed and all data on
       this disk will be lost. Do you want to continue?
   Yes/No? Yes
   (parted) print                                                            
       Model: WDC WD50 01AALS-00L3B2 (scsi)
       Disk /dev/sdb: 500GB
       Sector size (logical/physical): 512B/512B
       Partition Table: gpt
       
       Number  Start  End  Size  File system  Name  Flags

   (parted) unit s                                                           
   (parted) mkpart primary 1M -1M                                            

(parted) quit Information: You may need to update /etc/fstab.

eepp@rainier:~$ ls /dev/sdb* /dev/sdb /dev/sdb1 eepp@rainier:~$ sudo mkfs.ext4 /dev/sdb1 mke2fs 1.42.9 (4-Feb-2014) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 30531584 inodes, 122096384 blocks 6104819 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=4294967296 3727 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks:

       32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
       4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 
       102400000

Allocating group tables: done Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done