You are not logged in.
Hi
Today I decided to install windows alongside my already-existing Arch install, and my Gparted livecd told me that I cannot create more than 4 primary partitions in one hard disk. Since I had used the auto-partition option in the installation, I have one /boot partition , one swap partition, one / partition (EXT4) and one /home partition (EXT4). How can I reduce these to one partition without reinstalling the whole thing and not losing any data? is that even possible? I have tried doing it in the installer itself at the very beginning, but it somehow did not let me...
Thanks in advance
Last edited by ijiboom (2012-05-21 17:35:18)
"Flying is learning how to throw yourself at the ground and miss." Douglas Adams, Life, the universe and everything
Offline
If your root partition is large enough, you should be able to copy your existing /boot and /home to temporary folders on the root partition, then unmount those partitions and name the temporary folders back to /boot and /home. Lastly you comment out or remove the unneeded mountpoints from fstab.
ᶘ ᵒᴥᵒᶅ
Offline
Thanks for the quick answer! I copied all the files from /dev/sda4 (home partition) to /home in /dev/sda3 (my root partition). Same thing for /boot. I then deleted the two first lines in fstab: UUID=39764dba-f44d-4782-8f61-d0ede890d7ad /home ext4 defaults 0 1
UUID=7315375e-461c-4ba8-a928-ccd65fde5faf /boot ext2 defaults 0 1
But I don't know what to remplace them with... I tried booting with that config, but Arch didn't find my /home folder... Good thing I backed up the fstab!
What do I do now?
PS: I didn't delete /dev/sda1 (boot) and /dev/sda4 (home) should I have?
Last edited by ijiboom (2012-05-20 20:10:13)
"Flying is learning how to throw yourself at the ground and miss." Douglas Adams, Life, the universe and everything
Offline
You didn't copy /home and /boot to / when they were mounted did you? Because in that case you may have copied them back to themselves.
ᶘ ᵒᴥᵒᶅ
Offline
No I did it from a recovery Puppy linux USB stick
"Flying is learning how to throw yourself at the ground and miss." Douglas Adams, Life, the universe and everything
Offline
I think I should have deleted the partitions maybe, and kept the two lines in fstab... Would that work?
"Flying is learning how to throw yourself at the ground and miss." Douglas Adams, Life, the universe and everything
Offline
I think I should have deleted the partitions maybe, and kept the two lines in fstab... Would that work?
The idea of separate partitions is that they replace the /boot and /home directories which are by default on your root. So if you copy everything back to there and then stop the separate partitions from being mounted (by commenting them out in fstab), everything should work from your single root partition.
Edit: Oh darn, i forgot you would also have to reinstall grub in that case, sorry... For now, the easiest would probably be to keep /boot like it is on a separate partition. /home should work just fine on your root partition, and if you have enough ram you can easily do without a swap partition.
ᶘ ᵒᴥᵒᶅ
Offline
Now you're saying it… I can't think of an option that creates logic partitions in the AIF.
Offline
It sounds like the auto-install part needs to be changed so it creates atleast /home (possibly also / ) as an extended/logical partition.
Personally i partition manually whenever i install arch, usually outside of AIF.
On-Topic :
- copy your / and /home to an external drive
- delete / and /home partitions
- create a primary partition for windows
- in the remaining free space create 2 logical partitions for / and home
- copy / and /home to their new partitions
- change grub configuration
alternative :
- copy your / and /home to an external drive
- delete swap, / and /home partitions
create 2 primary partitions , 1 for windows 1 for arch
setup arch to use LVM (check wiki) so you can have swap, / and /home on the same partition.
Last edited by Lone_Wolf (2012-05-21 13:38:06)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Ok! Just got it working right now. The mistake I had made was i forgot to chown the home folder. Now the whole OS runs in three partitions (can't be bothered to delete /boot and reinstall grub and stuff...).
"Flying is learning how to throw yourself at the ground and miss." Douglas Adams, Life, the universe and everything
Offline
Ok! Just got it working right now. The mistake I had made was i forgot to chown the home folder. Now the whole OS runs in three partitions (can't be bothered to delete /boot and reinstall grub and stuff...).
Excellent, don't forget to mark your thread solved.
ᶘ ᵒᴥᵒᶅ
Offline