Find the answer to your Linux question:
Results 1 to 5 of 5
Its true. Im dumber than a box of rocks. So I wanted to expand my linux partition. I chop 10 gigs off of my NTFS using the GParted Live CD. ...
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    14

    I am retarded. Plz help.

    Its true. Im dumber than a box of rocks. So I wanted to expand my linux partition. I chop 10 gigs off of my NTFS using the GParted Live CD. Then I went and mounted the new EX3 partition on my home directory. Baisically I cant login using a GUI... I can still access my origional home directory (its now under local....lonc story). Can i just copy this over to the now empty "home" directory? I've tried the following already:
    Code:
    # cp /home/snaxib /local/snaxib/* (snaxib was the main part of my home directory)
    # cp /local/snaxib/* /home/snaxib
    Neither did anything visible, and didnt copy over the stuff in snaxib to the home folder.

  2. #2
    Banned CodeRoot's Avatar
    Join Date
    Sep 2005
    Posts
    567
    I believe the question of the hour is, "What was under '/home' before you mounted the new partition?" -- just 'umount /home' -- whatever was there originally should still be there...

    Code:
    umount /home
    mv /home /home.old
    mount /home   # Assuming '/home' is defined in /etc/fstab as new partition...
    cp -a /home.old/* /home/  # Assuming no 'dot' files in '/home.old/'
    Of course, you could use 'mv' instead of 'cp -a'...

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    if you are moving Home then you should preserve symlinks and permissions too.
    cd to old home folder and execute this
    Code:
    find . -depth -print0 | cpio --null --sparse -pvd  <path_of_new_home_folder>
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Banned CodeRoot's Avatar
    Join Date
    Sep 2005
    Posts
    567
    Quote Originally Posted by devils_casper
    if you are moving Home then you should preserve symlinks and permissions too.
    I believe 'cp -a' will accomplish this quite nicely...

  5. #5
    Just Joined!
    Join Date
    Jan 2007
    Posts
    14
    Ok, I tried this"
    Code:
    find . -depth -print0 | cpio --null --sparse -pvd  <path_of_new_home_folder>
    It copied everything fine. However i still get an error when logging in (in runlevel 7 only)

    this is the error:
    "User's $HOME/.dmrc is being ignored. This prevents the default session and language from being saved. File should be owned by user and wave 644 permissions. User's $HOME directory must be owned by user and not writable by other users"

Posting Permissions

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