by catenation to a partition on an external drive.
I do not want to shrink the fedora partition, but I could if necessary; in which case does fedora have a partition resizer?
I know I can back up the fedora partition, resize it and and restore from backup. But that could take many hours of down time. I was wondering if there is a util that can do it to an unmounted fedora partition.
Thanx.
On Wed, 2016-01-06 at 10:16 -0700, jd1008 wrote:
by catenation to a partition on an external drive.
I do not want to shrink the fedora partition, but I could if necessary; in which case does fedora have a partition resizer?
I know I can back up the fedora partition, resize it and and restore from backup. But that could take many hours of down time. I was wondering if there is a util that can do it to an unmounted fedora partition.
Resizing the partition can be done with gparted, but note that you first have to resize the filesystem within the partition, and how you do that depends on which fs you have as not all of them support reducing the size.
poc
On 01/06/2016 10:32 AM, Patrick O'Callaghan wrote:
On Wed, 2016-01-06 at 10:16 -0700, jd1008 wrote:
by catenation to a partition on an external drive.
I do not want to shrink the fedora partition, but I could if necessary; in which case does fedora have a partition resizer?
I know I can back up the fedora partition, resize it and and restore from backup. But that could take many hours of down time. I was wondering if there is a util that can do it to an unmounted fedora partition.
Resizing the partition can be done with gparted, but note that you first have to resize the filesystem within the partition, and how you do that depends on which fs you have as not all of them support reducing the size.
poc
The fedora partition is the 2nd partition and sizes are as follows:
$ fdisk -l /dev/sda Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: dos Disk identifier: 0x0004ccd9
Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 84033535 84031488 40.1G 7 HPFS/NTFS/exFAT /dev/sda3 84035584 1919970735 1835935152 875.5G 83 Linux /dev/sda4 1919970736 1953525167 33554432 16G 82 Linux swap / Solaris
I want to move sda3 start position some 32GB to the right, thus shrinking it by 32GB. sda3 is the fedora boot partition and formatted and mounted as ext4.
P.S: Notice that sda2 is missing - because it was a tiny remnant partition of windows restoration utils (about 100 meg), which had proved to be useless to me, since I use backup and restore which completely obviated those tools. So, I expanded windows partition into what was sda2. Of course, I had first deleted sda2 in order to use windows storage gui to expand C: drive into the space that was sda2. But still, windoze needs a little more room, as it is running out of swap area.
On 6 January 2016 at 17:49, jd1008 jd1008@gmail.com wrote:
On 01/06/2016 10:32 AM, Patrick O'Callaghan wrote:
On Wed, 2016-01-06 at 10:16 -0700, jd1008 wrote:
by catenation to a partition on an external drive.
I do not want to shrink the fedora partition, but I could if necessary; in which case does fedora have a partition resizer?
I know I can back up the fedora partition, resize it and and restore from backup. But that could take many hours of down time. I was wondering if there is a util that can do it to an unmounted fedora partition.
Resizing the partition can be done with gparted, but note that you first have to resize the filesystem within the partition, and how you do that depends on which fs you have as not all of them support reducing the size.
poc
The fedora partition is the 2nd partition and sizes are as follows:
$ fdisk -l /dev/sda Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: dos Disk identifier: 0x0004ccd9
Device Boot Start End Sectors Size Id Type /dev/sda1 * 2048 84033535 84031488 40.1G 7 HPFS/NTFS/exFAT /dev/sda3 84035584 1919970735 1835935152 875.5G 83 Linux /dev/sda4 1919970736 1953525167 33554432 16G 82 Linux swap / Solaris
I want to move sda3 start position some 32GB to the right, thus shrinking it by 32GB. sda3 is the fedora boot partition and formatted and mounted as ext4.
P.S: Notice that sda2 is missing - because it was a tiny remnant partition of windows restoration utils (about 100 meg), which had proved to be useless to me, since I use backup and restore which completely obviated those tools. So, I expanded windows partition into what was sda2. Of course, I had first deleted sda2 in order to use windows storage gui to expand C: drive into the space that was sda2. But still, windoze needs a little more room, as it is running out of swap area.
I think gparted should be able to do this for you, first move the start of the linux partition and filesystem towards the end of the disc (you'll have to shrink that filesystem, also done in gparted) and then move it to create free space next to windows. Moving the start of a filesystem is more risky than simply shrinking or growing it and could take a while, you definitely want to have a backup. I'd opt to use windows tools to do the ntfs growing afterwards (since it's windows's filesystem). If your linux /boot is on sda3 you may need to reinstall grub after the move too, so make sure you know how to do that.
On Wed, 2016-01-06 at 18:44 +0000, Ian Malone wrote:
I think gparted should be able to do this for you, first move the start of the linux partition and filesystem towards the end of the disc (you'll have to shrink that filesystem, also done in gparted) and then move it to create free space next to windows.
Yes, I see gparted that it can manipulate the fs as well, so resize2fs isn't needed.
poc
On 6 January 2016 at 23:54, Patrick O'Callaghan pocallaghan@gmail.com wrote:
On Wed, 2016-01-06 at 18:44 +0000, Ian Malone wrote:
I think gparted should be able to do this for you, first move the start of the linux partition and filesystem towards the end of the disc (you'll have to shrink that filesystem, also done in gparted) and then move it to create free space next to windows.
Yes, I see gparted that it can manipulate the fs as well, so resize2fs isn't needed.
Actually, so far as I know, gparted will use resize2fs, it just manages the trickier aspects of doing so (and takes care of the partitioning too).
Ian Malone:
I think gparted should be able to do this for you, first move the start of the linux partition and filesystem towards the end of the disc (you'll have to shrink that filesystem, also done in gparted) and then move it to create free space next to windows.
Patrick O'Callaghan:
Yes, I see gparted that it can manipulate the fs as well, so resize2fs isn't needed.
It's been a long time since I've used gparted, but I seem to recall that it did the filesystem and partition resizing in one continuous process. You didn't have to do one, then go back in and do the other. It was sequenced for you.
On Wed, 2016-01-06 at 10:49 -0700, jd1008 wrote:
sda3 is the fedora boot partition and formatted and mounted as ext4.
You can shrink ext4 filesystem using resize2fs (assuming it has enough unused space of course). The fs has to be unmounted of course, so you may want to do it in single-user mode. Then you can use gparted to adjust the partition sizes.
Read and understand resize2fs(8) before starting.
poc
On 01/06/2016 12:16 PM, jd1008 wrote:
by catenation to a partition on an external drive.
I do not want to shrink the fedora partition, but I could if necessary; in which case does fedora have a partition resizer?
I know I can back up the fedora partition, resize it and and restore from backup. But that could take many hours of down time. I was wondering if there is a util that can do it to an unmounted fedora partition.
Thanx.
I have used GParted to shrink, expand, and move partitions in Windows and Linux. I don't see any reason it won't work for you. Look for GParted on Google, download it and burn it to a CD. Boot the CD and just follow your nose. It will take some time to move a partition, but not hours. It is always a good idea to back up whatever you're going to mess with before you do it, but I haven't had any problems. Since you want to make Windows bigger, it should be fairly quick and easy; it's when you want to make Windows smaller that you run into problems. (You can probably reclaim about half of unused Windows space, but not more.)
--doug