Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Using Hydrogen1 (Bunsenlabs), derived from Debian Jessie.
Have my hard drive partitioned: / /home swap
Want to add another partition to add another operating system to it. I would rather not have to reinstall. Would use my home directory to repartition and copy back the files with rsync. Is this going to mess up things like fstab or boot loader?
I might have to install a windows partition. If I do that then will I need to install windows in the 1st partition? If so can I rearrange the order of the partitiions?
Assuming partition 2 is home why not simply shrink it down to a smaller size rather than attempt to move home?
You could make home 100 gigs and still have 350 left to play with.
edit
Sorry I didn't see that you were trying to make room for a windows partition, that does complicate it somewhat.
If I were trying to do what you are I would boot into a live gparted session, I would then move the beginning of my /home partition forward until it was 100g in size (assuming there is less than 100g of data on that partition) then finalize that action. then move the end of my / partition forward to the beginning of my /home partition then finalize that action. I would then move the beginning of / forward until it was the size I wanted it to be then finalize that action. This should leave you with around 350 gigs at the beginning of your disk for windows if you left / about the same size as it currently is.
The only issue you are likely to have is your partition numbering is likely to change so your bootloader will need to be rerun and you may have to edit /etc/fstab. But as you are installing Windows your MBR will be overwritten by Windows anyway.
Last edited by itsgregman; 03-07-2017 at 11:40 PM.
Sorry, missed that OP had responded. Has this been resolved ?.
I tend to mess around with things as little as possible, so whilst the reply above is perfectly feasible, I would simply resize /dev/sda2 - Windoze doesn't need to be the first partition, but it does need to be a primary. And it might even demand 2 partitions - the second of which can be a logical partition. It also needs (or used to last I checked) to have the boot flag set, so you'd have to remove it from /dev/sda1 - that can be done in advance as Linux loaders ignore the presence of the flag.
If you merely do as I suggest, there will be no need to mung fstab or grub, although as mentioned Windoze will over-write the grub code in the MBR - can be fixed easily enough from a liveCD.
seeing how you got a split system. If you can login ROOT then do so that will put you on the root side. Unmount /home resize it then take what you took away and use that for whatever you want. Gparted - I do this all of the time, or have done this many times before.
remember you only get 4 primary if more partitions then the 4th needs to be used for the place holder for the logical partitions.
Therefore I do not think Gparted can do logical if not then use GParted to resize then cfdisk to create you two other partitions
Windows like that other said, but my windows 10 took three partitions. fyi
Code:
├─sda1 8:1 0 500M 0 part
├─sda2 8:2 0 97.2G 0 part /media/win10
├─sda3 8:3 0 450M 0 part
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.