Canop / dysk

A linux utility to get information on filesystems, like df but better
https://dystroy.org/dysk
MIT License
890 stars 25 forks source link

Disks not recognized #72

Closed manfredlotz closed 7 months ago

manfredlotz commented 7 months ago

This is EndeavourOS with kernel 6.6.10-arch1-1

dysk is 2.8.2

Till last week, running dysk I got something like this

┌──────────────────────────────────────────────────────┬───────────┬────┬────┬────────────┬────┬────┬─────────────────────────┐
│                      filesystem                      │   type    │disk│used│    use     │free│size│mount point              │
├──────────────────────────────────────────────────────┼───────────┼────┼────┼────────────┼────┼────┼─────────────────────────┤
│/dev/disk/by-uuid/04cd9169-c3b5-4880-a220-8a061166bf4a│   btrfs   │    │1.6T│   79% ████ │424G│2.0T│/data                    │
│/dev/disk/by-uuid/98fed5f3-cf50-4fbd-85e1-99ecb3e90ea9│   btrfs   │    │791G│   79% ████ │208G│999G│/                        │
│/dev/nvme1n1p1                                        │   vfat    │SSD │932M│   89% ████▌│115M│1.0G│/efi                     │
└──────────────────────────────────────────────────────┴───────────┴────┴────┴────────────┴────┴────┴─────────────────────────┘

Now I only get

┌──────────────────────────────────────────────────────┬───────────┬────┬────┬────────────┬────┬────┬─────────────────────────┐
│                      filesystem                      │   type    │disk│used│    use     │free│size│mount point              │
├──────────────────────────────────────────────────────┼───────────┼────┼────┼────────────┼────┼────┼─────────────────────────┤
│/dev/nvme1n1p1                                        │   vfat    │SSD │932M│   89% ████▌│115M│1.0G│/efi                     │
└──────────────────────────────────────────────────────┴───────────┴────┴────┴────────────┴────┴────┴─────────────────────────┘

When debugging a bit I see this

Mount { info: MountInfo { id: 66, parent: 1, dev: DeviceId { major: 0, minor: 32 }, root: "/@", mount_point: "/", fs: "/dev/disk/by-uuid/98fed5f3-cf50-4fbd-85e1-99ecb3e90ea9", fs_type: "btrfs", bound: false }, fs_label: None, disk: None, stats: Ok(Stats { bsize: 4096, blocks: 243932984, bfree: 53525320, bavail: 50861008, inodes: None }) }

The problem is disk: None. I have no idea what caused that change.

manfredlotz commented 7 months ago

I found that this was a kernel problem

I tested the other kernels and there were kernel updates.

For these kernels dysk is working ok.

Linux hogwart 6.6.10-zen1-1-zen Linux hogwart 6.6.11-1-lts Linux hogwart 6.6.11-2-lts Linux hogwart 6.7.0-arch3-1

Canop commented 7 months ago

Do you know what kernel version seems to have been a problem ? Did you try looking at your disks with tools like df or lsblk ?

manfredlotz commented 7 months ago

The problem was with kernel 6.6.10-arch1-1.

Unfortunately, I forgot to look with lsblk. df was just normal