WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Resize Picore partition after using w32diskimager  (Read 9766 times)

Offline pioj

  • Jr. Member
  • **
  • Posts: 76
Resize Picore partition after using w32diskimager
« on: May 05, 2013, 06:03:58 AM »
When I write my image to the sdcard I get a FAT16 partition with just 40MB. I'd like to resize the partition to fit my 16GB sdcard.

The problem is,  I don't know if there's any current limitation on the RaspberryPI related to the boot media and its partition type. And I remember RobertS pointed we must tell the HEX address for both the start & size of the Initrd.

If I'm not wrong, these values will change after a certain operation...

Can I format to FAT32?  Will I be able to boot my PI after resizing that partition?



Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Resize Picore partition after using w32diskimager
« Reply #1 on: May 05, 2013, 07:29:13 AM »
This 40Mbyte partition is for booting and being a FAT partitions unusable for any other purpose. Keep as it is and create an ext4 partition on the unpartitioned part of the SD card and make a /tce directory there. You can do that with fdisk.

It is also good to make an 512Mbyte swap partition on the SD card.

Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline pioj

  • Jr. Member
  • **
  • Posts: 76
Re: Resize Picore partition after using w32diskimager
« Reply #2 on: May 06, 2013, 07:25:15 AM »
Thx bmarkus. I turned into 3 partitions:

  • (40MB) FAT16 - Boot
    (12GB) FAT32 - TCE & STORAGE
    (4GB) SWAP

I decided to use FAT32 instead of Ext's, to be able to manage or tweaking my extensions from any other system.

At the moment, I don't know how to setup my last partition as swap from Tinycore, or to tell syslinux where TCE is located (it's on another partition).  Other than that, works pretty well...

Any ideas?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Resize Picore partition after using w32diskimager
« Reply #3 on: May 06, 2013, 07:40:06 AM »
Linux system need Linux file system. Reformat the 12GByte partition as ext4.

I suggest to split the 4GB swap to a 3GB FAT and a 1GB SWAP partition. The 3GB FAT can be used to transfer files between WINDOWS and RPi offline.

If your swap partition is /dev/mmcblk0p3

Code: [Select]
mkswap /dev/mmcblk0p3
will prepare it for swap use. During next boot it will be recognesed and used automatically. You can turn it on without rebooting with

Code: [Select]
swapon /dev/mmcblk0p3
Check swap space with command

Code: [Select]
free
before and after swapon


« Last Edit: May 06, 2013, 07:41:54 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."