#merge / and /home partitions
1275 messages · Page 2 of 2 (latest)
Mount the root partition and the home partition, move files over
Then delete every partition other than that which you recreated to hold the files you need
Well what's the problem
the problem is i literally cant boot
What happens when you boot
when i try booting arch, i just get put into a blank CLI
Did you regenerate your grub config after fucking with your partitions?
yea
So you had chroot'd into your install from the arch USB and ran grub-mkconfig -o /boot/grub/grub.cfg?
i ran this:
grub-mkconfig -o /boot/grub/grub.cfg
yeah
exactly
the guy that was helping me out, he was very persistent but we both just couldnt figure it out
it was 95% him im going to be real
he basically just said it'd be easier to just reinstall the OS, while keeping my actual files
so my /home and whatnot
Then do that
Use the smallest partition possible to hold all the data you need to keep, then reinstall the OS and just ignore that partition
I can get your data secured in a partition but then at that point you'd just follow the arch install guide
show me the output of lsblk
Are you trying to save like everything in /home/yourname or /home/yourname/.config or what?
mount your p3 partition
cd into /mnt/home, then run ls -lh
Should tell you how big your user home directory is
what's inside of just /mnt?
Oh I see, well it's showing your home directory is 4 kilobytes, cd into /mnt/home/home and make sure your shit is actually in there
maybe it's kilobits idk one way or the other but nonetheless, that's barely any data
Okay, run this on your first (boot) partition and let me know if it complains
mkfs.ext4 /dev/yourbootpartition
yep
We're going to convert your existing boot partition into a filesystem we can move your home directory into
It'll wipe your boot partition but you'll recreate that during the reinstall so it shouldn't matter
okay gotcha
i think thats what the previous guy that was helping me wanted me to do as well
its saying nvme0n1p1 contains a vfat file system, proceed anyway?
i hit yes?
yep
done
then mount partition 1 to /mnt/backup or something
yeah, mkdir /mnt/backup then mount /dev/partition1whatever /mnt/backup
mkdir /mnt/backup
mount /dev/nvme0n1p1 /mnt/backup
yep
okay done
now copy and paste your /mnt/home/home/marcial directory to the /mnt/backup
What do they say
run ls on /mnt/backup
Hm okay we'll just delete the partition and recreate it, presumably it previously being the fat32 boot partition is causing problems
alright
first unmount /mnt/backup
done
then sudo fdisk /dev/nvme0n1
once thats up type p just to make sure the first partition there is displayed as the 512mb boot partition
done, but i got a warning that the disk is currently in use and that --repartitioning is probably a bad idea
that's fine it's because your bigboy partition is still mounted
alright, now hit n
should default to partition number 1 but if it doesn't put in 1
okay
accept defaults for the first and last sectors
alright
then run p again and take a pic
yes
alright now put w
done
then rerun sudo mkfs.ext4 /dev/nvme0n1p1
done
okay, now try to remount it to /mnt/backup and copy and paste again
Okay then your shit is bigger than 4k and my understanding of ls needs revamped
go back into fdisk
fdisk what
same nvme device
Delete partition 1 and partition 2 then run w
Once you done with that we'll recheck size of your home directory since I'm stupid
run du -sh /mnt/home/home/marcial or whatever your username was
2.2g
Okay, fdisk into /dev/nvme0n1 again
okay
partition number 1, first sector default, last sector 3G
am i
Creating a new partition
did you do uppercase
okay, now run w to commit those changes
okay
then once more run mkfs.ext4 /dev/nvme0n1p1
i unmount first right
yeah
I had forgotten about the whole mounting situation there; assumed it was unmounted
yep just do yes
Okay, for sanity sake run lsblk again and make sure you now have partition 1 showing as 3G
dunno, may just still be referencing old data we'll try to mount and move files over anyways
worst taht'll happen is no space errors
remoute partition 1 to /mnt/backup and rty to copy over the /mnt/home/home/marcial folder again
alright
oh
I see why
fdisk didn't actually make change because the partition was mounted
oh well i alr rebooted my archiso
well I think it actually did make change but the warnign said you'd need to reboot
oh okay
lsblk should hopefully see 3G now
as soon as its done loading ill do lsblk
yeah
YES
its 3g
okay what is it that i run
run lsblk -o PATH,FSTYPE and let me know whether that first partition shows as ext4
p1 is ext4
okay, try to move over your user home directory again
you'll need to remount
maybe recreate the /mnt directories
yep
you'll need to recreate the backup directory
archiso isn't persistent so any directories you make are wiped on reboot
so what do i do then
mkdir /mnt/backup
mkdir /mnt/home
are you doing mount nvme0n1p1 or mount /dev/nvme0n1p1
im doing mount nvme0n1p1 /mnt/backup
you need the latter, /dev/nvme0n1p1 is the path to that partition
okay gotcha
done
i ran
mount /dev/nvme0n1p1 /mnt/backup
sorry man this mounting shit gets so confusing to me, i rarely have had to do it
okay, run the same thing for p3 to /mnt/home
done
now try again copying the marcial home folder from /mnt/home to /mnt/backup
no space left on device
dude should i just wipe my entire drive and reinstall arch at this point
that isnt solving the problem but holy shit
im genuinely losing my mind
Yeah idk how / why your home directory is reporting 2.3G but can't be moved onto a partition 3GB in size
for shits and giggles unmount /mnt/backup
alr
then run mount /dev/sda1 /mnt/backup
okay I was hoping you could maybe use a piece of that thumbdrive
Yeah dunno, could try to use fdisk and make that partition bigger to see if that helps
You have 20GB to work with but whatever the size of the partition ends up being, is how much unusable space you'll have on it after you reinstall arch
So that's why I was shooting for as small as necessary, since you won't be able to utilize that partition's worth of space after all is said and done
but like
i just dont understand why it doesnt think theres enough space
maybe we make it 3.1
then 3.2
until it works
lol
idk
I'd go up by a gig at a time
alright so what do i do
fdisk nvme0n1
right
and then
just w
default start
and just keep going up and up until it works
and like lets say i were to make it an absurdly high number
like 30gb idk
that space i wont be able to take back?
Yeah plus you don't have 30g available
The available space is 512MB from the original boot partition + 20GB from the original root partition
Yep
Delete then remake with a larger size
Then rerun mkfs ext4 command so it creates a new filesystem that takes up the new partition size
Yeah always say yes
Just FYI you'll need to unmount prior to and remount after mucking with the partition
If you didn't do it this time around then rebooting the machine again will update everything
still no space
what do you mean unmount and remount though
so before i mess with it
i would just do
Umount /mnt/backup
in this order:
umount /mnt/backup
fdisk the changes
mount /dev/nvme0n1p3 /mnt/home
reboot
repeat
Idk what's goin on there though maybe toss something in #quick-questions
Say you're trying to make a partition to backup data into but you're getting no space even though the partition is bigger than the directory
will do