Difference between revisions of "HIP:PMP:PMPBackup"

From Earlham CS Department
Jump to navigation Jump to search
Line 1: Line 1:
'''list modules with lsmod'''
+
===list modules with lsmod===
 
  ~$ lsmod
 
  ~$ lsmod
 
  Module                  Size  Used by    Tainted: P   
 
  Module                  Size  Used by    Tainted: P   
Line 8: Line 8:
 
  ...
 
  ...
  
'''load usb modules'''
+
===load usb modules===
 
  ~$ sudo /sbin/modprobe usb-storage
 
  ~$ sudo /sbin/modprobe usb-storage
 
  ~$ sudo /sbin/modprove sd_mod
 
  ~$ sudo /sbin/modprove sd_mod
  
'''mount usb drive'''
+
===mount usb drive===
 
* sda1 - dos parition
 
* sda1 - dos parition
 
* sda2 - linux partition
 
* sda2 - linux partition
Line 18: Line 18:
 
  ~$ sudo mount /dev/sda2 pmp/sda2
 
  ~$ sudo mount /dev/sda2 pmp/sda2
  
'''copy files for backup'''
+
===copy files for backup===
 
  ~$ cp -r pmp/ backup/
 
  ~$ cp -r pmp/ backup/
  
'''unmount drives'''
+
===unmount drives===
 
  ~$ umount /dev/sda1
 
  ~$ umount /dev/sda1
 
  ~$ umount /dev/sda2
 
  ~$ umount /dev/sda2

Revision as of 16:17, 23 May 2006

list modules with lsmod

~$ 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)
...

load usb modules

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

mount usb drive

  • sda1 - dos parition
  • sda2 - linux partition
~$ sudo mount /dev/sda1 pmp/sda1
~$ sudo mount /dev/sda2 pmp/sda2

copy files for backup

~$ cp -r pmp/ backup/

unmount drives

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