HIP:PMP:PMPBackup

From Earlham Cluster Department

(Redirected from HIP:PMP:Backup PMP)
Jump to: navigation, search

Contents

making backup directories

~$ cd /p0/
~$ sudo mkdir hip
~$ cd /p0/hip
~$ sudo mkdir pmp_backup
~$ cd /p0/hip/pmp_backup
~$ sudo mkdir sda1     (to hold backup of dos partition)
~$ sudo cd mkdir sda2  (to hold backup of linux partition)

making mounting directories

~$ cd /p0/
~$ sudo mkdir hip
~$ cd /p0/hip
~$ sudo mkdir mnt
~$ cd /p0/hip/mnt
~$ sudo mkdir sda1     (to hold dos partition)
~$ sudo cd mkdir sda2  (to hold linux partition)

listing modules with lsmod

~$ /sbin/lsmod
Module                  Size  Used by    Tainted: P  
i810_audio             30908   0 (autoclean)
ac97_codec             17140   0 (autoclean) [i810_audio]
soundcore               6468   2 (autoclean) [i810_audio]
agpgart                24496   4 (autoclean)
...

loading usb modules

First plug in the sdcard reader to usb

~$ sudo /sbin/modprobe usb-storage
~$ sudo /sbin/modprove sd_mod

If modules are loaded correctly, you should see them in the listed like below:

~$ /sbin/lsmod
Module                  Size  Used by    Tainted: P  
usb-storage            27248   0  (unused)
...
sd_mod                 12204   0  (autoclean) (unused)
...

mounting usb drive

~$ sudo mount /dev/sda1 /p0/hip/mnt/sda1
~$ sudo mount /dev/sda2 /p0/hip/mnt/sda2

copying files for backup

~$ sudo cp -dpr /p0/hip/mnt/sda1/* /p0/hip/pmp_backup/sda1/
~$ sudo cp -dpr /p0/hip/mnt/sda2/* /p0/hip/pmp_backup/sda2/

Check if all files were copied by comparing the directories

unmounting drives

~$ umount /dev/sda1
~$ umount /dev/sda2

unloading modules

~$ /sbin/rmmod sd_mod
~$ /sbin/rmmod usb-storage

Then unplug sdcard reader from usb

Personal tools
Namespaces
Variants
Actions
websites
wiki
this semester
Toolbox