Difference between revisions of "HIP:PMP:PMPBackup"

From Earlham CS Department
Jump to navigation Jump to search
Line 20: Line 20:
 
===copy files for backup===
 
===copy files for backup===
 
  ~$ cp -r pmp/ backup/
 
  ~$ cp -r pmp/ backup/
 +
 +
===unload modules===
 +
~$ rmmod
  
 
===unmount drives===
 
===unmount drives===
 
  ~$ umount /dev/sda1
 
  ~$ umount /dev/sda1
 
  ~$ umount /dev/sda2
 
  ~$ umount /dev/sda2

Revision as of 17:27, 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/

unload modules

~$ rmmod 

unmount drives

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