View Single Post
Posts: 92 | Thanked: 95 times | Joined on Feb 2010 @ Smyrna, Atlanta / Bangalore, India
#136
Hi all,

I am trying to setup my 16GB class 2 micro sd card as a secondary swap on my N900, i followed instructions from the wiki page http://wiki.maemo.org/Swap_on_microS...d_for_swapping.

Since I dont have a linux machine i am trying to configure my microSD for swapping from n900 terminal.

I am using fdisk for this purpose. However I am running into problems. Following is the set of steps i am doing.

EDIT: Fixed after the follwing 3 additional steps to be performed in the end:
> umount /dev/mmcblk1p1
> mkfs.vfat /dev/mmcblk1p1
> mount /dev/mmcblk1p1 /media/mmc1


Are the below steps correct. I am unable to see the 15.5 gig partition on my Windows machine.

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

Command (m for help): p

Disk /dev/mmcblk1: 15.9 GB, 15931539456 bytes
4 heads, 16 sectors/track, 486192 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Device Boot Start End Blocks Id System
/dev/mmcblk1p1 1 473023 15136728 83 Linux

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

Command (m for help): p

Disk /dev/mmcblk1: 15.9 GB, 15931539456 bytes
4 heads, 16 sectors/track, 486192 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Device Boot Start End Blocks Id System
/dev/mmcblk1p1 1 473023 15136728 83 Linux
/dev/mmcblk1p2 473024 486192 421408 83 Linux

Command (m for help): t
Partition number (1-4): 1
Hex code (type L to list codes): c
Changed system type of partition 1 to c (Win95 FAT32 (LBA))

Command (m for help): t
Partition number (1-4): 2
Hex code (type L to list codes): 82
Changed system type of partition 2 to 82 (Linux swap)

Command (m for help): p

Disk /dev/mmcblk1: 15.9 GB, 15931539456 bytes
4 heads, 16 sectors/track, 486192 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Device Boot Start End Blocks Id System
/dev/mmcblk1p1 1 473023 15136728 c Win95 FAT32 (LBA)
/dev/mmcblk1p2 473024 486192 421408 82 Linux swap

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table
Nokia-N900:~#

Last edited by bipinbn; 2012-09-23 at 21:15.