Can I move my Home Directory to another Disk?

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ส.ค. 2024
  • In this episode of the CyberGizmo we explore the steps to move a home directory from one drive to another. I also discuss other applications for this including moving your configuration from one distro to another, moving configurations from a virtual machine to a real machine.
    rsync script used:
    #!/bin/sh
    rsync -avP --numeric-ids /home/djware /srv
    #rsync -avP --numeric-ids /home/djware djware@yellowice.macknife.info:/srv
    echo 'Done'
    Support me on Patreon: / djware
    Follow me:
    Twitter @djware55
    Facebook: / don.ware.7758
    Discord: / discord
    Music Used in this video
    "NonStop" Kevin MacLeod (incompetech.com)
    Licensed under Creative Commons: By Attribution 3.0 License
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 25

  • @cadddie-ai
    @cadddie-ai 3 ปีที่แล้ว +2

    Genius, it took me so long to find a real Linux wiz, highly appreciate this

  • @abobader
    @abobader 4 ปีที่แล้ว

    Very good video, well done DJ!

    • @CyberGizmo
      @CyberGizmo  4 ปีที่แล้ว

      Thank you Abobader

  • @Appalling68
    @Appalling68 3 ปีที่แล้ว +2

    Hello DJ. Just found your channel thanks to TRG's (TheRealGeek) channel. Can't believe I haven't seen it before. You content looks really interesting so guess I better buckle-up as there appears to be TONS of videos to parse and watch. Btw, I found this particular video (re moving Home folder) totally helpful. Thank you!

    • @CyberGizmo
      @CyberGizmo  3 ปีที่แล้ว

      Welcome and glad you liked the video and TRG is an awesome channel.

  • @alexkuiper1096
    @alexkuiper1096 3 ปีที่แล้ว

    Brilliant - many thanks for that!

  • @SimionChis
    @SimionChis 11 หลายเดือนก่อน

    Thank you! I've just finished the migration using your instructions. Everything looks ok. Small advice ... empty trash before rsync. (Pop!_OS 22.04)

    • @CyberGizmo
      @CyberGizmo  11 หลายเดือนก่อน

      Good suggestion thanks!

  • @MrCCnCMining
    @MrCCnCMining 2 ปีที่แล้ว

    I'd love to see a video for this for Linux Mint 20.3, for a drive that is already formatted and mounted.

  • @ChrisMcDonough
    @ChrisMcDonough 4 ปีที่แล้ว

    TIL what UAS stands for! I love these videos.

    • @CyberGizmo
      @CyberGizmo  4 ปีที่แล้ว

      Glad you like them!

  • @geirha75
    @geirha75 2 หลายเดือนก่อน

    would it be possible to move and delete /home in one go without using another user (pi)?

  • @torokmark7402
    @torokmark7402 8 หลายเดือนก่อน

    Hello! I love your video! However, I want to move the /home from /dev/sda1 to the other SSD, which is /dev/sdb1. Should I follow the same steps as in the video but replace /sda1 with /sdb1?

    • @torokmark7402
      @torokmark7402 8 หลายเดือนก่อน

      I still don't understand one thing, unfortunately. When you run:
      sudo mount /dev/sda1 /srv
      sudo umount /srv
      sudo mount /dev/sda1 /home
      How does it become /home when we initially put the home in /srv? And when we mount /dev/sda1 /home, are we perhaps renaming the directory?

  • @zenmaster24
    @zenmaster24 4 ปีที่แล้ว

    i am curious if linux has a feature where you can have $HOME on an nfs mount, but if the network is uncontactable it caches it and syncs next time it connects?
    windows has this with smb and roaming user profiles and offline files - is that something you can explore?

    • @CyberGizmo
      @CyberGizmo  4 ปีที่แล้ว +2

      Hi Zen, yep Linux has something called FS-Cache, which can be used to cache any file system including NFS, the package is called cachefilesd. The intent of FS-Cache is a bit different from what you describe, it is designed to maximize performance over the network and not to "fix" network issues. I know its available for Fedora, Ubuntu and Debian, I am sure Arch supports it as well. RedHat has a pretty good guide on it should you want to learn more. I might do a video on this in the future if enough of you folks are interested.

    • @CyberGizmo
      @CyberGizmo  4 ปีที่แล้ว +2

      Would also add typically in Linux what you are describing falls under Disconnected, Intermittent and Unreliable networking, there are whole designs around this topic as well and usually involve Software Defined Networking or better known as global unified/domain networks.

    • @zenmaster24
      @zenmaster24 4 ปีที่แล้ว

      @@CyberGizmo what about for a road warrior setup?

    • @CyberGizmo
      @CyberGizmo  4 ปีที่แล้ว +1

      I used to use an rsync mount to the server using a VPN when I travelled alot, an easier way today would be to get the package from Linux Mint called Warpinator (which keeps you directories in sync with the server). Its a .deb package and can be installed on other distros. I might have a more elegant way just need to see if i can find the design documents again.

  • @paulalmquist5683
    @paulalmquist5683 4 ปีที่แล้ว +2

    "Spinning rust drive"?? Never heard that one before. Don't use slang terms as they are often regional and certainly don't help beginners understand the technology. There are so many technical terms in every technical field, often abbreviated or made into acronyms, we need to be precise as we communicate, especially with beginners. I taught IT (programming, unix, Linux sys admin, networking, etc) for 30+ years and always emphasized the correct use of terminology. At my technical college we had 3-4 computer labs which each had 24-30 dual boot workstations, Windows and Linux. All Linux user home directories were on an NFS server. We also used NIS. It worked well. Users could go to any workstation and log in to Linux and get their own home directory.

    • @CyberGizmo
      @CyberGizmo  4 ปีที่แล้ว +13

      Spinning rust is not slang and is not regional, its as common a name for Micro Direct Access Storage Device as hard disk is.
      This channel is technical and for sure would be over the head of a beginner. There are plenty of channels for people starting out, this isn't one of those.

  • @EhSUN37
    @EhSUN37 2 ปีที่แล้ว

    so you are basically saying that there is a huge disadvantage of using linux instead of widows? because in windows you can simply have partitions and move files from one to another and in reinstalling a new OS you just delete one partition. but you are saying here is that the whole Linux dev team failed miserably to understand the point of having partition on a disk? are people so stupid or am i just too smart ? its one or another

    • @CyberGizmo
      @CyberGizmo  2 ปีที่แล้ว +4

      ? have no idea what you are talking about. Maybe wrong video