How To Move Linux Partitions To A Single Partition
Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
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.
See if you have gparted installed. It should be self explanatory if you're using a gui version of that program. Or you can download the live cd of gparted and it will do the job.
As it shown at picture, if you don't want to repartition your drive, the only way to get a space for Kali is moving /home content to sda3. After that you can re-format sda6 and install Kali there.
You need to run it from live-cd you can't do it from a running system. Also take note of the yellow flag on /dev/sda2, you need to run Chkdsk on it from windows
Can I just move /sda4 to my /sda3 since /sda4 is like a main directory
and my swap and home partitions (/sda5 and /sda6) are subdirectories.
Then I would have the ability to create one more partition and use
that to install Kali on it.. If so can I use the steps in this
website??? http://www.maketecheasier.com/move-home-folder-ubuntu/
Sorry, I am more of a visual person and need to see how to do
something or else I'll screw everything up unless I am given specific
detailed instructions..
Also, I ran chkdsk and "repaired" the errors and the yellow flag is still there..
That's not necessary. If you follow the instrctions I posted earlier you will be able to install within the Extended partitions. But use gparted-live-cd/usb to do the job.
Can I just move /sda4 to my /sda3 since /sda4 is like a main directory
No. sda4 is a primary partition being used as an Extended partition which shows in your GParted image. Extended partitions do not contain data but contain logical partitions, in your case sda5 and sda6. You can move the data in your /home partition (sda6) to the / partition (sda3) then use the sda6 partition to install a new OS. This was suggested above and would probably be the simplest. There are other options but part of the problem is that shrinking sda2 won't help as you already have four primary partitions and to expand a partition, the unallocated space needs to be contiguous and your Extended partition has the / partition (sda3) between it (sda4) and the enormous windows partition (sda2).
The unallocated space between sda2 & sda3 can be incorporated into the Extended partition it just takes a little manipulatinon to get it done.
Don't see how since partitions need to be contiguous and the / filesystem is between the Extended and windows partition. Also, at present that is only 1MB which won't help. Your suggestion in post #6 above would work but the other suggestion someone posted earlier to just copy the data from his home partition to the / partition would seem a lot easier, particularly for someone without much experience. This would still leave the OP with about 10GB of free space on the partition and the former home partition on which to install the new system.
I did and said in my previous post that I thought that would work. Mistakenly indicated post #3 instead of post #6. It would still be much simpler to copy the files to sda3 from the home partition, especially for someone who has apparently little experience as it would involve moving not just the partitions but the data and the / partition and its boot files would be moved and I indicated in an earlier post, would then require chrooting to modify the boot files as the sector on which the Grub files are would obviously be moved.
It would still be much simpler to copy the files to sda3 from the home partition, especially for someone who has apparently little experience as it would involve moving not just the partitions but the data and the / partition and its boot files would be moved and I indicated in an earlier post, would then require chrooting to modify the boot files as the sector on which the Grub files are would obviously be moved.
Actually I had a problem with systemd & my /usr partition. Systemd doesn't like seperate /usr. So I had to move /usr to /. Just copying the data to / doesnt work, it ignores certain directories
Here's a link to my post which I forgot to mark solved & explain what I did. http://www.linuxquestions.org/questi...en-4175517426/
Anyway I had to mount my partitions from live-cd
mkdir /usr2
cp /usr /usr2
rename usr2 to /usr
edit fstab
reboot
Even tho it's easy now to do it, that is a lot harder than using gparted-live
select a partition
select move/resize
put mouse in center of the partition & drag it left.
The only partition you can't drag is the extended, which you just grab the left side of the partition & expand it to the left.
The uuid for / doesn't change so no rescue necessary.
Also I just want to say that I know that you know what you're doing when it comes to computers & all of your information is great, so anything I have said in this thread is not a personal attack. In most cases, I only offer advice for things which have worked for me.
So please accept my apologies.
anything I have said in this thread is not a personal attack.
No problem, I didn't take anything as personal so no apology necessary. I don't know why copying the /home directory from its partition to the / partition would not work or why you had a problem with your /usr partition. I copied the entire / filesystem to a new partition on a different drive and it booted after modifying Grub. The only problem I wonder about in the situation described by the OP is resizing and moving data to the left thus changing the sector location where Grub looks for its boot files. This is referenced at the GParted site at the link below, the image under number 5 in the resizing tutorial. I'm not inclined to test this on my machines so we'll wait for the OP to return and see what happened.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.