You are not logged in.
Hello, I need help.
I've been messing with Archlinux for several days now making everything work. I finally got around to copy my files from external hd to my laptop.
I quickly ran out of free space and noticed that I had accidentally mounted a partition to /boot not /home during the installation of Archlinux.
My fstab looks like this:
tmpfs /tmp tmpfs nodev,nosuid 0 0
/dev/sda1 / ext4 defaults,relatime 0 1
/dev/sda2 /var reiserfs defaults 0 2
/dev/sda3 swap swap defaults 0 0
/dev/sda4 /boot ext4 defaults,relatime 0 2
I tried to change it to:
tmpfs /tmp tmpfs nodev,nosuid 0 0
/dev/sda1 / ext4 defaults,relatime 0 1
/dev/sda2 /var reiserfs defaults 0 2
/dev/sda3 swap swap defaults 0 0
/dev/sda4 /home ext4 defaults,relatime 0 2
But after reboot I get:
"Waiting for ConsoleKit to register X session" timeout
I login to root and edit fstab back to normal, reboot and everything works again.
So how can I change the mount point of sda4 from /boot to /home. I really don't want to set up everything again from scratch.
Last edited by makk (2011-10-09 18:55:31)
Offline
Let's see,
your boot files reside in sda4.
your home files reside in sda1/home
I think what you have to do is move all boot files from sda4 to sda1/boot,
then move home files from sda1/home to sda4,
then edit /boot/grub/grub.cfg to tell it the kernel is now in sda1/boot rather than in sda4.
Offline
When you did the install without a separate home partition, did you make a normal user? That is, is there content in the 'home' directory on /dev/sda1? If so, when the system boots and tries to mount /dev/sda4 to /home it will probably do weird stuff if that directory is empty. At the least, you'll no longer have the proper directory structure set up for your home directory.
Drop to a terminal (CTRL+ALT+F1), log in as root and confirm that /dev/sda4 is mounted as home by running the mount command. Also check that you see the expected stuff (and have the right permissions) in your home directory: ls -l /home/<username>. Also have a look in /var/log/messages and see if it elaborates on that error message.
Finally, you might consider moving all the /dev/sda4/linux.img etc. stuff to the proper location on the root partition. You'll need to re-setup grub if you do so however which might be annoying if you mess up and arch doesn't boot anymore.
Offline
Wait, first of all, are all the correct files in /boot/ on sda1 as well? You might want to reinstall the kernel to be sure (do this without sda4 being mounted to /boot/ !).
Next, when mounting sda4 as home, you lose the contents of the dir /home/ on sda1, so before mounting sda4 on /home/ you should copy the current contents of your home dir (/home/ on sda1, which is inaccessible when sda4 is mounted there) to the new home dir (sda4).
So what I'd suggest: create a dir /mnt/newhome and change the fstab contents to (mind the last line)
tmpfs /tmp tmpfs nodev,nosuid 0 0
/dev/sda1 / ext4 defaults,relatime 0 1
/dev/sda2 /var reiserfs defaults 0 2
/dev/sda3 swap swap defaults 0 0
/dev/sda4 /mnt/newhome ext4 defaults,relatime 0 2Then, reinstall the kernel and make sure you can still boot.
Next, make sure you have a dir /mnt/newhome/<user>/ for your new home and copy the contents of your current home dir (/home/<user>/) to /mnt/newhome/<user>/
cp -a /home/<user>/* /mnt/newhome/<user>/Then change fstab to
tmpfs /tmp tmpfs nodev,nosuid 0 0
/dev/sda1 / ext4 defaults,relatime 0 1
/dev/sda2 /var reiserfs defaults 0 2
/dev/sda3 swap swap defaults 0 0
/dev/sda4 /home ext4 defaults,relatime 0 2This should give you the exacte same situation as you currently have but with /home on sda4 and /boot on sda1.
Note: the contents of /home/ is still present at sda1. Before you remove it, I'd suggest you make sure you can boot with the new home and make sure everything works. If all's good you can umount /home/ to be able to access the old /home on sda1 (you wont be able to umount /home when you're logged in as a user, so log in as root on a tty) and delete all contents to recover the space on sda1
HTH
Offline
Okay, so I still get the same timeout.
I rebooted and logged in to root. Changed fstab to
tmpfs /tmp tmpfs nodev,nosuid 0 0
/dev/sda1 / ext4 defaults,relatime 0 1
/dev/sda2 /var reiserfs defaults 0 2
/dev/sda3 swap swap defaults 0 0
/dev/sda4 /mnt/newhome ext4 defaults,relatime 0 2
Did:
umount /dev/sda4
pacman -S linux
reboot
mkdir /mnt/newhome/myuser
cp -a /home/myuser/* /mnt/newhome/myuser
Changed fstab to
tmpfs /tmp tmpfs nodev,nosuid 0 0
/dev/sda1 / ext4 defaults,relatime 0 1
/dev/sda2 /var reiserfs defaults 0 2
/dev/sda3 swap swap defaults 0 0
/dev/sda4 /home ext4 defaults,relatime 0 2
Did a reboot and got the same timeout again.
tried to nano /var/log/messages, but the file is empty
Offline
Was sda4 correctly mounted at /mnt/newhome before the copy? Are the files present in <sda4>/home/<user> ?
Something must have gone wrong, since it shouldn't matter where your home is located, as long as it's correctly mounted.
Offline
I think it was. The files are in the home directory. The content of the dev1 /home/user/ and dev4 /home/user/ are the same.
But in dev4 /home/ there are grub and some img files. They are not on dev1 /home/. Maybe something went wrong when reinstalling kernel?
Offline
I use cdm for login manager and openbox, so I tried to login to console insted of openbox and start x from there.
I got the following erroring:
xauth: timeout in locking authority file /home/user/.Xauthority
So it is permissions problem after all?
How can I change the permissions of the home folder to appropriate one?
EDIT:
Okay I changed the permissions of my home folder. Now I get
xauth: timeout in locking authority file //.Xauthority
I tried to change its permissions and delete it. Nothing works.
I have renamed the old /home folder on sda1 to /homeold and mounted sda4 to /home. /home and /homeold have the same contents.
When I unmount sda4 and rename /homeold back to /home the error disappears.
EDIT2:
Maybe it would be more simple to just edit the partition table? Erase sda4, move sda2 and sda3 to the end and resize sda1. So it would be: [/ /boot /home] [/var] [swap].
Would it be safe to do so? Or would this probably mess things up even more.
EDIT3:
I was so frustrated that I just went ahead and edited the partition table. Everythings fine now
Big thanks to everyone here who helped!!!
Last edited by makk (2011-10-09 18:56:16)
Offline