[ale] what should I do when resizing ext4 partition

Chuck Payne terrorpup at gmail.com
Mon Jun 10 19:54:28 EDT 2013


Ah, you were using a commerial program. Have you tried gparted live
iso, does about the same thing and is free.

On Mon, Jun 10, 2013 at 7:22 PM, Ron Frazier (ALE)
<atllinuxenthinfo at techstarship.com> wrote:
> Hi Chuck and JD,
>
> Thanks for your replies.  I'm not using LVM unless Mint installs it by default.  As far as I know, I'm not.  The acronis true image software will have already resized all the original partitions, including the ext4 one, except the swap, essentially doubling their size.  After altering the partition boundaries, true image will have copied all the data on the NTFS partitions and adjusted the master boot record of the drive.  I don't think it will have any problem booting windows.  It popped up a warning that I would have to repair the boot loader for linux, so I know it knows linux stuff is there.  It will have copied the data, at the very least, in the ext4 mint partition.  It may have copied the data by actually manipulating the ext4 file system, or it may have just copied each sector on the old partition to the new larger partition.  I have no idea what it did with the swap file.
>
> So, just to sum up, the partitions have already been resized at the level of the disk partition table and the data has been copied by the cloning procedure.  I didn't know if any internals of grub or the ext4 file system would be unhappy about being relocated to their new home and having new boundaries and possibly sector numbers.  So, I didn't know if there is anything else I should do before trying to boot the system.
>
> Sincerely,
>
> Ron
>
>
>
> Chuck Payne <terrorpup at gmail.com> wrote:
>
>>Questioin, are you running LVM? I am just wondering as I never heard
>>that you could resize a partition unless it was a LVM. Please let me
>>know.
>>
>>On Mon, Jun 10, 2013 at 5:40 PM, JD <jdp at algoloma.com> wrote:
>>>
>>> On 06/10/2013 02:38 PM, Ron Frazier (ALE) wrote:
>>>> Hi all,
>>>>
>>>> I have a machine which dual boots windows and mint.  The 500 gb hdd
>>is mbr with 4 primary partitions, ntfs windows, ext4 mint, linux swap,
>>and ntfs data.  I'm cloning the drive to a 1 tb wd drive with WD
>>Acronis true image.  This will automatically proportionally resize the
>>partitions to the larger size.  I know what to do with windows to make
>>sure it's compatible after I reboot on the new drive.  However, is
>>there anything I should do with mint to make sure it boots properly and
>>doesn't damage the mint os  or other parts of the drive?  As far as I
>>can tell, the swap file will not be changed.  As far as I can tell, the
>>partition order will remain the same, but the boundaries will change.
>>When I'm done, I'll check it to make sure everything is on 1 MB
>>boundaries, but the WD Acronis program should do that automatically.
>>>>
>>>> Any help is appreciated.
>>>
>>> I'm hardly an expert on Windows re-partitioning, but with the
>>new-fangled HDDs,
>>> you definitely want to use Gparted or parted (not fdisk or similar
>>tools) to
>>> created all the new partitions so they are aligned properly.  With AF
>>drives,
>>> you want to be on 4K boundaries, I think. google will answer better.
>>OTOH, if
>>> you use gparted or parted, the alignment you "want" happens
>>automatically.
>>>
>>> I'd use dd to clone partitions between 2 HDDs. If there is any issue
>>with the
>>> source, then I'd use ddrescue.
>>>
>>> I've resized running ext4 partitions using resize2fs.  Don't remember
>>anything
>>> special about using it and haven't had any issues in the years since
>>the
>>> resizing and I've resized about 5 times across different machines.
>>Of course,
>>> there was space available after the old size partition to expand
>>into.  Use
>>> gparted otherwise - if you need to move partitions around. I keep a
>>gparted
>>> bootable-USB drive ready for just this reason.
>>>
>>> IME, Linux is not nearly as picky as Windows about booting.  I've
>>restored
>>> backups to clean HDDs, then ran grub-install to setup the booting
>>slices.
>>> Sometimes I like to have 6-10 bootable partitions on "play" machines.
>>> Boot-repair is a nifty tool that will locate bootable partitions on
>>all
>>> installed drives. It finds Windows partitions too.
>>>
>>> Anyway, I hope this helps.
>>>
>>> _______________________________________________
>>> Ale mailing list
>>> Ale at ale.org
>>> http://mail.ale.org/mailman/listinfo/ale
>>> See JOBS, ANNOUNCE and SCHOOLS lists at
>>> http://mail.ale.org/mailman/listinfo
>>
>>
>>
>>--
>>Terror PUP a.k.a
>>Chuck "PUP" Payne
>>
>>(678) 636-9678
>>-----------------------------------------
>>Discover it! Enjoy it! Share it! openSUSE Linux.
>>-----------------------------------------
>>openSUSE -- en.opensuse.org/User:Terrorpup
>>openSUSE Ambassador/openSUSE Member
>>Community Manager -- Southeast Linux Foundation (SELF)
>>skype,twiiter,identica,friendfeed -- terrorpup
>>freenode(irc) --terrorpup/lupinstein
>>Register Linux Userid: 155363
>>
>>Have you tried SUSE Studio? Need to create a Live CD,  an app you want
>>to package and distribute , or create your own linux distro. Give SUSE
>>Studio a try. www.susestudio.com.
>>See you at Southeast Linux Fest, June 7-9, 2013 in Charlotte, NC.
>>www.southeastlinuxfest.org
>>
>>_______________________________________________
>>Ale mailing list
>>Ale at ale.org
>>http://mail.ale.org/mailman/listinfo/ale
>>See JOBS, ANNOUNCE and SCHOOLS lists at
>>http://mail.ale.org/mailman/listinfo
>
>
> --
>
> Sent from my Android Acer A500 tablet with bluetooth keyboard and K-9 Mail.
> Please excuse my potential brevity if I'm typing on the touch screen.
>
> (PS - If you email me and don't get a quick response, you might want to
> call on the phone.  I get about 300 emails per day from alternate energy
> mailing lists and such.  I don't always see new email messages very quickly.)
>
> Ron Frazier
> 770-205-9422 (O)   Leave a message.
> linuxdude AT techstarship.com
> Litecoin: LZzAJu9rZEWzALxDhAHnWLRvybVAVgwTh3
> Bitcoin: 15s3aLVsxm8EuQvT8gUDw3RWqvuY9hPGUU
>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo



-- 
Terror PUP a.k.a
Chuck "PUP" Payne

(678) 636-9678
-----------------------------------------
Discover it! Enjoy it! Share it! openSUSE Linux.
-----------------------------------------
openSUSE -- en.opensuse.org/User:Terrorpup
openSUSE Ambassador/openSUSE Member
Community Manager -- Southeast Linux Foundation (SELF)
skype,twiiter,identica,friendfeed -- terrorpup
freenode(irc) --terrorpup/lupinstein
Register Linux Userid: 155363

Have you tried SUSE Studio? Need to create a Live CD,  an app you want
to package and distribute , or create your own linux distro. Give SUSE
Studio a try. www.susestudio.com.
See you at Southeast Linux Fest, June 7-9, 2013 in Charlotte, NC.
www.southeastlinuxfest.org



More information about the Ale mailing list