How To Move Linux Partitions To A Single Partition
Hey everyone I had a question about paritioning with Linux... I am using a Acer Aspire V5-122P-0889 laptop. I currently have it dual-booted with Windows 8.1 and Arch Linux. I am getting tired of logging into Windows 8.1 and running Kali Linux (kind of laggy) through VirtualBox so I was wanting to Triple-boot my machine.. I tried to create a New Volume in Windows Disk Management tool but it says that I have too many partitions on my HDD and can not create another Volume. When I installed Arch I created 3 partitions; one for '/', one for '/home' and the other was my for swap. I was wanting to see if I could move the /home and/or swap partitions to the '/' partition so that I can install Kali on my machine via my USB stick (no CD drive)... My '/' partition is set to /dev/sda3 , /home partition is set to /dev/sda6 , swap partition is set to /dev/sda5 and for some reason I have an extended partition on /dev/sda4 that I am currently not sure what is being stored there. Anyways, I'd appreciate any help I could get as to how I can put my Arch Linux partitions into 1 big partition or maybe even 2 partitions if needed but the least partitions the better so that I can attempt to install Kali on a newly created partition.
|
Post output of
Quote:
|
Don't use Windows to create Linux partitions. Leave the space unallocated, and Kali should create whatever partitions it needs during install.
From an Arch terminal enter this (as root/sudo) and post all the output Code:
parted /dev/sda "print free" |
1 Attachment(s)
Quote:
I didn't know how much of a difference it would make but I removed the 30GB of unallocated space that I created from my C:\ right before this thread was started just in case.. It shouldn't make much of a difference but here is the updated screenshot of how it originally was. |
1 Attachment(s)
Quote:
I didn't know how much of a difference it would make but I removed the 30GB of unallocated space that I created from my C:\ right before this thread was started just in case.. It shouldn't make much of a difference but here is the updated screenshot of how it originally was. Sorry for the hassel everyone.. |
I would resize sda2 if it's not full
It looks like you have some free space between sda2 & sda3 I would also boot to gpated-live cd/usb Move sda3 to the left Grow sda4 to the left Move sda5 to the left Move sda6 to the left Use unallocated space for new install |
You have 32.4G free space between sda2 & sda3 move it to the other side of sda6
|
Do not touch extended partition! It will remove your swap and home partitions!
Extended patition was created when you installed Arch. |
Quote:
Which would make sda6 sda5 |
Yes, he can move extended partition. When I wrote "do not touch" I meant "do not delete" it, because OP wrote:
Quote:
|
Quote:
|
Quote:
You can now use sda6 to install to, (your present swap partition will be used by your new installation as well as your original distro). Your sda4 partition holds the info about your extended partitions. |
If you move sda3 to the left, your location for boot files will also be moved so the Grub code in the mbr will not be able to find its files, they won't be in the specified location so I expect you will need to chroot into Arch and reinstall Grub.
Is there any reason why you did not use GPT partitioning with this system? If you had, you could simply have shrunk sda2 and created another primary partition there for your install. |
Patitioning schema was messed from the very beginning so it isn't a good idea to keep things like they exists now. Yes home content migth be moved to root partition, but there might be no enough free space to fit home files.
I noticed the OP removed free space before sda3 (but where this free space gone?) and I think partitions completely messed. And now its a good reason to bring everything in order I would suggest the following: 1. Backup Arch root & home filesystems 2. Remove all the partitions except sda1 and sda2 3. Create extended partition for all the rest free space 4. Create 3 partitions inside the extended one so they would be populated with two linux systems plus swap. Do not separate home from root. 5. Move Arch backup to his partition and restore bootloader to get Arch bootable. I would rather reinstall Arch at all. 6. Install Kali at his partition and add it to boot menu. And do not use Windows for any partitioning/deleting/moving operations. Do it from Linux liveCD/USB |
3 Attachment(s)
Quote:
|
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.
Sorry I didn't read the entire thread. |
1 Attachment(s)
Quote:
|
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.
|
Quote:
|
The unallocated space between sda2 & sda3 can be incorporated into the Extended partition it just takes a little manipulatinon to get it done.
|
Quote:
|
Read my instructions in post #6
|
Quote:
|
Quote:
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. |
Quote:
http://forums.gentoo.org/viewtopic-t-901206.html |
Quote:
|
Quote:
http://gparted.org/display-doc.php?n...een-partitions |
All times are GMT -5. The time now is 12:15 AM. |