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...

Khamis, 18 September 2008

copy, burn and resize SD Card Image

To copy the image

apogee@apogee-persiasys:/media/second-drive/apogee/20080918$ dd if=/dev/sdc of=sdimg-1gb-20080918.dd
1984000+0 records in
1984000+0 records out
1015808000 bytes (1.0 GB) copied, 103.249 seconds, 9.8 MB/s
apogee@apogee-persiasys:/media/second-drive/apogee/20080918$ ls
sdimg-1gb-20080918.dd


To burn the image..

apogee@apogee-persiasys:/media/second-drive/apogee/20080918$ fdisk -l

Disk /dev/sdc: 2032 MB, 2032664576 bytes
16 heads, 32 sectors/track, 7754 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 7754 1980160 83 Linux
apogee@apogee-persiasys:/media/second-drive/apogee/20080918$ dd if=sdimg-1gb-20080918.dd of=/dev/sdc
1984000+0 records in
1984000+0 records out
1015808000 bytes (1.0 GB) copied, 472.417 seconds, 2.2 MB/s



the new sd card is 2GB while the image is 1GB... so, to resize partition table:

apogee@apogee-persiasys:/media/second-drive/apogee/20080918$ sudo fdisk /dev/sdc
[sudo] password for apogee:

The number of cylinders for this disk is set to 7754.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sdc: 2032 MB, 2032664576 bytes
16 heads, 32 sectors/track, 7754 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

Command (m for help): d
Partition number (1-4): 3

Command (m for help): p

Disk /dev/sdc: 2032 MB, 2032664576 bytes
16 heads, 32 sectors/track, 7754 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

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 3
First cylinder (11-7754, default 11): 20
Last cylinder or +size or +sizeM or +sizeK (20-7754, default 7754):
Using default value 7754

Command (m for help): p

Disk /dev/sdc: 2032 MB, 2032664576 bytes
16 heads, 32 sectors/track, 7754 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 7754 1980160 83 Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
apogee@apogee-persiasys:/media/second-drive/apogee/20080918$



then to resize the filesystem:

apogee@apogee-persiasys:/media/second-drive/apogee/20080918$ ext2resize /dev/sdc3
ext2resize v1.1.19 - 2001/03/18 for EXT2FS 0.5b
apogee@apogee-persiasys:/media/second-drive/apogee/20080918$


ok, now we can use this sd card...

Tiada ulasan:

Catat Ulasan

Nota: Hanya ahli blog ini sahaja yang boleh mencatat ulasan.