LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-22-2005, 02:59 PM   #1
Lemop
LQ Newbie
 
Registered: Jan 2005
Posts: 5

Rep: Reputation: 0
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
 
Old 01-22-2005, 03:29 PM   #2
otoomet
Member
 
Registered: Oct 2004
Location: Tartu, Ċrhus,Nürnberg, Europe
Distribution: Debian, Ubuntu, Puppy
Posts: 619

Rep: Reputation: 45
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Folder Max Size and Limiting SSH access to home folder. Mefistofeles Linux - General 4 11-26-2005 03:09 PM
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 06:23 PM
Could not open /home/knoppix Reason: /home/knoppix is not a file. slacard Debian 3 09-16-2004 09:36 AM
moving a file to a folder gets error jackstoage Linux - Newbie 3 04-02-2004 11:18 AM
gnome home folder and trash folder ambelos Linux - Software 2 02-24-2004 07:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration