Moving and resizing partitions

AmigaOS users can make feature requests in this forum.

Moving and resizing partitions

Postby ancalimon » Wed Jan 25, 2017 5:39 pm

Does Media Toolbox support moving and resizing partitions without erasing any data?

If not and if easy to achieve, this would be really nice and handy to have.
ancalimon
 
Posts: 27
Joined: Tue Oct 18, 2011 8:31 am

Re: Moving and resizing partitions

Postby MichaelMerkel » Wed Jan 25, 2017 9:37 pm

ancalimon wrote:Does Media Toolbox support moving and resizing partitions without erasing any data?

If not and if easy to achieve, this would be really nice and handy to have.


unfortunately not.
if you change smth with media toolbox you will see a warning requester when saving it to disk telling you that the changed partitions will be "lost"...
always do proper backups before changing stuff here.

regards...
michael
Michael Merkel :lol:
(Member of Amiga Freunde Pfalz)
User avatar
MichaelMerkel
Beta Tester
Beta Tester
 
Posts: 312
Joined: Mon Dec 20, 2010 3:08 pm
Location: Germany

Re: Moving and resizing partitions

Postby tonyw » Thu Jan 26, 2017 2:43 am

Media Toolbox can resize a partition, but the effect of that resize depends on the file system installed in that partition. We don't have any AmigaOS file systems that can suffer a partition resize without losing data.

Since the file system could have data reaching to the extremes of the partition (start and end), any resizing that loses "edge" data could easily be fatal. All Amiga file systems use the first block of the partition to store the "signature" of the file system, so you can't chop off the start of the partition. Likewise, depending on how full the partition, there could be data out to the end of the partition, and losing that might screw part or the whole of the partition.

If the partition is expanded, then the increased space can only be used if the filesystem is made aware of the change and is capable of recalculating its geometry to make use of it. That usually requires a Format to generate the new data structures.

It's safe to assume that any reduction in the partition size will kill the contents. An expansion probably won't hurt, but won't be useful in any AmigaOS file systems.
cheers
tony
User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 1195
Joined: Wed Mar 09, 2011 2:36 pm
Location: Sydney, Australia

Re: Moving and resizing partitions

Postby thomasrapp » Thu Jan 26, 2017 2:59 pm

Think of MediaToolbox as a partition table editor. It only edits the table, it does not touch the partitions themselves. If you delete a partition in Media Toolbox, the partition is not deleted, only the entry in the table. If you recreate the entry exactly as before, the partition will reappear with all the data it contains.

Moving / Resizing partitions without data loss would require a completely different kind of program.
User avatar
thomasrapp
 
Posts: 235
Joined: Sun Jun 19, 2011 12:22 am

Re: Moving and resizing partitions

Postby daveyw » Sat Apr 29, 2017 5:49 am

I recently installed ubuntu on a Windows 7 machine and was completely blown away by the ability to shrink the Windows partition to make space for a Linux partition.

I guess it's not so much of an issue for Amiga users, because we usually prep our own HDD, and if you're like me, leave plenty of free space, but it would be a nice feature to see. Felt a little jealous... ;)

If you formatted a drive with NTFS, would you be able to shrink this partition?
User avatar
daveyw
 
Posts: 124
Joined: Mon Sep 12, 2011 8:44 pm

Re: Moving and resizing partitions

Postby broadblues » Sat Apr 29, 2017 4:27 pm

I recently installed ubuntu on a Windows 7 machine and was completely blown away by the ability to shrink the Windows partition to make space for a Linux partition.



It's cool when it works, but it's not 100% safe, I tried the same when I inherited a second hand PC, and trashed the windows partition....

If you formatted a drive with NTFS, would you be able to shrink this partition?


I think more than using the right file system is required here to enable such functionality.
User avatar
broadblues
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 439
Joined: Sat Jun 18, 2011 3:40 am
Location: Portsmouth, UK

Re: Moving and resizing partitions

Postby Elwood » Fri May 19, 2017 5:57 pm

daveyw wrote:If you formatted a drive with NTFS, would you be able to shrink this partition?


On Windows yes. I did it many times on Windows 2008 Server or 2012 Server without a problem. It should work the same on Win7 and 8.1 as they are more or less the same.
Philippe "Elwood" Ferrucci
Sam460 owner
AmigaOS 4 betatester
User avatar
Elwood
AmigaOS Core Developer
AmigaOS Core Developer
 
Posts: 61
Joined: Sat Jun 18, 2011 7:57 pm
Location: Lyon, France


Return to AmigaOS Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest