<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=1941&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Need to resize partitions before upgrade]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=1941</link>
		<description><![CDATA[The most recent posts in Need to resize partitions before upgrade.]]></description>
		<lastBuildDate>Sun, 18 Mar 2018 17:55:19 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Need to resize partitions before upgrade]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=8029#p8029</link>
			<description><![CDATA[<p>Using GParted to resize the partitions has been successful, only that there is 1MB of unallocated space left over from shrinking the root partition:</p><div class="codebox"><pre><code>Device      Boot    Start       End   Sectors   Size Id Type                
/dev/sda1   *        2048    403455    401408   196M 83 Linux
Free space         403456    405503      2048     1M                        
/dev/sda2          405504  29394943  28989440  13,8G 83 Linux
/dev/sda3        29394944  33300479   3905536   1,9G 82 Linux swap / Solaris
/dev/sda4        33300480 625141759 591841280 282,2G 83 Linux</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (msi)]]></author>
			<pubDate>Sun, 18 Mar 2018 17:55:19 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=8029#p8029</guid>
		</item>
		<item>
			<title><![CDATA[Re: Need to resize partitions before upgrade]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=8028#p8028</link>
			<description><![CDATA[<div class="quotebox"><cite>Geoff 42 wrote:</cite><blockquote><div><p>Couldn&#039;t you boot off a USB memory stick which has gparted, so that your real disk is not mounted. Then you can use gparted to shrink a partition and move it/them up to give you the room to grow sda1.</p></div></blockquote></div><p>Thanks for the hint. I&#039;ve looked into that and it&#039;s really a far better idea and <a href="https://gparted.org/display-doc.php%3Fname%3Dmoving-space-between-partitions" rel="nofollow">a lot easier</a> than what I was going to try. (I would have used a live system to work on the disk, though.)</p><div class="quotebox"><cite>Geoff 42 wrote:</cite><blockquote><div><p>I should probably include a warning about backing up...</p></div></blockquote></div><p>I wouldn&#039;t dare doing anything like that without a backup.</p>]]></description>
			<author><![CDATA[dummy@example.com (msi)]]></author>
			<pubDate>Sun, 18 Mar 2018 14:01:16 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=8028#p8028</guid>
		</item>
		<item>
			<title><![CDATA[Re: Need to resize partitions before upgrade]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=8027#p8027</link>
			<description><![CDATA[<div class="quotebox"><cite>Geoff 42 wrote:</cite><blockquote><div><p>Couldn&#039;t you boot off a USB memory stick which has gparted, so that your real disk is not mounted. Then you can use gparted to shrink a partition and move it/them up to give you the room to grow sda1. I should probably include a warning about backing up...</p><p>Geoff</p></div></blockquote></div><p>That is what I&#039;d do. I&#039;ve done similar maneuvers with gparted many times. Shrink /root by however much space you want to give to /boot, move /root up leaving the now-unallocated space for a simple resize of /boot. Fast and easy.</p><p>You do have to run gparted from a LiveCD/USB session.</p>]]></description>
			<author><![CDATA[dummy@example.com (sgage)]]></author>
			<pubDate>Sun, 18 Mar 2018 13:50:02 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=8027#p8027</guid>
		</item>
		<item>
			<title><![CDATA[Re: Need to resize partitions before upgrade]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=8026#p8026</link>
			<description><![CDATA[<p>Couldn&#039;t you boot off a USB memory stick which has gparted, so that your real disk is not mounted. Then you can use gparted to shrink a partition and move it/them up to give you the room to grow sda1. I should probably include a warning about backing up...</p><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Sun, 18 Mar 2018 11:39:38 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=8026#p8026</guid>
		</item>
		<item>
			<title><![CDATA[Re: Need to resize partitions before upgrade]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=8015#p8015</link>
			<description><![CDATA[<p>You&#039;ll have Murpy&#039;s ghost chuckling at your side, I&#039;m sure <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>1. You should probably not change file system type at the same time as repartitioning. I know that sound engineering tells you to change at least two things every time, but sometimes it&#039;s safer to take it in steps.</p><p>2. <span class="bbc">rsync</span> transfer of a root partition is not something I&#039;ve had success with. Perhaps resizing and <span class="bbc">dd</span> transfer is an option. (Somewhere someone said <span class="bbc">ext3</span> be converted to <span class="bbc">ext4</span> without reformatting).</p><p>3. Be ready to manually update the UUIDs in <span class="bbc">grub.cfg</span> and <span class="bbc">fstab</span>. I&#039;m not sure whether UUIDs will change or not, but I would expect them to.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sat, 17 Mar 2018 22:10:30 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=8015#p8015</guid>
		</item>
		<item>
			<title><![CDATA[Need to resize partitions before upgrade]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=8014#p8014</link>
			<description><![CDATA[<p>I&#039;m planning to upgrade my main system to ASCII, but there&#039;s a problem with my partition scheme that I&#039;d also like to solve. Making a fresh installation instead of upgrading would give me the opportunity to do that, but I don&#039;t want to spend time installing again all the software I use and re-configuring it. That&#039;s just tedious, even with all the configs in your backup. </p><p>The problem with my partition scheme is this: When I originally installed the system, I chose to create a pretty small boot partition (50MB). That has already turned out as a bad decision on the current system. And as the Linux kernel will probably continue to get bigger, I think I really shouldn&#039;t leave it like that.</p><p>Now, all my partitions are primary partitions and together they make use of all the space available on my hard drive. So, resizing anything there won&#039;t be too easy. The possible solution I&#039;ve come up with is as follows:</p><p>First, here&#039;s my current partition scheme:</p><div class="codebox"><pre><code>NAME   MOUNTPOINT   SIZE
sda               298,1G
├─sda1 /boot         47M
├─sda2 /             14G
├─sda3 [SWAP]       1,9G
└─sda4 /home      282,2G</code></pre></div><p>What I would want to do is give 100-150MB more to the boot partition. Those could easily be taken from my half-empty root partition. So, what if I made a backup of both (using <span class="bbc">rsync</span>), then used <span class="bbc">fdisk</span> to delete them, then used <span class="bbc">fdisk</span> again to create a boot partition at the beginning of the drive that is 100-150MB bigger as well as a root partiton taking up the rest of the space between the boot and swap partitions and finally played in the backups?</p><p>I can&#039;t think of any reason for which that shouldn&#039;t work generally. But there are probably some dangers and caveats. For example, I&#039;m unsure if it will cause any trouble if I use ext4 as the file system on the new root partition instead of ext3, which is being used on the current one.</p>]]></description>
			<author><![CDATA[dummy@example.com (msi)]]></author>
			<pubDate>Sat, 17 Mar 2018 21:47:46 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=8014#p8014</guid>
		</item>
	</channel>
</rss>
