I modified fstab to have /home in separate partition (didn't work)
My setup (fdisk -l):
Code:
Disk /dev/sda: 250.1 GB, 250058268160 bytes, 488395055 sectors Also my fstab file (I ADDED THE LAST TWO LINES) IF i COMMENT OUT THE LAST TWO LINES MY SYSTEM WORKS FINE "i'm not yelling ;)" Code:
# I really, REALLY would like to have /home and /usr on a separate partition, (please don't call me weird, but I would like to encrypt /home and /bin. Maybe not /bin but definately /home!) If it helps I did this: sda1 (primary boot/grub ext4) sda2 (primary swap/type82) sda3 (primary Arch ext4) sda4 (extended) sda5 (logical ext4) sda6 (logical ext4) And yes I mounted sda5 and sda6 to copy all contents from /home and /usr to the mount point, added lines to fstab, and rebooted (forgot to unmount but whatever); upon reboot I got grub to load, I selected Arch, and my screen tuned to static/fuzz/colors I was able to put the Arch instillation disk and mount sda3 and enter the root environment, comment-out the lines I added and it works as normal upon reboot (of course /home and /usr just on sda3 also and not where I wish they were :( ) I have tried to read-up on the arch-wiki and forums, and its tough switching from windows to linux but ive managed to install arch and figure out most things but this is the only thing in my way now... Thanks for your help! |
Did you use cp or cp -a when copying
|
Adding it to fstab should be the last step, only after it's been verified to work.
To migrate /home onto a separate drive/partition: 1) Log out of your user 2) Use one of the Ctrl+Alt+F# TTYs to log in as root 3) Verify that NO users are logged in with "w" 4) mount sda5 to a temporary location 4) rsync -a /home to your mount point for sda5 5) Move /home to a backup (/home.bak for instance) 6) Make an empty /home directory for your new mount 7) Unmount sda5 and re-mount it at /home 8) Make sure everything in /home looks correct (eg: make sure everything isn't located in /home/home/, which is indicative of bad syntax in the rsync command) 9) Try and log in as a regular user 10a) If successful, commit the mount to fstab, restart, and test it again 10b) If unsuccessful, switch back to your root TTY and check the logs to see why. |
Quote:
Did I miss what the actual error was? regardless, your entry in /etc/fstab looks more or less correct. (running in realtime is a little safer, but significantly slower) and there is nothing wrong with running /home or /usr on separate partitions, but why do you want to encrypt /bin? I would remove the changes from fstab. check to see that you can mount your partitions manually. Make sure the permissions are correct. when copying archives like that you should use "cp -a" "install" or "dd" |
Have you read the relevant paragraph in the ArchWiki about using a separate /usr? https://wiki.archlinux.org/index.php...tioning#.2Fusr
A modification of your initrd is needed to get that running. |
TobiSGD: is that Arch specific, or has arch moved all /bin and /sbin files to /usr/bin & /usr/sbin? My initrd file has libraries & modules in usr/ without a separate /usr partition.
|
Quote:
As an aside, whenever screwing around with fstab, run a "mount -a" command before you reboot. It'll tell you if you messed up. Most of the time - I suspect it wouldn't have helped in this case. |
Quote:
|
I wanted this to go smooth so I actually deleted all partitions and re-installed arch from scratch, and at this point there isnt even a gui (xserver/xorg/kde/kdm...).
After reading your posts im not going to worry about /usr and will only be focusing on moving /home to sda5 I am able to mount sda5 and at this point there isnt anything in my /home dir b/c its a fresh arch install for now. (nothing to copy yet) But I think im wayyy in over my head I dont really know how this works (like even if it does work will I have to mount it? or does fstab auto mount and redirect all /home to the new home in sda5) Could I delete /home in sda3 and put a symbolic /home that really points to a mounted sda5? |
You don't delete the /home directory. It's where the partition is mounted on. It would be better to rename it and create a new one, when moving /home. Starting from scratch, you don't need to do it. An advantage of having /home on it's own partition is to be able to reinstall without reformatting the old /home.
|
All times are GMT -5. The time now is 05:12 PM. |