Hadirmu Tidak diundang, Jika ragu-ragu sila pulang!!

Ini blog suka hati aku. Bukan untuk tontonan umum. Kalau engkau masuk ke sini secara tak sengaja, SILA BERAMBUS DENGAN SOPAN sebelum merasa terhina dengan kutukan cacimaki keji dari aku.

Aku dah WARNING!!! Kalau kau nak baca juga, kau WAJIB 100% BERSETUJU dengan apa pun yang aku tulis dan bersumpah setia tak akan mempergunakan apa-apa kandungan blog ini untuk menjahanamkan aku. Jika kau tak bersetuju juga, Sila Pergi Jahanam dan BERAMBUS DENGAN SEGERA sebelum aku cabut urat kentut kau dan menyebabkan kau lumpuh seumur hidup.

Sudahlah, aku taknak membebel lagi. Kalau kau tak faham lagi, sila baca lagi ayat-ayat diatas sampai faham.

Baca lagi ayat diatas...

Rabu, 24 September 2008

Fixing Partition One On Ts-7260 sdcard image

The sdcard image consists of 3 partitions. I found that these partitions will somehow corrupted due to force reboot by watchdog. So, to fix the corrupted first partition is by rewrite it using 'dd' tool with the original partition image.

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.