NotMicro
|
2016-10-05
, 14:28
|
Posts: 111 |
Thanked: 50 times |
Joined on May 2015
|
#1
|
|
2016-10-06
, 09:04
|
Posts: 2,102 |
Thanked: 1,937 times |
Joined on Sep 2008
@ Berlin, Germany
|
#2
|
|
2016-10-06
, 11:58
|
|
Posts: 6,447 |
Thanked: 20,981 times |
Joined on Sep 2012
@ UK
|
#3
|
|
2016-10-07
, 12:40
|
Posts: 111 |
Thanked: 50 times |
Joined on May 2015
|
#4
|
He wants to use the card as swap as well. Formatting from File Manager won't do that.
There are many ways to skin this cat. Have you seen the wiki page?
You can of course use parted on the device but a more newbie-friendly option is use GParted to partition your SD card to your liking. If you do not have a Linux machine, no problem. Just download a live CD and boot it on any machine that allows booting from a CD. You may need to enable that in the BIOS first.
|
2016-10-07
, 18:43
|
Posts: 2,102 |
Thanked: 1,937 times |
Joined on Sep 2008
@ Berlin, Germany
|
#5
|
sudo gainroot fdisk /dev/mmcblk1
d 1 n p 1 1 29764 n p 2 29765 30532 w
mkfs.vfat -n sdcard1 /dev/mmcblk1p1 mkswap -L swap_sdcard /dev/mmcblk1p2
|
2016-10-10
, 13:37
|
Posts: 111 |
Thanked: 50 times |
Joined on May 2015
|
#6
|
Put in the card to remove the pre-installed partition, then add two new partitions. For additional data storage, roughly 30 GB, and for additional swap 768 MB. For best results first read the whole set of commands, try to understand, what is going on, ask any question as necessary.
You need the package rootsh installed on the N900 for the following commands to work fineFdisk program is menu-based. Use 'h' for help to get the list of commands inside fdisk. In fdisk doCode:sudo gainroot fdisk /dev/mmcblk1You created two partitions, the first for additional file storage the second for the second swap partitions. Now apply the file systemsCode:d 1 n p 1 1 29764 n p 2 29765 30532 wAfter a reboot you might use one of the different methods to utilize the second swap like ereswap, swappolube or else.Code:mkfs.vfat -n sdcard1 /dev/mmcblk1p1 mkswap -L swap_sdcard /dev/mmcblk1p2
Good luck!
|
2016-10-11
, 06:47
|
Posts: 2,102 |
Thanked: 1,937 times |
Joined on Sep 2008
@ Berlin, Germany
|
#7
|
sudo gainroot
echo "unit: sectors > /dev/mmcblk1p1 : start= 64, size= 59383744, Id=c > /dev/mmcblk1p2 : start= 59383808, size= 1572864, Id=82 > /dev/mmcblk1p3 : start= 60956672, size= 1572864, Id=82 > /dev/mmcblk1p4 : start= 0, size= 0, Id= 0" > table.txt
sfdisk --no-reread /dev/mmcblk1 < table.txt
mkfs.vfat -n sdcard1 /dev/mmcblk1p1 mkswap -L swap1_sdcard /dev/mmcblk1p2 mkswap -L swap2_sdcard /dev/mmcblk1p3