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
    Svenska
    arrow-up
    1
    ·
    1 year ago

    ~$ sudo fsck.ext4 /dev/sda1e2fsck 1.46.6 (1-Feb-2023)/dev/sda1 has unsupported feature(s): FEATURE_C12e2fsck: Get a newer version of e2fsck!/dev/sda1: ********** WARNING: Filesystem still has errors **********