Author Topic: Resize Root Partition And Keep File System Intact  (Read 3865 times)

dougeeebear

  • Hero Member
  • *****
  • Posts: 537
    • View Profile
    • http://
Resize Root Partition And Keep File System Intact
« on: January 28, 2007, 12:11:30 pm »
Content of this post removed.
The procedure resulted in a serious error.
« Last Edit: January 29, 2007, 08:44:33 am by dougeeebear »
Zaurus SL-C1000 and SL-5500
NetWalker PC-T1 (tablet)

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Resize Root Partition And Keep File System Intact
« Reply #1 on: January 28, 2007, 05:38:41 pm »
I think this must work down to pure luck, that the parts of the file system you chopped off weren't used!
I'm not too sure that if you added to the file sys then it wouldn't corrupt the rest of the card or crash as it might try and write outside of the partition.

I think you'd be much better off copying the files to a flash card or to another machine.


you can copy the entire file system to a remote machine using rsync or tar + ssh... e.g.

cd /xyz
tar cf - . | gzip | ssh xyz.example.com "mkdir /tmp/xyz ; cd /tmp/xyz ;  tar xf -"


or backup thus

cd /xyz
tar cf - . | gzip | ssh xyz.example.com "cat > /tmp/xyz.tar.gz"
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.

dougeeebear

  • Hero Member
  • *****
  • Posts: 537
    • View Profile
    • http://
Resize Root Partition And Keep File System Intact
« Reply #2 on: January 28, 2007, 05:54:30 pm »
Quote
I think this must work down to pure luck, that the parts of the file system you chopped off weren't used![div align=\"right\"][a href=\"index.php?act=findpost&pid=152765\"][{POST_SNAPBACK}][/a][/div]
I didn't chop anything off.
I think you're misunderstanding what I did here.
I just reduced the size of / and increased the size of /home.
It worked similar to the way Partition Magic works on Windows.
But maybe you're right... maybe I was lucky.
« Last Edit: January 28, 2007, 06:17:06 pm by dougeeebear »
Zaurus SL-C1000 and SL-5500
NetWalker PC-T1 (tablet)

dougeeebear

  • Hero Member
  • *****
  • Posts: 537
    • View Profile
    • http://
Resize Root Partition And Keep File System Intact
« Reply #3 on: January 28, 2007, 06:54:19 pm »
I made a NAND BACKUP of the new partitioning scheme, then I did a NAND RESTORE of the original.
It came back as it was originally.
Then I tried to do a NAND RESTORE of the new partitioning scheme, and I got the following error:

Restore Error... Bad Format

So I guess the resizing process must have messed something up.
Oh, well *nuts*
Back to the original.

speculatrix,
Looks like you were right.
« Last Edit: January 28, 2007, 07:23:03 pm by dougeeebear »
Zaurus SL-C1000 and SL-5500
NetWalker PC-T1 (tablet)

Antikx

  • Hero Member
  • *****
  • Posts: 1147
    • View Profile
    • http://tyrannozaurus.com
Resize Root Partition And Keep File System Intact
« Reply #4 on: January 28, 2007, 11:12:58 pm »
It was probably a good learning experience though hey?
Hope you keep at it.
Kanpai,
-Antikx (Twitter, Mugshot and PodNova)
C1000 - pdaXrom R198 (Celestial Environment)
tyrannozaurus.com
[img]http://www.tyrannozaurus.com/files/category_pictures/general_1.png\" border=\"0\" class=\"linked-sig-image\" /]
Zaurus news/blogs feed from Zaurus users
Free Windows, Linux, or Web RSS readers.
Featured pages at tyrannozaurus:
Sharp Petition, ScummVM, Cacko, pdaXii13, and Celestial Environment

Snappy

  • Hero Member
  • *****
  • Posts: 793
    • View Profile
    • http://
Resize Root Partition And Keep File System Intact
« Reply #5 on: January 29, 2007, 12:30:25 am »
yeah ... keep at it!

hey, looks like we got a couple/few of us who own the c1000! We could have a Akita club if it don't already exist!
Snappy!
------------------------
Akita (Daily use)
<span style='font-size:8pt;line-height:100%'>SL-C1000 with Cacko 1.23 full
Accessories: Wifi XI-825 CF  |  16GB (6) SDHC (Transcend) | 1GB 80x CF (RiDATA PRO-2) </span>

Collie (Sandbox)
<span style='font-size:8pt;line-height:100%'>SL-5500 with OZ/GPE 3.5.4.1 alpha3 build 2006-04-27
Accessories: 512MB A-Data SD | 64MB Toshiba SD</span>

speculatrix

  • Administrator
  • Hero Member
  • *****
  • Posts: 3707
    • View Profile
Resize Root Partition And Keep File System Intact
« Reply #6 on: January 29, 2007, 06:01:49 am »
Quote
Quote
I think this must work down to pure luck, that the parts of the file system you chopped off weren't used![div align=\"right\"][a href=\"index.php?act=findpost&pid=152765\"][{POST_SNAPBACK}][/a][/div]
I didn't chop anything off.
I think you're misunderstanding what I did here.
I just reduced the size of / and increased the size of /home.
It worked similar to the way Partition Magic works on Windows.
But maybe you're right... maybe I was lucky.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=152769\"][{POST_SNAPBACK}][/a][/div]

I don't think the resize partition is intelligent, I think it just changes the numbers in the partition table, and doesn't move any data in the "chopped-off" areas.

I remember when PM first came out, and it was an amazing idea, that such a thing was possible at all.

Seeing your follow-up confirmed my suspicions. sorry, it would have been neat if it had worked.
Gemini 4G/Wi-Fi owner, formerly zaurus C3100 and 860 owner; also owner of an HTC Doubleshot, a Zaurus-like phone.