Results 1 to 7 of 7

Thread: BTRFS root install on preformatted partition

  1. #1

    Question BTRFS root install on preformatted partition

    Problem:

    At gdm login, I cannot login as normal user. When I select my username, and type the password, I immediately see the console for less than a second and then again the GDM login screen. It is as if gdm is restarting when I login. But I can login as root.

    Detailed description:

    I made a fresh BTRFS partition, and created a subvolume "opensuse". I made it the default subvolume.

    Launched live media and proceeded to install with separate /boot and /home (both ext4). Chose not to format any partitions. Chose not to install bootloader. Installation went fine.

    After some tweaking the existing grub installation's config, I was sucessfully able to launch opensuse. FIrst run proceeded as usual. Finally greeted me with gdm login.

    Now I experienced what I mentioned in "Problem" section.

    I believe its some permission issue. Or is it some snapshots issue?

    --
    Thanks and Regards
    Auabindo

  2. #2
    Join Date
    Jun 2008
    Location
    UK
    Posts
    5,500

    Default Re: BTRFS root install on preformatted partition

    Quote Originally Posted by aurabindo View Post
    Problem:

    At gdm login, I cannot login as normal user. When I select my username, and type the password, I immediately see the console for less than a second and then again the GDM login screen. It is as if gdm is restarting when I login. But I can login as root.
    It is restarting probably because the session crashed, possibly due to corrupted DE session file(s) that persist from the previous user's session. For example, when this happened here (on a KDM/KDE system), a newly created test user worked ok and you should also try that as a check.

    Recovering the corrupted user session may just be a case of removing the DE's [hidden] user settings file(s). That can work for KDE, but I don't know the those files wrt Gnome. That doesn't always work, as was the case on my KDE based 12.2 system. I eventually cleared the problem by removing a session file that may have been on one of those temporary "tmpfs" partitions that openSUSE places on the HDD. Unfortunately I don't recall the specific filename.

    Launched live media and proceeded to install with separate /boot and /home (both ext4). Chose not to format any partitions. Chose not to install bootloader. Installation went fine.

    After some tweaking the existing grub installation's config, I was sucessfully able to launch opensuse. FIrst run proceeded as usual. Finally greeted me with gdm login.
    Hmm, so you were relying on the old user settings in /home/, leftover in old session files...
    Leap 42.3 (ext4, KDE Plasma 5.8.7) ~ stable
    Manjaro (ext4, Xfce) ~ rolling updates
    Tumbleweed (ext4, KDE Plasma5) ~ managed updates via "Tumbleweed Snapshots" service.

  3. #3
    Join Date
    Jun 2008
    Location
    UK
    Posts
    5,500

    Default Re: BTRFS root install on preformatted partition

    Quote Originally Posted by consused View Post
    I eventually cleared the problem by removing a session file that may have been on one of those temporary "tmpfs" partitions that openSUSE places on the HDD. Unfortunately I don't recall the specific filename.
    One of those "tmpfs" partitions is mounted as /var/run, so you may want to also take a look there, e.g. /var/run/user. Since they are only temporary file systems, you should be able to remove safely with a partitioner (I did), should you need to.
    Leap 42.3 (ext4, KDE Plasma 5.8.7) ~ stable
    Manjaro (ext4, Xfce) ~ rolling updates
    Tumbleweed (ext4, KDE Plasma5) ~ managed updates via "Tumbleweed Snapshots" service.

  4. #4

    Thumbs up Re: BTRFS root install on preformatted partition

    Thank you consused

    After some fails tinkering with the config files you mentioned, I finally decided to reinstall, this time without a separate /home partition, but with separate /boot.
    This time it worked well

  5. #5
    Join Date
    Jun 2008
    Location
    UK
    Posts
    5,500

    Default Re: BTRFS root install on preformatted partition

    Quote Originally Posted by aurabindo View Post
    Thank you consused

    After some fails tinkering with the config files you mentioned, I finally decided to reinstall, this time without a separate /home partition, but with separate /boot.
    This time it worked well
    Unlucky, normally you should be ok with a separate /home. Glad it's ok after the reinstall.

    Assuming you have btrfs installed on root partition and Snapper is operating by default, your integrated /home will now be included in snapshots. To avoid that, you can define /home as a sub-volume and it will be excluded from snapshotting. You can use YaST partitioner for that.
    Leap 42.3 (ext4, KDE Plasma 5.8.7) ~ stable
    Manjaro (ext4, Xfce) ~ rolling updates
    Tumbleweed (ext4, KDE Plasma5) ~ managed updates via "Tumbleweed Snapshots" service.

  6. #6
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    16,288

    Default Re: BTRFS root install on preformatted partition

    AFAIK Grub can not boot to a BTRFS partition. You can have a separate home partition. I think that it is good to have a separate home which gives you much more flexibility on upgrades and and new installs while keeping your personal data.

  7. #7
    Join Date
    Jun 2008
    Location
    UK
    Posts
    5,500

    Default Re: BTRFS root install on preformatted partition

    Quote Originally Posted by gogalthorp View Post
    I think that it is good to have a separate home which gives you much more flexibility on upgrades and and new installs while keeping your personal data.
    The OP had a separate home partition, and after having problems decided on an integrated /home.

    I prefer to use a separate data partition mounted into the integrated /home, thus separating personal data from DE settings. Also, it's a better configuration for multi-booting linux-based systems with shared data. Otherwise you get conflicts with different systems' settings if you try to use a shared home partition.
    Leap 42.3 (ext4, KDE Plasma 5.8.7) ~ stable
    Manjaro (ext4, Xfce) ~ rolling updates
    Tumbleweed (ext4, KDE Plasma5) ~ managed updates via "Tumbleweed Snapshots" service.

Tags for this Thread

Posting Permissions

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