maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   General (https://talk.maemo.org/forumdisplay.php?f=7)
-   -   Question: How to partition memory card (Ext2/Fat)? (https://talk.maemo.org/showthread.php?t=22561)

BrentDC 2008-08-04 23:37

Question: How to partition memory card (Ext2/Fat)?
 
I've searched everywhere for an answer to this seemingly easy question, but have come up empty.

I have an 8GB SD Card, and want to make two partitions on it: a 3GB Ext2, and a 5GB FAT. How can I do that on the device itself? (I don't have a computer with Linux on it...).

Any insight would be greatly appreciated.

fatalsaint 2008-08-04 23:57

Re: Question: How to partition memory card (Ext2/Fat)?
 
Two options... sfdisk (hard) or cfdisk (easy)

cfdisk doesn't look to well in the default terminal... but ig you have decent eyesight u can go into the properties on the terminal and shrink the font size to 10-12 and it works great. Assuming /dev/mmcblk0 is the device:

Code:

cfdisk /dev/mmcblk0
once u made your two partitions:

Code:

mke2fs /dev/mmcblk0p1
mkfs.vfat /dev/mmcblk0p2

U can get cfdisk from here:
http://trac.tspre.org/svn/nit-debian...ies/cfdisk.deb

lm2 2008-08-05 16:34

Re: Question: How to partition memory card (Ext2/Fat)?
 
You might be able to use Disk Management on an xp machine (I haven't looked into this, but I use DM to delete partitions).

Go to Run, then enter "compmgmt.msc", then choose Disk Management

qwerty12 2008-08-05 16:36

Re: Question: How to partition memory card (Ext2/Fat)?
 
No, Disk Management is for Microsoft file systems.

@BrentDC

When you are partitioning, place the FAT partition as the first partition and the ext2 as the second partition.

BrentDC 2008-08-05 16:45

Re: Question: How to partition memory card (Ext2/Fat)?
 
Ok, I will try this today. Thanks, everybody. Oh, and is /dev/mmcblk1 the external memory card? (I'm booting from the internal memory card).

qwerty12 2008-08-05 16:47

Re: Question: How to partition memory card (Ext2/Fat)?
 
Yes, /dev/mmcblk1 is the external.

You can check by running "df -h" and seeing the mountpoint of /dev/mmcblk1
/media/mmc2 is where internal cards are mounted, and /media/mmc1 is where external cards are mounted.

BrentDC 2008-08-05 23:37

Re: Question: How to partition memory card (Ext2/Fat)?
 
I installed cfdisk, and after a few hours ( :D ), I figured out how to use cfdisk. I created a 5Gig Windows partition, and a ~3Gig Linux partition. All my files seem to still be intact (on the fat partition?), but how do you access the other patition; I hope a Linux filesystem was the right choice with cfdisk. The External memory card now appears in bootmenu, which seems like a good sign, but how do I access the Linux (ext2?) partition?

fatalsaint 2008-08-06 01:38

Re: Question: How to partition memory card (Ext2/Fat)?
 
did u run the mke2fs command?

if so as root
mkdir /media/linux
mount /dev/mmcblk1p2 /media/linux

if u want to make it start at boot the u have to edit /etc/fstab... the line would look something like

/dev/mmcblk1p2 /media/linux ext2 defaults 0 0

there are several options u could add but u'd have to look them up.

BrentDC 2008-08-06 17:20

Re: Question: How to partition memory card (Ext2/Fat)?
 
That worked perfectly. What I was trying to do was mount it on /media/mmc3/ , but an mmc3 folder didn't exist. It makes sense that you need to mount it on a real folder not thin air! I don't know what I was thinking :rolleyes:

Thanks for the help.

Ooh, goody, 3GB of ext2 playpen, Debian here I come :D

Zam478 2009-01-04 03:32

Re: Question: How to partition memory card (Ext2/Fat)?
 
Hello,
I am just joining this conversation (if it's still even being checked!) and the link to cfdisk doesn't exist anymore. I was wondering where to download it so I can make two partitions on my card!:D


All times are GMT. The time now is 02:07.

vBulletin® Version 3.8.8