Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Question: How to partition memory card (Ext2/Fat)?

    Reply
    Page 1 of 2 | 1   2   | Next
    BrentDC | # 1 | 2008-08-04, 23:37 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    fatalsaint | # 2 | 2008-08-04, 23:57 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to fatalsaint For This Useful Post:
    BrentDC, Spiteman

     
    lm2 | # 3 | 2008-08-05, 16:34 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    qwerty12 | # 4 | 2008-08-05, 16:36 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to qwerty12 For This Useful Post:
    BrentDC

     
    BrentDC | # 5 | 2008-08-05, 16:45 | Report

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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    qwerty12 | # 6 | 2008-08-05, 16:47 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to qwerty12 For This Useful Post:
    BrentDC

     
    BrentDC | # 7 | 2008-08-05, 23:37 | Report

    I installed cfdisk, and after a few hours ( ), 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?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    fatalsaint | # 8 | 2008-08-06, 01:38 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to fatalsaint For This Useful Post:
    BrentDC

     
    BrentDC | # 9 | 2008-08-06, 17:20 | Report

    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

    Thanks for the help.

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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Zam478 | # 10 | 2009-01-04, 03:32 | Report

    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!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 1 of 2 | 1   2   | Next
vBulletin® Version 3.8.8
Normal Logout