LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Moving home folder under Knoppix (https://www.linuxquestions.org/questions/linux-newbie-8/moving-home-folder-under-knoppix-280916/)

Lemop 01-22-2005 02:59 PM

Moving home folder under Knoppix
 
Hi,

I am a Linux beginner to say the least.

Installed knoppix 3.7 to HD (knoppix-installer default method)
On the way created
hda1 ext3 5GB
hda2 swap 500Mb
hda3 ext3 remainder of 20Gb

Home appears to be on hda1 and I would like it to appear on hda3


fstab

# /etc/fstab: filesystem table.
#
# filesystem mountpoint type options dump pass
/dev/hda1 / ext3 defaults,errors=remount-ro 0 1

proc /proc proc defaults 0 0
/dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
usbdevfs /proc/bus/usb usbdevfs defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/dvd /dvd iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/cdaudio /cdaudio iso9660 defaults,ro,user,noexec,noauto 0 0
# Added by KNOPPIX
/dev/hda2 none swap defaults 0 0
# Added by KNOPPIX
/dev/hda3 /mnt/hda3 ext3 noauto,users,exec 0 0


Could anyone give me some help to change this and the use of temporary foldrs to arrive at home on hda3

I have a ghost backup to restore so I am reasonably safe I think.

Cheers

otoomet 01-22-2005 03:29 PM

If you have just the default installation and nothing else, the easiest may be to reinstall.

If not, it should be quite straightforward to:

1) clean /dev/hda3

2) copy everything from /home to /dev/hda3 (including hidden files and symlinks).
'cp -a /home /mnt/hda3' may be the right way, but look for manpages and experiment a bit. I have forgotten the exact syntax.

3) edit your fstab(but make backup first):
/dev/hda3 -> /home

4) rename /home to something else (e.g. /home~).

5) reboot

if it works (it worked for me), you may remove the old home.

If not, you can at least recover the old configuration.


All times are GMT -5. The time now is 09:16 PM.