HIP:PMP:PMPBackup

From Earlham Cluster Department

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
===making backup directories===
===making backup directories===
-
  cd /p0/
+
  ~$ cd /p0/
-
  sudo mkdir hip
+
  ~$ sudo mkdir hip
-
  cd /p0/hip
+
  ~$ cd /p0/hip
-
  sudo mkdir pmp_backup
+
  ~$ sudo mkdir pmp_backup
-
  cd /p0/hip/pmp_backup
+
  ~$ cd /p0/hip/pmp_backup
-
  sudo mkdir sda1    (to hold backup of dos partition)
+
  ~$ sudo mkdir sda1    (to hold backup of dos partition)
-
  sudo cd mkdir sda2  (to hold backup of linux partition)
+
  ~$ sudo cd mkdir sda2  (to hold backup of linux partition)
===making mounting directories===
===making mounting directories===
-
  cd /p0/
+
  ~$ cd /p0/
-
  sudo mkdir hip
+
  ~$ sudo mkdir hip
-
  cd /p0/hip
+
  ~$ cd /p0/hip
-
  sudo mkdir mnt
+
  ~$ sudo mkdir mnt
-
  cd /p0/hip/mnt
+
  ~$ cd /p0/hip/mnt
-
  sudo mkdir sda1    (to hold dos partition)
+
  ~$ sudo mkdir sda1    (to hold dos partition)
-
  sudo cd mkdir sda2  (to hold linux partition)
+
  ~$ sudo cd mkdir sda2  (to hold linux partition)
===list modules with lsmod===
===list modules with lsmod===
-
  ~$ lsmod
+
  ~$ /sbin/lsmod
  Module                  Size  Used by    Tainted: P   
  Module                  Size  Used by    Tainted: P   
  i810_audio            30908  0 (autoclean)
  i810_audio            30908  0 (autoclean)
Line 27: Line 27:
===loading usb modules===
===loading usb modules===
 +
First plug in the sdcard reader to usb
  ~$ sudo /sbin/modprobe usb-storage
  ~$ sudo /sbin/modprobe usb-storage
  ~$ sudo /sbin/modprove sd_mod
  ~$ sudo /sbin/modprove sd_mod
-
* Then plug sdcard reader to usb
+
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)
 +
...
-
===mount usb drive===
+
===mounting usb drive===
* sda1 - dos parition
* sda1 - dos parition
* sda2 - linux partition
* sda2 - linux partition
-
  ~$ sudo mount /dev/sda1 pmp/sda1
+
  ~$ sudo mount /dev/sda1 /p0/hip/mnt/sda1
-
  ~$ sudo mount /dev/sda2 pmp/sda2
+
  ~$ sudo mount /dev/sda2 /p0/hip/mnt/sda2
-
===copy files for backup===
+
===copying files for backup===
-
  ~$ cp -r pmp/ 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
===unmount drives===
===unmount drives===
Line 47: Line 56:
  ~$ /sbin/rmmod sd_mod
  ~$ /sbin/rmmod sd_mod
  ~$ /sbin/rmmod usb-storage
  ~$ /sbin/rmmod usb-storage
 +
Then unplug sdcard reader from usb

Revision as of 14:28, 10 July 2006

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)

list 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

unmount drives

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

unload 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