have you changed the fstab?
to be able to help further it would be nice if you could post putput from(and coment where you want your /home)Code:fdisk -l
then post your fstab.
Hi,
I installed Knoppix 3.4 CeBit (remastered by iso-top) to my HDD and it is really nice . The HDD already had a 5 GB /home partition from a previous installation of another Linux distribution. Unfortunately I did not know about the trick for modifying .knoconf (or whatever it's called) and so the /home partition was not used.
I then found the HOWTO about moving /home to its own partition. I followed all of the steps exactly as described. However, after rebooting I still end up using the old /home rather than the one with its own partition. Running mount also shows that the partition has not been mounted
Is there something missing in the HOWTO or is it no longer able to be done this way I really do not want to reinstall the system now that I have added and configured so many things...
Thanks in advance.
P.S.: in case I missed an answer to this somewhere in this forum, then please excuse me and just point me to the answer.
have you changed the fstab?
to be able to help further it would be nice if you could post putput from(and coment where you want your /home)Code:fdisk -l
then post your fstab.
I had this problem when I ran out of space/wanted to use a new partition for my home directory. I changed fstab, but without going into detail, the change to fstab stopped me from viewing my existing /home directory, i.e. I remounted my new volume over the old /home directory. I puzzled for ages over this and in the end I didn't change fstab but instead I put a soft link in the home directory to the actual directory I wanted to use. (On the other partition).
This works but I bet it's not the correct way to do it! I expect you would have problems as you add new users, but this is no problem for me as I am the only user!
Stu.....
if you mke a folde called home2 and mount the new partition there, i will assume ext3 as filesystem.
as root do a cp -avx /home/* /home2/Code:mount -t ext3 /dev/hdXY /home2
then unmount the /home2 change fstab so that the new home will be mounted under /home.
that is add the line.
replace the XY with the apropiate numbers. this SHOULD work. perhaps aCode:/dev/hdXY /home ext3 defaults 1 2is necesary (not likely) but that should be a quick operation...Code:chown -R username:users /home/username
if you still want your old home, mount that under the users /home/username directory with fstab,
put lineas above change the AB to apropriate value.Code:/dev/hdAB /home/username/oldhome ext3 defaults 1 2
First of all, thanks to everyone for replying!!
To OErjan: I changed fstab and the relevant lines are
/dev/hdc3 / ext3 defaults,errors=remount-ro 0 1
(where the old /home resides), and
/dev/hdc4 /home ext3 defaults 0 0
(where the copy of the old /home resides (made as specified in the HOWTO with
cp -Rp * /mnt/hdc4/
executed as root from the old home directory). In response to your other request, the output of fdisk -l is "Konnte /dev/hdc nicht öffnen" (english: "Could not open /dev/hdc"). I will try your suggestion about creating /home2 etc. shortly and will report the results.
OErjan,
I tried your suggested /home2 approach -- without success . What happened was that I could no longer login as the <username>, but instead got sent back to the login screen. I logged in as root and could mount /dev/hdc4 at /home but apparently the system could not do this.
I'm baffled
Don't be baffled.
First, rename the old home (old_home) will do. Next create a new home directory alongside it.
Next mount the new home temporarily (something like -- adjust to suit your system) mount -t ext3 /dev/hdc? /home
Copy everything you want from /old_home to /home
edit your /etc/fstab. You want a line something like:
/dev/hdc3 /home ext3 auto 0 0
the auto here is crucial -- omit it and you'll have to remount it by hand every time you boot.
Reboot.
Chances are that you'll only be able to log in as root. Don't panic. As root (hell, use Kde to do it) chown home.
Once you're sure everything is OK, grab back a little space by deleting /old_home.
The easiest way is to boot the knoppix CD with knoppix 2 dma then once at the command prompt.
Then edit the /etc/fstab and use this line for new /home.Code:mkfs.ext3 /dev/hdc4 mount /dev/hdc3 /mnt/hdc3 mount /dev/hdc4 /mnt/hdc4 cp -Rp /mnt/hdc3/home/* /mnt/hdc4/
Reboot (shutdown -r now at the knoppix command line) and you should be using the new /home partition.Code:/dev/hdc4 /home ext3 defaults 0 2
Wow!
Intel Core i7-7800x CPU processor sr3nh 3.50ghz 6-Core 8.25mb lga-2066 X series
$57.31
Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc...
$419.99
Intel - Core i9-12900K Desktop Processor 16 (8P+8E) Cores up to 5.2 GHz Unloc...
$619.99
Intel Xeon E5-2697A V4 2.6GHz CPU Processor 16-Core Socket LGA2011 SR2K1
$39.99
Intel Quad Core i3-12100 3.3GHz 12MB LGA1700 12th Gen. CPU Processor SRL62
$46.03
AMD Ryzen 5 4500 6-Core 3.6GHz Socket AM4 65W CPU Desktop Processor
$79.00
Intel Core i5-13500 65w 14 core Raptor Lake Processor
$162.00
AMD Ryzen 5 5600X Desktop Processor (4.6GHz, 6 Cores, Socket AM4)
$119.00
AMD Ryzen 7 7700 Processor (5.3 GHz, 8 Cores, Socket AM5) No Box
$240.00
AMD Ryzen 5 5600 Processor (3.5 GHz, 6 Cores, Socket AM4) - 100-100000927BOX
$100.00