OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Sharp ROMs => Topic started by: dougeeebear on January 28, 2007, 12:11:30 pm

Title: Resize Root Partition And Keep File System Intact
Post by: dougeeebear on January 28, 2007, 12:11:30 pm
Content of this post removed.
The procedure resulted in a serious error.
Title: Resize Root Partition And Keep File System Intact
Post by: speculatrix 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"
Title: Resize Root Partition And Keep File System Intact
Post by: dougeeebear 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.
Title: Resize Root Partition And Keep File System Intact
Post by: dougeeebear 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.
Title: Resize Root Partition And Keep File System Intact
Post by: Antikx on January 28, 2007, 11:12:58 pm
It was probably a good learning experience though hey?
Hope you keep at it.
Title: Resize Root Partition And Keep File System Intact
Post by: Snappy 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!
Title: Resize Root Partition And Keep File System Intact
Post by: speculatrix 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.