I have saved and keep the original image for the 1st partition here at http://jerungkun.googlepages.com/ts7260-fb-default.tar.gz
In order to use it. Download the image:
apogee@apogee-persiasys:~/Download$ wget -c http://jerungkun.googlepages.com/ts7260-fb-default.tar.gz
--2008-09-24 10:32:47-- http://jerungkun.googlepages.com/ts7260-fb-default.tar.gz
Resolving jerungkun.googlepages.com... 209.85.173.118
Connecting to jerungkun.googlepages.com|209.85.173.118|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 673013 (657K) [application/octet-stream]
Saving to: `ts7260-fb-default.tar.gz'
100%[=================================================================>] 673,013 60.6K/s in 11s
2008-09-24 10:32:59 (58.4 KB/s) - `ts7260-fb-default.tar.gz' saved [673013/673013]
apogee@apogee-persiasys:~/Download$
Next, extract the image:
apogee@apogee-persiasys:~/Download$ tar zxvf ts7260-fb-default.tar.gz
Insert the sd card and check with fdisk -l:
apogee@apogee-persiasys:~/Download$ fdisk -l
Disk /dev/sdc: 1015 MB, 1015808000 bytes
16 heads, 32 sectors/track, 3875 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdc1 1 6 1520 da Non-FS data
/dev/sdc2 7 10 1024 da Non-FS data
/dev/sdc3 20 3875 987136 83 Linux
apogee@apogee-persiasys:~/Download$
From the fdisk output above, we can see the first partition is /dev/sdc1. so, to overwrite this partition, simply run this command:
apogee@apogee-persiasys:~/Download$ dd if=ts7260-fb-default of=/dev/sdc1
2808+1 records in
2808+1 records out
1438184 bytes (1.4 MB) copied, 0.958003 seconds, 1.5 MB/s
apogee@apogee-persiasys:~/Download$
That's all.. to make sure the other partition is in good condition too, just run fsck on em. But make sure u have already unmount em all first:
apogee@apogee-persiasys:~/Download$ sudo umount /dev/sdc2
[sudo] password for apogee:
umount: /dev/sdc2: not mounted
apogee@apogee-persiasys:~/Download$ sudo umount /dev/sdc3
umount: /dev/sdc3: not mounted
apogee@apogee-persiasys:~/Download$
then run fsck:
apogee@apogee-persiasys:~/Download$ fsck /dev/sdc2
fsck 1.40.2 (12-Jul-2007)
e2fsck 1.40.2 (12-Jul-2007)
/dev/sdc2 was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/sdc2: 117/128 files (5.1% non-contiguous), 989/1024 blocks
apogee@apogee-persiasys:~/Download$ fsck /dev/sdc3
fsck 1.40.2 (12-Jul-2007)
e2fsck 1.40.2 (12-Jul-2007)
/dev/sdc3: clean, 28501/242000 files, 484287/987136 blocks
that's all.. the card should be in good condition now... we can use it again without error. You should also do ths too before creating the image so all newly copied cards is in best conditions.
Tiada ulasan:
Catat Ulasan
Nota: Hanya ahli blog ini sahaja yang boleh mencatat ulasan.