Author Topic: partitioning SD card  (Read 4593 times)

scoutme

  • Hero Member
  • *****
  • Posts: 579
    • View Profile
partitioning SD card
« on: October 28, 2004, 09:53:01 pm »
Can anyone help me? I'd like to partition my SD card in order to have an ext2 part for software installation and a fat one for data exchanging

murple

  • Newbie
  • *
  • Posts: 24
    • View Profile
partitioning SD card
« Reply #1 on: October 28, 2004, 11:12:45 pm »
Sure.

I'm assuming you're using RC5 btw.  The locations are a bit different in 1.0.5

in a console do...

umount /mnt/card
fdisk /dev/mmcd/disc0/disc
p (see what partitions you have)
d (delete em)
n (new partition)
p (primary)
1 (when asked for the endpoint use the +50M option/ substitute 50 for how ever big you want it)
w (writes to disk)
mkfs.ext2 /dev/mmcd/disc0/part1 (formats it)

then pull the sucker out and sick it in your windows box and use the disk manager to add a fat partition after your linux one.  formating fat32 works fine for me fyi.

You can also create both partiton on the z, just be sure to change one of them to the Fat in fdisk. "t" command in fdisk..  doing it in windows is prolly the easiest way tho

hope that helps
« Last Edit: October 28, 2004, 11:17:33 pm by murple »
[span style=\'font-size:8pt;line-height:100%\']--murple

...Duffman is thrusting in the direction of the problem!

860 pdaXrom rc5 / 1gb Transcend SD / Socket WiFi
6000L Sharp Rom / 256 SimpleTech SD / 4gb Microdrive
Linksys WCF12 WiFi, Pretec CF LAN
[/span]

scoutme

  • Hero Member
  • *****
  • Posts: 579
    • View Profile
partitioning SD card
« Reply #2 on: October 30, 2004, 07:13:48 am »
going to try.

Thank you for the tip

scoutme

  • Hero Member
  • *****
  • Posts: 579
    • View Profile
partitioning SD card
« Reply #3 on: October 30, 2004, 07:35:44 am »
I used fdisk to create a 256MB ext2 partition, then used the Disk Management tool of WinXp to create the fat32 partition in the remaining space.
Everything seems to run fine


thank you

scoutme

  • Hero Member
  • *****
  • Posts: 579
    • View Profile
partitioning SD card
« Reply #4 on: October 30, 2004, 08:49:44 am »
I had to do the whole job with fdisk... windows has problems if the fat partition isn't the first of the device.



Does anyone know where can I find automount settings? they are not in fstab, actually

rgrep

  • Full Member
  • ***
  • Posts: 149
    • View Profile
partitioning SD card
« Reply #5 on: October 30, 2004, 04:22:27 pm »
I partitioned my 512MB SD with a 135 MB FAT partition 1 (for flashing and NAND backups) and an ext3 partition 2.  I had to edit /etc/sdcontrol to change the "DEVICE" (line 11) to part2.  I also had to edit /etc/fstab to give me a mount point for partition 1 (I used /mnt/fat).
[img]https://www.oesf.org/forums/style_emoticons/default/smile.gif\" border=\"0\" class=\"linked-sig-image\" /] Has: Dynamism C760 / Linksys WCF12 WiFi / Kingston 512MB SD
[img]https://www.oesf.org/forums/style_emoticons/default/biggrin.gif\" border=\"0\" class=\"linked-sig-image\" /] Loves: pdaXrom / Warwalking
[img]https://www.oesf.org/forums/style_emoticons/default/sad.gif\" border=\"0\" class=\"linked-sig-image\" /] Hates: NetGear MA701 WiFi / SanDisk 256MB SD / C760 Charging Faults

scoutme

  • Hero Member
  • *****
  • Posts: 579
    • View Profile
partitioning SD card
« Reply #6 on: October 30, 2004, 09:22:55 pm »
that's what I needed

scoutme

  • Hero Member
  • *****
  • Posts: 579
    • View Profile
partitioning SD card
« Reply #7 on: October 30, 2004, 09:53:53 pm »
I'm going to modify the /etc/sdcontrol so that both partition will be mounted on inserting, and storage functions will act on the fat one.
Suggestions?
« Last Edit: October 30, 2004, 09:56:02 pm by scoutme »

rgrep

  • Full Member
  • ***
  • Posts: 149
    • View Profile
partitioning SD card
« Reply #8 on: October 30, 2004, 10:18:55 pm »
Quote
I'm going to modify the /etc/sdcontrol so that both partition will be mounted on inserting, and storage functions will act on the fat one.
Suggestions?
Good idea, I will be very keen to get a copy of this when you're done!

I suggest you modify it to use fstab for the list of SD partitions to mount.  So just do something like this:
Code: [Select]
for i in $(grep /dev/mmcd/disc0 /etc/fstab | grep -v -e noauto -e swap | awk '{ print($2) }'); do
    mount $i
done
That way people can choose which partitions get mounted, where they are mounted to, the filesystem type and any mount options.

Matt
« Last Edit: October 30, 2004, 10:24:11 pm by rgrep »
[img]https://www.oesf.org/forums/style_emoticons/default/smile.gif\" border=\"0\" class=\"linked-sig-image\" /] Has: Dynamism C760 / Linksys WCF12 WiFi / Kingston 512MB SD
[img]https://www.oesf.org/forums/style_emoticons/default/biggrin.gif\" border=\"0\" class=\"linked-sig-image\" /] Loves: pdaXrom / Warwalking
[img]https://www.oesf.org/forums/style_emoticons/default/sad.gif\" border=\"0\" class=\"linked-sig-image\" /] Hates: NetGear MA701 WiFi / SanDisk 256MB SD / C760 Charging Faults

rgrep

  • Full Member
  • ***
  • Posts: 149
    • View Profile
partitioning SD card
« Reply #9 on: October 30, 2004, 10:19:52 pm »
You should also check for swap partitions on the SD card and use swapon to activate them.
[img]https://www.oesf.org/forums/style_emoticons/default/smile.gif\" border=\"0\" class=\"linked-sig-image\" /] Has: Dynamism C760 / Linksys WCF12 WiFi / Kingston 512MB SD
[img]https://www.oesf.org/forums/style_emoticons/default/biggrin.gif\" border=\"0\" class=\"linked-sig-image\" /] Loves: pdaXrom / Warwalking
[img]https://www.oesf.org/forums/style_emoticons/default/sad.gif\" border=\"0\" class=\"linked-sig-image\" /] Hates: NetGear MA701 WiFi / SanDisk 256MB SD / C760 Charging Faults

systemparadox

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • http://www.systemparadox.co.uk
partitioning SD card
« Reply #10 on: November 11, 2004, 09:53:57 am »
Hi. I am trying to do a similar thing. Would it be possible for someone to post the modified /etc/sdcontrol (and any other files) please?

Thanks
Simon

EDIT: just realised that this is the pdaxrom forum- I am running OpenZaurus with Opie- will there be much difference?
« Last Edit: November 11, 2004, 09:56:40 am by systemparadox »
My Site: The System Paradox (http://www.systemparadox.co.uk)

FOR SALE: Zaurus SL-C750: /Symbol Spectrum24 CF WiFi/Pilot Pentopia extending stylus (worth every penny)/Currently running Cacko.

rgrep

  • Full Member
  • ***
  • Posts: 149
    • View Profile
partitioning SD card
« Reply #11 on: November 11, 2004, 01:27:01 pm »
I'm working on the replacement script now so I'll post it when I've finished.  There shouldn't be much difference but if you post your copy of /etc/sdcontrol then I can compare the differences and release a version that will work on OZ.
[img]https://www.oesf.org/forums/style_emoticons/default/smile.gif\" border=\"0\" class=\"linked-sig-image\" /] Has: Dynamism C760 / Linksys WCF12 WiFi / Kingston 512MB SD
[img]https://www.oesf.org/forums/style_emoticons/default/biggrin.gif\" border=\"0\" class=\"linked-sig-image\" /] Loves: pdaXrom / Warwalking
[img]https://www.oesf.org/forums/style_emoticons/default/sad.gif\" border=\"0\" class=\"linked-sig-image\" /] Hates: NetGear MA701 WiFi / SanDisk 256MB SD / C760 Charging Faults

systemparadox

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • http://www.systemparadox.co.uk
partitioning SD card
« Reply #12 on: November 11, 2004, 03:06:42 pm »
Attached is my /etc/sdcontrol. I changed the device from mmcda1 to mmcda2.
Can I have both versions of the script when you are done please?

Thanks a lot!
Simon
« Last Edit: November 11, 2004, 03:07:39 pm by systemparadox »
My Site: The System Paradox (http://www.systemparadox.co.uk)

FOR SALE: Zaurus SL-C750: /Symbol Spectrum24 CF WiFi/Pilot Pentopia extending stylus (worth every penny)/Currently running Cacko.

systemparadox

  • Full Member
  • ***
  • Posts: 211
    • View Profile
    • http://www.systemparadox.co.uk
partitioning SD card
« Reply #13 on: February 12, 2005, 08:11:21 am »
Has anyone finished the modified version of this script?
My Site: The System Paradox (http://www.systemparadox.co.uk)

FOR SALE: Zaurus SL-C750: /Symbol Spectrum24 CF WiFi/Pilot Pentopia extending stylus (worth every penny)/Currently running Cacko.

grog

  • Hero Member
  • *****
  • Posts: 692
    • View Profile
    • http://
partitioning SD card
« Reply #14 on: February 12, 2005, 08:24:44 am »
Quote
Has anyone finished the modified version of this script?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
I don't know if the the scripts are the same between the ROM's, but I modified the sdcontrol on a 5600 under OZ. Check out the thread [a href=\"https://www.oesf.org/forums/index.php?showtopic=9945&hl=]here[/url]. HTH
GROG!