HIP:PMP:PMPBackup

From Earlham CS Department
Revision as of 16:27, 23 May 2006 by Copelco (talk | contribs)
Jump to navigation Jump to search

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