Difference between revisions of "HIP:PMP:PMPBackup"
Jump to navigation
Jump to search
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | ===making backup directories=== | |
− | ~$ lsmod | + | ~$ 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 | Module Size Used by Tainted: P | ||
i810_audio 30908 0 (autoclean) | i810_audio 30908 0 (autoclean) | ||
Line 8: | Line 26: | ||
... | ... | ||
− | + | ===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 | ||
+ | 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=== | |
* sda1 - dos parition | * sda1 - dos parition | ||
* sda2 - linux partition | * sda2 - linux partition | ||
− | ~$ sudo mount /dev/sda1 | + | ~$ sudo mount /dev/sda1 /p0/hip/mnt/sda1 |
− | ~$ sudo mount /dev/sda2 | + | ~$ 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 |
Latest revision as of 09: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)
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
- sda1 - dos parition
- sda2 - linux partition
~$ 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