- # cat /proc/mtd
- dev: size erasesize name
- mtd0: 00100000 00020000 "boot"
- mtd1: 00800000 00020000 "loader"
- mtd2: 00200000 00020000 "logo"
- mtd3: 00080000 00020000 "hwconfig"
- mtd4: 00200000 00020000 "eeprom"
- mtd5: 00080000 00020000 "caverify"
- mtd6: 00200000 00020000 "cadata"
- mtd7: 00080000 00020000 "ipdata"
- mtd8: 00080000 00020000 "baseparam"
- mtd9: 00080000 00020000 "ldflage"
- mtd10: 00500000 00020000 "kernel"
- mtd11: 03500000 00020000 "rootfs"
- mtd12: 02200000 00020000 "userdata"
- mtd13: 00500000 00020000 "fastplay"
- mtd14: 00200000 00020000 "advert"
- mtd15: 00700000 00020000 "wifidata"
- mtd16: 00480000 00020000 "reserved"
- # cat /proc/partitions
- major minor #blocks name
- 240 0 1024 romblock0
- 31 0 1024 mtdblock0
- 240 1 8192 romblock1
- 31 1 8192 mtdblock1
- 240 2 2048 romblock2
- 31 2 2048 mtdblock2
- 240 3 512 romblock3
- 31 3 512 mtdblock3
- 240 4 2048 romblock4
- 31 4 2048 mtdblock4
- 240 5 512 romblock5
- 31 5 512 mtdblock5
- 240 6 2048 romblock6
- 31 6 2048 mtdblock6
- 240 7 512 romblock7
- 31 7 512 mtdblock7
- 240 8 512 romblock8
- 31 8 512 mtdblock8
- 240 9 512 romblock9
- 31 9 512 mtdblock9
- 240 10 5120 romblock10
- 31 10 5120 mtdblock10
- 240 11 54272 romblock11
- 31 11 54272 mtdblock11
- 240 12 34816 romblock12
- 31 12 34816 mtdblock12
- 240 13 5120 romblock13
- 31 13 5120 mtdblock13
- 240 14 2048 romblock14
- 31 14 2048 mtdblock14
- 240 15 7168 romblock15
- 31 15 7168 mtdblock15
- 240 16 4608 romblock16
- 31 16 4608 mtdblock16
- # cat /proc/partitions | grep 31
- 31 0 1024 mtdblock0
- 31 1 8192 mtdblock1
- 31 2 2048 mtdblock2
- 31 3 512 mtdblock3
- 31 4 2048 mtdblock4
- 31 5 512 mtdblock5
- 31 6 2048 mtdblock6
- 31 7 512 mtdblock7
- 31 8 512 mtdblock8
- 31 9 512 mtdblock9
- 31 10 5120 mtdblock10
- 31 11 54272 mtdblock11
- 31 12 34816 mtdblock12
- 31 13 5120 mtdblock13
- 31 14 2048 mtdblock14
- 31 15 7168 mtdblock15
- 31 16 4608 mtdblock16
- 插上優(yōu)盤
- # fdisk -l
- Disk /dev/sda: 125.0 GB, 125069950976 bytes
- 255 heads, 63 sectors/track, 15205 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Device Boot Start End Blocks Id System
- /dev/sda1 * 1 15206 122137600 c Win95 FAT32 (LBA)
- 掛載分區(qū)
- # mount /dev/sda1 /mnt/usb
- 如果不能掛載,請先執(zhí)行創(chuàng)建目錄命令
- # mkdir /mnt/usb
- 開始備份分區(qū)
- dd if=/dev/mtdblock0 of=/mnt/usb/mtdblock0
- dd if=/dev/mtdblock1 of=/mnt/usb/mtdblock1
- dd if=/dev/mtdblock2 of=/mnt/usb/mtdblock2
- dd if=/dev/mtdblock3 of=/mnt/usb/mtdblock3
- dd if=/dev/mtdblock4 of=/mnt/usb/mtdblock4
- dd if=/dev/mtdblock5 of=/mnt/usb/mtdblock5
- dd if=/dev/mtdblock6 of=/mnt/usb/mtdblock6
- dd if=/dev/mtdblock7 of=/mnt/usb/mtdblock7
- dd if=/dev/mtdblock8 of=/mnt/usb/mtdblock8
- dd if=/dev/mtdblock9 of=/mnt/usb/mtdblock9
- dd if=/dev/mtdblock10 of=/mnt/usb/mtdblock10
- dd if=/dev/mtdblock11 of=/mnt/usb/mtdblock11
- dd if=/dev/mtdblock12 of=/mnt/usb/mtdblock12
- dd if=/dev/mtdblock13 of=/mnt/usb/mtdblock13
- dd if=/dev/mtdblock14 of=/mnt/usb/mtdblock14
- dd if=/dev/mtdblock15 of=/mnt/usb/mtdblock15
- dd if=/dev/mtdblock16 of=/mnt/usb/mtdblock16
- 查看是否備份完畢
- # ls /mnt/usb
- Android mtdblock15
- LOST.DIR mtdblock16
- System Volume Information mtdblock2
- apk mtdblock3
- mtdblock0 mtdblock4
- mtdblock1 mtdblock5
- mtdblock10 mtdblock6
- mtdblock11 mtdblock7
- mtdblock12 mtdblock8
- mtdblock13 mtdblock9
- mtdblock14
- 查看設備
- # fdisk -l
- Disk /dev/sda: 125.0 GB, 125069950976 bytes
- 255 heads, 63 sectors/track, 15205 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Device Boot Start End Blocks Id System
- /dev/sda1 * 1 15206 122137600 c Win95 FAT32 (LBA)
- 執(zhí)行彈出優(yōu)盤
- # umount /dev/sda1
- umount: can't umount /mnt/usb: Device or resource busy
- 因為彈出不了,所以執(zhí)行強制彈出
- # umount -l /dev/sda1
- 查看是否已經卸載
- # df -ah
- Filesystem Size Used Available Use% Mounted on
- /dev/root 78.0M 78.0M 0 100% /
- proc 0 0 0 0% /proc
- sysfs 0 0 0 0% /sys
- dev 64.4M 4.0K 64.4M 0% /dev
- tmp 0 0 0 0% /tmp
- devpts 0 0 0 0% /dev/pts
- nodev 64.4M 4.0K 64.4M 0% /var
- ubi0:userdata 25.9M 172.0K 25.7M 1% /mnt
- tmpfs 64.4M 0 64.4M 0% /mnt/tmpfs
- /dev/mtdblock15 0 0 0 0% /tmp
- debugfs 0 0 0 0% /proc/sys/debug
- tmpfs 64.4M 0 64.4M 0% /mnt/tmpfs
- 查看文件系統(tǒng)類型
- # mount
- rootfs on / type rootfs (rw)
- /dev/root on / type cramfs (ro,relatime)
- proc on /proc type proc (rw,relatime)
- sysfs on /sys type sysfs (rw,relatime)
- dev on /dev type tmpfs (rw,relatime)
- tmp on /tmp type tmpfs (rw,nosuid,nodev,noexec,relatime)
- devpts on /dev/pts type devpts (rw,relatime,mode=600)
- nodev on /var type tmpfs (rw,relatime)
- ubi0:userdata on /mnt type ubifs (rw,sync,relatime)
- tmpfs on /mnt/tmpfs type tmpfs (rw,relatime)
- /dev/mtdblock15 on /tmp type cramfs (ro,relatime)
- debugfs on /proc/sys/debug type debugfs (rw,relatime)
- tmpfs on /mnt/tmpfs type tmpfs (rw,relatime)
復制代碼
|