Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Moving /home

  1. #1
    Junior Member
    Join Date
    Apr 2004
    Location
    Germany
    Posts
    7

    Moving /home

    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.

  2. #2
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    have you changed the fstab?
    to be able to help further it would be nice if you could post putput from
    Code:
    fdisk -l
    (and coment where you want your /home)
    then post your fstab.

  3. #3
    Senior Member registered user
    Join Date
    Oct 2003
    Location
    Midlands, UK
    Posts
    145
    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.....

  4. #4
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    if you mke a folde called home2 and mount the new partition there, i will assume ext3 as filesystem.
    Code:
    mount -t ext3 /dev/hdXY /home2
    as root do a cp -avx /home/* /home2/
    then unmount the /home2 change fstab so that the new home will be mounted under /home.
    that is add the line.
    Code:
     /dev/hdXY /home ext3 defaults 1 2
    replace the XY with the apropiate numbers. this SHOULD work. perhaps a
    Code:
    chown -R username:users /home/username
    is necesary (not likely) but that should be a quick operation...

  5. #5
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    if you still want your old home, mount that under the users /home/username directory with fstab,
    put line
    Code:
    /dev/hdAB /home/username/oldhome ext3 defaults 1 2
    as above change the AB to apropriate value.

  6. #6
    Junior Member
    Join Date
    Apr 2004
    Location
    Germany
    Posts
    7
    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.

  7. #7
    Junior Member
    Join Date
    Apr 2004
    Location
    Germany
    Posts
    7

    Nothing worked

    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

  8. #8
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929
    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.

  9. #9
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479
    The easiest way is to boot the knoppix CD with knoppix 2 dma then once at the command prompt.

    Code:
    mkfs.ext3 /dev/hdc4
    mount /dev/hdc3 /mnt/hdc3
    mount /dev/hdc4 /mnt/hdc4
    cp -Rp /mnt/hdc3/home/* /mnt/hdc4/
    Then edit the /etc/fstab and use this line for new /home.

    Code:
    /dev/hdc4       /home       ext3            defaults        0       2
    Reboot (shutdown -r now at the knoppix command line) and you should be using the new /home partition.

  10. #10
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929
    Wow!


Page 1 of 2 12 LastLast

Similar Threads

  1. Moving "HOME" and "VAR" -- AND-- GUI i
    By radnor in forum Hdd Install / Debian / Apt
    Replies: 8
    Last Post: 03-17-2005, 02:58 PM
  2. moving to 3.4
    By firebyrd10 in forum General Support
    Replies: 1
    Last Post: 05-28-2004, 01:09 AM
  3. Moving up from 3.3 to 3.4
    By liebrand in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 04-20-2004, 04:28 PM
  4. Moving my home directory to another partition?
    By stukennedyuk in forum Hdd Install / Debian / Apt
    Replies: 5
    Last Post: 02-13-2004, 02:55 PM
  5. Moving server
    By eadz in forum The Lounge
    Replies: 6
    Last Post: 01-12-2003, 02:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


NEW DELL OEM WDX0R FW8KR T2JX4 Y3F7Y 42WH Battery 5567 5568 5368 7569 picture

NEW DELL OEM WDX0R FW8KR T2JX4 Y3F7Y 42WH Battery 5567 5568 5368 7569

$24.65



NEW OEM 90W For Dell Thunderbolt 3 USB-C Type C Adapter Charger LA90PM170 0TDK33 picture

NEW OEM 90W For Dell Thunderbolt 3 USB-C Type C Adapter Charger LA90PM170 0TDK33

$24.99



OEM 130W USB-C Type-C Charger for Dell XPS 15 9500 9570 9575 17 9700 DA130PM170 picture

OEM 130W USB-C Type-C Charger for Dell XPS 15 9500 9570 9575 17 9700 DA130PM170

$35.88



NEW OEM Dell Inspiron 14 5406  P126G Laptop Battery 11.25V 40Wh JK6Y6  CF5RH picture

NEW OEM Dell Inspiron 14 5406 P126G Laptop Battery 11.25V 40Wh JK6Y6 CF5RH

$37.00



OEM Dell 65W Type C Laptop Charger USB C Power Adapter 02YK0F Latitude XPS Venu picture

OEM Dell 65W Type C Laptop Charger USB C Power Adapter 02YK0F Latitude XPS Venu

$19.99



OEM Dell 65W USB-C Type C HA65NM170 Laptop Ac Power Adapter Charger XPS Latitude picture

OEM Dell 65W USB-C Type C HA65NM170 Laptop Ac Power Adapter Charger XPS Latitude

$19.59



Genuine Dell OEM 19.5V 90W AC Power Adapter Charger Precision XPS SmallTip 4.5mm picture

Genuine Dell OEM 19.5V 90W AC Power Adapter Charger Precision XPS SmallTip 4.5mm

$11.99



Dell OEM Chromebook 3110 2-in-1 Web Camera Replacement 2 Mic XYXJ2 picture

Dell OEM Chromebook 3110 2-in-1 Web Camera Replacement 2 Mic XYXJ2

$9.95



Genuine OEM DELL  latitude 12,  I/O Module For Rugged Extreme Tablet ,7202, 7220 picture

Genuine OEM DELL  latitude 12, I/O Module For Rugged Extreme Tablet ,7202, 7220

$59.00



OEM 130W Power Adapter Charger For Dell XPS 15 9530 9550 9560 9570 7590 06TTY6 picture

OEM 130W Power Adapter Charger For Dell XPS 15 9530 9550 9560 9570 7590 06TTY6

$28.99