[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ext2fs resize?



Waye-Ian CHIEW wrote:
> 
> Hello!
> 
> I'm presently trying to shuffle and resize several partitions on a disk device
> without losing data.

My answer to this is NOT authoritative, that is, I haven't looked at the
code.
However, in general, partitioning doesn't move data about; it merely
updates
a small file which delineates the sets of diskblocks that comprise each 
partition.  The filesystem lays out the the blocks of its partition in
accordance with it's policy - the filesystem on /proc is very different
to 
those on /usr, or /, or /var which are in turn very different from that
on
/msdos.  The *nix data partitions (/, /usr, /var, etc.) are layed out
with a 
set of i-nodes at the beginning of the partition (or sets of i-nodes
scattered 
throughout) each of which point to the individual blocks (or sets of
blocks) 
which hold the file.  The policy (or format) for msdos is very
different, and
unknown to me, as are the formats of /proc, etc.  Thus partitions aren't
easily 
moved or combined without foreknowledge of the format of the content. 
Thus, 
you need to backup each of the partitions involved, re-partition, and
restore 
the backups to the now empty, new, partitions. HTH.
> 
> Can the ext2fs resize itself?
> That is, can the filesystem shrink or grow in size to accommondate a resized
> partition?  Is there a tool to do this?
> 
> Can the ext2fs move itself?
> If the whole filesystem is moved up or down (relative to the start of the
> partition), will it still work?
> 
> -- Ian!!
> 
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

-- 
-----------------------------------------
Ralph Winslow		      rjw@nac.net
Mary bought a pair of skates
upon the ice to frisk
now wasn't that a crazy way
her sweet young *?


--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: