I have been unable to figure out how to mount my internal drive which contains all my data without having to enter a password. The drive mounts fine but on every reboot I need to manually re-enter my password. I tried a number of solutions linked to “filesystems” but none worked. There must be a simpler way, right?

My failed solutions follow. Each caused the sytem to fail to boot.

# fileSystems."/data" =

# { device = "/dev/disk/by-uuid/d2a55801-08e9-4bad-b905-4c83d7e76ad0";

# fsType = "ext4";

# };

# fileSystems."/boot" =

# { device = "/dev/disk/by-uuid/AF9C-DF7D";

# fsType = "vfat";

# options = [ "rw" "data=ordered" "relatime" ];

# };

# fileSystems."/mnt/wdblack" = {

# device = "/dev/disk/by-uuid/d2a55801-08e9-4bad-b905-4c83d7e76ad0";

# fsType = "ext4";

# options = [ "defaults" ];

# };

# fileSystems."/mnt/wdblack" = {

# device = "/dev/sda1";

# fsType = "ext4"; # Use the actual filesystem type of /dev/sda1, replace if it's not ext4

# options = [ "defaults" ]; # Add necessary mount options, 'defaults' is a placeholder

  • kalosdaemonOPB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I have edited my example to make it clearer. I mean that I am taken to an emergecy prompt to log in as root instead of to my desktop. There is no disk encryption. I have no lines with `boot.initrd.luks`.