• Ubuntu home Verzeichnis in Partition verschieben

    From Lothar Leidner@lothar.leidner@web.de to alt.os.linux.ubuntu on Wed Dec 3 15:41:57 2025
    From Newsgroup: alt.os.linux.ubuntu


    System: Dual Boot Windows 11 / Ubuntu 2204 LTS, installed on the same SSD.

    To create more space, I wanted to move the Ubuntu /home directory to its
    own partition on a second hard disk drive (HDD). I followed the Ubuntu Handbook
    https://ubuntuhandbook.org/index.php/2024/08/separate-home-ubuntu/
    #more-47038, copied the original directory to /home_backup, and modified / etc/fstab.

    The result: Ubuntu no longer boots.

    Now I wanted to undo everything, created a boot stick with live Ubuntu 24.04.3, was able to boot with it and access the hard drives, but only in read-only mode. My plan was to copy the backup home directory /home_backup back to /home and comment out the inserted line in /etc/fstab. Then, I thought, everything should work again as it did originally.
    My question: how can I access the partitions in write mode (from Live
    Ubuntu) and thus implement these changes? Moving the /home directory would
    be put on hold for the time being.

    Any help appreciated
    Lothar Leidner
    --- Synchronet 3.21a-Linux NewsLink 1.2
  • From Paul@nospam@needed.invalid to alt.os.linux.ubuntu on Wed Dec 3 15:47:22 2025
    From Newsgroup: alt.os.linux.ubuntu

    On Wed, 12/3/2025 10:41 AM, Lothar Leidner wrote:

    System: Dual Boot Windows 11 / Ubuntu 2204 LTS, installed on the same SSD.

    To create more space, I wanted to move the Ubuntu /home directory to its
    own partition on a second hard disk drive (HDD). I followed the Ubuntu Handbook
    https://ubuntuhandbook.org/index.php/2024/08/separate-home-ubuntu/ #more-47038, copied the original directory to /home_backup, and modified / etc/fstab.

    The result: Ubuntu no longer boots.

    Now I wanted to undo everything, created a boot stick with live Ubuntu 24.04.3, was able to boot with it and access the hard drives, but only in read-only mode. My plan was to copy the backup home directory /home_backup back to /home and comment out the inserted line in /etc/fstab. Then, I thought, everything should work again as it did originally.
    My question: how can I access the partitions in write mode (from Live Ubuntu) and thus implement these changes? Moving the /home directory would be put on hold for the time being.

    Any help appreciated
    Lothar Leidner


    There is a remount option to change from ro to rw.

    https://unix.stackexchange.com/questions/507109/how-to-remount-a-device-in-read-write-mode-which-is-already-mounted-read-only

    sudo mount -o remount,rw /Mountedpartition

    But as the next message below that suggests, a partition
    would not go "ro" purely by chance. It implies the
    partition failed an fsck and you should check dmesg for "hints"
    while the live session is booted. The dmesg may note the problem
    with the initial probe of the filesystem in question.

    sudo dmesg

    I don't think the "simple" recipe to undo the changes is
    broken, but something has happened which has to be resolved
    first.

    *******

    When I do stuff like this, I just image the disk and make
    a safety backup before I start. I have about 3TB of safety
    backups on the 8TB drive right now.

    Paul


    --- Synchronet 3.21a-Linux NewsLink 1.2