Find the answer to your Linux question:
Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 26
You can not just copy/past , I tried. It does not keep the permissions, ect correct. Use 'cpio /cp or likely rsync' will do the job correctly. Followed these directions: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #11
    Linux User
    Join Date
    Dec 2007
    Location
    Idaho USA
    Posts
    362

    You can not just copy/past , I tried. It does not keep the permissions, ect correct.

    Use 'cpio /cp or likely rsync' will do the job correctly.

    Followed these directions:
    Move /home to it’s own partition January 29, 2006 (ref page)
    Yet you now say that you did not , if you need to post a problem again , follow the diretion or say what you did not do. That will let us help you better.

  2. #12
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,049
    When I copy or move home folder information I usually do it booting from a live CD and use cp -a but if I had lots of data in home folders I'd probably use rsync -a. Having said that I can restart a server any time I want, boot from a live CD etc so for me that is the best way ... if I couldn't restart the server then I'd be forced into a different approach

  3. #13
    Just Joined!
    Join Date
    Mar 2010
    Posts
    33

    I apologize

    I didn't tell the whole truth.

    Now I've got things back to where they were.

    Base install - NOTHING ELSE.

    Dual Boot - Windows XP / Natty Narwhal Ubuntu - 11.04

    Partition I want to move home to is sda2.

    The instructions on the page i used didn't work verbatim.

    That's why I improvised.

    What would you recommend I do instead?

    Thanx

    (Will post filesystem contents later today when I get home - for your reference.)

  4. $spacer_open
    $spacer_close
  5. #14
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,049
    Boot from the live CD/USB and post the output of
    Code:
    sudo fdisk -l
    so we can see the partition structure for the hard drive. Then restart the system from the hard drive and post the output of
    Code:
    cat /etc/fstab
    . Also let us know which partition you want to resize to create space for the home partition.

  6. #15
    Just Joined!
    Join Date
    Mar 2010
    Posts
    33

    As requested...

    Sorry for the delay.

    Sudo fdisk -l

    Code:
    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000f0028
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1        5222    41943040   83  Linux
    Partition 1 does not end on cylinder boundary.
    /dev/sda2            5222       10444    41943040   83  Linux
    Partition 2 does not end on cylinder boundary.
    /dev/sda3   *       10445       19457    72396922+   7  HPFS/NTFS
    
    Disk /dev/sdc: 3926 MB, 3926949888 bytes
    121 heads, 62 sectors/track, 1022 cylinders
    Units = cylinders of 7502 * 512 = 3841024 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdc1   *           1        1022     3833491    c  W95 FAT32 (LBA)
    cat /etc/fstab

    Code:
    # /etc/fstab: static file system information.
    #
    # Use 'blkid -o value -s UUID' to print the universally unique identifier
    # for a device; this may be used with UUID= as a more robust way to name
    # devices that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    nodev,noexec,nosuid 0       0
    #/dev/sda2 	/		ext2 	nodev,nosuid 	    0 	    2
    # / was on /dev/sda1 during installation
    UUID=01606ff8-cae6-4f14-891d-b0e0f1c18bda /
    sda2 is the partition I want to use for the new Home. It's set to ext2 / 40GB.

    Linux is on sda1

    WinXP is on sda3

  7. #16
    Linux User
    Join Date
    Dec 2007
    Location
    Idaho USA
    Posts
    362
    need to see one more output;

    sudo blkid

  8. #17
    Just Joined!
    Join Date
    Mar 2010
    Posts
    33

    Followup...

    sudo blkid:

    Code:
    /dev/loop0: TYPE="squashfs" 
    /dev/sda1: UUID="01606ff8-cae6-4f14-891d-b0e0f1c18bda" TYPE="ext4" 
    /dev/sda2: LABEL="newhome" UUID="23e90510-f20f-424c-8da9-73e1807d61ac" TYPE="ext2" 
    /dev/sda3: UUID="48A8202DA8201C46" TYPE="ntfs" 
    /dev/sdc1: UUID="3687-77D7" TYPE="vfat" 
    /dev/sdb1: UUID="79DC-1C55" TYPE="vfat"

  9. #18
    Linux User
    Join Date
    Dec 2007
    Location
    Idaho USA
    Posts
    362
    The basic command will be:
    Code:
    cp -a /old home mount point/* /new home mount point/
    If you are booted into the installed linux, it would be:
    Code:
    cp -a /home/*  /media/sda2/
    where sda2 is mounted in /media. sda2 must be mounted, and check if it is mounted as /media/sda2.
    You can do a 'cat /etc/mtab' will display all mounted devices.

    If booted to a live cd:
    Code:
    cp -a /media/sda1/home/*  /media/sda2/
    Now you must edit /etc/fstab, add
    Code:
    /dev/sda2 /home           ext3    defaults        0       2
    if you wich instead of /dev/sda2 you can use the UUID #.

    Your entrie in fstab for / should have " ext4 errors=remount-ro 0 1
    " added at end.

    Due to some problem I am haveing , my display is all messed up and can not read have of what I am typeing, so could have some errors.

    To verify you are useing the new /home when you reboot. Before you reboot but after the above commands, copy some text file from MS Windows to your old /home/Documents. When you reboot is should be missing.

    There is one more step that should be done , but only after a good reboot to the new /home 'verify by $ cat etc/mtab , is sda2 mounted as /home'. That is from a live cd, delete the containts from /sda1/home, but you do not have to, but it will be takeing up spase.

  10. #19
    Just Joined!
    Join Date
    Mar 2010
    Posts
    33
    Tried two different methods: (from the installed linux)

    cp - a /home/* /media/sda2

    Code:
    cp: cannot create directory `/media/sda2': Permission denied
    sudo cp - a /home/* /media/sda2

    Code:
    cp: cannot stat `/home/administrator/.gvfs': Permission denied

  11. #20
    Just Joined!
    Join Date
    Mar 2010
    Posts
    33
    Here's my media folder with the critical folders:
    Code:
    mint@mint /media $ dir
    
    01606ff8-cae6-4f14-891d-b0e0f1c18bda  79DC-1C55  LXFDVD144  newhome
    
    mint@mint /media $
    I tried instead:

    cp -a 01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/* newhome

    and got:

    Code:
    cp: cannot open `01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/administrator/.xsession-errors.old' for reading: Permission denied
    cp: cannot access `01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/administrator/.gconf': Permission denied
    cp: cannot access `01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/administrator/.gnome2_private': Permission denied
    cp: cannot access `01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/administrator/.compiz': Permission denied
    cp: cannot access `01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/administrator/.adobe': Permission denied
    cp: cannot access `01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/administrator/.cache': Permission denied
    cp: cannot open `01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/administrator/.esd_auth' for reading: Permission denied
    cp: cannot access `01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/administrator/.macromedia': Permission denied
    cp: cannot access `01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/administrator/.gvfs': Permission denied
    cp: cannot access `01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/administrator/.pulse': Permission denied
    cp: cannot open `01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/administrator/.pulse-cookie' for reading: Permission denied
    cp: cannot open `01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/administrator/.ICEauthority' for reading: Permission denied
    cp: cannot open `01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/administrator/.bash_history' for reading: Permission denied
    cp: cannot open `01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/administrator/.local/share/recently-used.xbel' for reading: Permission denied
    cp: cannot access `01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/administrator/.local/share/gvfs-metadata': Permission denied
    cp: cannot access `01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/administrator/.dbus': Permission denied
    cp: cannot access `01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/administrator/.gnome2': Permission denied
    cp: cannot access `01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/administrator/.mozilla': Permission denied
    cp: cannot access `01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/administrator/.config/gtk-2.0': Permission denied
    cp: cannot access `01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/administrator/.config/compiz-1': Permission denied
    cp: cannot access `01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/administrator/.config/dconf': Permission denied
    cp: cannot access `01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/administrator/.config/ibus': Permission denied
    cp: cannot access `01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/administrator/.config/update-notifier': Permission denied
    cp: cannot open `01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/administrator/.config/user-dirs.dirs' for reading: Permission denied
    cp: cannot access `01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/administrator/.config/enchant': Permission denied
    cp: cannot access `01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/administrator/.gconfd': Permission denied
    cp: cannot open `01606ff8-cae6-4f14-891d-b0e0f1c18bda/home/administrator/.xsession-errors' for reading: Permission denied

Page 2 of 3 FirstFirst 1 2 3 LastLast

Posting Permissions

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