Author Topic: Root Partition Size  (Read 14159 times)

hannes

  • Newbie
  • *
  • Posts: 21
    • View Profile
Root Partition Size
« on: January 27, 2007, 07:01:22 pm »
I'm using an SL C1000 with OZ/GPE and after some tweaking, uninstalling and installing my root partition has arrived at almost 90% use, whereas my home partition sits there at an idle 3%. I know I can always install software to /home, but I was wondering if there is a way (in OZ, I mean) to repartition the internal flash and mount all of it on /, maybe by moving root to sd with altboot, repartition and move root back again? would that work?

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Root Partition Size
« Reply #1 on: January 28, 2007, 10:21:39 am »
Someone needs to look at the work the pdaX people did to allow a single partition and implement this for OZ (flasher and some kernel changes iirc).


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

hannes

  • Newbie
  • *
  • Posts: 21
    • View Profile
Root Partition Size
« Reply #2 on: January 28, 2007, 11:13:57 am »
I think it was Koen (correct me if I'm wrong) who wrote on this forum something in the line of OZ neither needing nor wanting changes to the default partitioning, so I'm not sure if this will ever be officially implemented.    The main point is, can a single flash partition be booted by the sharp bootloader + altboot (pdaxrom uses uBoot instead)?

Hrw

  • Hero Member
  • *****
  • Posts: 1366
    • View Profile
Root Partition Size
« Reply #3 on: January 28, 2007, 01:28:49 pm »
OpenZaurus never supported and will not support resizing of flash partitions.
OpenZaurus 3.5.4x Release Manager
OpenEmbedded, Ångström, Poky developer
My website

Misc embedded hardware.

stupkid

  • Hero Member
  • *****
  • Posts: 578
    • View Profile
    • http://
Root Partition Size
« Reply #4 on: January 28, 2007, 02:38:25 pm »
Quote
OpenZaurus never supported and will not support resizing of flash partitions.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

But changing the partitioning of the MicroDrive is supported by the OZ installer.  I've never heard the logic behind not partitioning flash, but at least you can repartition on the 3ks.

EDIT:  You could try [a href=\"http://wiki.openzaurus.org/HowTos/Root_Filesystem_on_external_media]RootFS on External media[/url]
« Last Edit: January 28, 2007, 03:04:21 pm by stupkid »

Zaurus SL-C3200 pdaXii13v2 5.5 / Ambicom WC1100C-CF / Socket Bluetooth Rev G


OpenMoko FreeRunner - Running Tweaked OM2008.x Image

Mickeyl

  • Hero Member
  • *****
  • Posts: 1495
    • View Profile
    • http://www.Vanille.de
Root Partition Size
« Reply #5 on: January 28, 2007, 03:51:52 pm »
Changing the MicroDrive partitioning is much more uncritical than changing flash partitioning.
Cheers,

Michael 'Mickey' Lauer | Embedded Linux Freelancer | www.Vanille-Media.de
Consider donating, if you like the software I contribute to.

hannes

  • Newbie
  • *
  • Posts: 21
    • View Profile
Root Partition Size
« Reply #6 on: January 28, 2007, 04:04:18 pm »
Quote
OpenZaurus never supported and will not support resizing of flash partitions.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
That's the second time I read a categorical statement like this on this forum ([a href=\"https://www.oesf.org/forums/index.php?showtopic=20870&hl=root+partition]here[/url] is the other one) - would you mind to explain the reasons behind this, Hrw or Koen? - thank you

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Root Partition Size
« Reply #7 on: January 31, 2007, 09:56:20 pm »
Quote
Quote
OpenZaurus never supported and will not support resizing of flash partitions.
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
That's the second time I read a categorical statement like this on this forum ([a href=\"https://www.oesf.org/forums/index.php?showtopic=20870&hl=root+partition]here[/url] is the other one) - would you mind to explain the reasons behind this, Hrw or Koen? - thank you
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152755\"][{POST_SNAPBACK}][/a][/div]

it's probably because its easier to implement and there are less things that can go wrong if you stick to something that is known and not let users have option to create many different partition sizes and risk user creating absurd partition layouts or sizes.

that said, the OZ updater script is rather simple (only looked at the C3000 script). it just whacks the kernel and initrd onto the nand and extract the hdimage to the microdrive.

i've secretly written an updater script for OZ using pdaXrom's one as a guide which pops up a menu similar to the pdaXrom one which then allows you to repartition the microdrive. it could easily do the same with the nand, but since the C3000 doesn't have much nand space to play with anyway, i removed the nand options.
« Last Edit: January 31, 2007, 09:56:44 pm by Meanie »
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

craigtyson

  • Sr. Member
  • ****
  • Posts: 462
    • View Profile
Root Partition Size
« Reply #8 on: November 21, 2008, 03:10:53 pm »
OK been looking for the magic answer.  What is the standard partition size for a c1000 ???  Im moving from CACKO lite with a 19MB partition
Craig
SL-C1000, Angstrom GPE 2007.12r13
Ambicom WL1100C, SanDisk UltraII 1GB SD
 
Old Faithfull - SL-5500 battery out of the C750 (see below) TKC v1 (New) 1GB SD
Dead - SL-C750, Cacko 1.23 lite (Dropped, very messy!)
Ambicom WL1100C, SanDisk Dead - 1GB SD
Keep your Z on a bungee, you never know.....

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Root Partition Size
« Reply #9 on: November 21, 2008, 10:28:45 pm »
I would suggest just doing a NAND restore from TriSoft and not worrying about it.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

craigtyson

  • Sr. Member
  • ****
  • Posts: 462
    • View Profile
Root Partition Size
« Reply #10 on: November 22, 2008, 07:52:34 am »
Cheers, ended up doing just that.

Ta
Craig
SL-C1000, Angstrom GPE 2007.12r13
Ambicom WL1100C, SanDisk UltraII 1GB SD
 
Old Faithfull - SL-5500 battery out of the C750 (see below) TKC v1 (New) 1GB SD
Dead - SL-C750, Cacko 1.23 lite (Dropped, very messy!)
Ambicom WL1100C, SanDisk Dead - 1GB SD
Keep your Z on a bungee, you never know.....

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Root Partition Size
« Reply #11 on: November 23, 2008, 08:14:03 am »
now you know the partition sizes, can you post them, so that others can, maybe, avoid the same problem, thanks!
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Root Partition Size
« Reply #12 on: November 23, 2008, 11:51:29 am »
I believe
Code: [Select]
fdisk -l /dev/mtdblk0or some similar device should give the info we're looking for.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

craigtyson

  • Sr. Member
  • ****
  • Posts: 462
    • View Profile
Root Partition Size
« Reply #13 on: November 24, 2008, 07:14:30 am »
Outputs are:

Disk /dev/mtdblock0: 7MB 7012352 bytes
255 heads 63 sectors/track 0 cylinders
Units= cylinders of 16065 * 512 = 8225283 bytes

Disk /dev/mtdblock1: 7MB 7340032 bytes
255 heads 63 sectors/track 0 cylinders
Units= cylinders of 16065 * 512 = 8225283 bytes

Disk /dev/mtdblock2: 60MB 60817408 bytes
255 heads 63 sectors/track 7 cylinders
Units= cylinders of 16065 * 512 = 8225283 bytes

Disk /dev/mtdblock3: 63MB 66060288 bytes
255 heads 63 sectors/track 8 cylinders
Units= cylinders of 16065 * 512 = 8225283 bytes

Cheers
Craig
SL-C1000, Angstrom GPE 2007.12r13
Ambicom WL1100C, SanDisk UltraII 1GB SD
 
Old Faithfull - SL-5500 battery out of the C750 (see below) TKC v1 (New) 1GB SD
Dead - SL-C750, Cacko 1.23 lite (Dropped, very messy!)
Ambicom WL1100C, SanDisk Dead - 1GB SD
Keep your Z on a bungee, you never know.....