You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Why is root required? Can't I add a user to the "disk" group?
177
+
178
+
A blogger had the same question and opened a ticket on smartmontools. This is
179
+
their response. `smartctl` needs to be run as root.
180
+
181
+
[RFE: add O_RDRW mode for sat/scsi/ata devices](https://www.smartmontools.org/ticket/1064)
182
+
183
+
> According to function `blk_verify_command()` from current kernel sources
184
+
> (see [block/scsi_ioctl.c](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/block/scsi_ioctl.c)),
185
+
> O_RDONLY or O_RDWR make no difference if device was opened as root (or with
186
+
> CAP_SYS_RAWIO).
187
+
>
188
+
> The SCSI commands listed in function `blk_set_cmd_filter_defaults()` show
189
+
> that some of the `smartctl -d scsi` functionality might work with O_RDONLY
190
+
> for non-root users. Some more might work with O_RDWR.
191
+
>
192
+
> But `smartctl -d sat` (to access SATA devices) won't work at all because the
193
+
> SCSI commands ATA_12 and ATA_16
194
+
> (see [scsi_proto.h](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/scsi/scsi_proto.h))
195
+
> are **always blocked for non-root users**.
196
+
197
+
## What about my NVMe drive?
198
+
From the smartmontools FAQ: [My NVMe drive is not in the smartctl/smartd database](https://www.smartmontools.org/wiki/FAQ#MyNVMedriveisnotinthesmartctlsmartddatabase)
199
+
> SCSI/SAS and NVMe drives do not provide ATA/SATA-like SMART Attributes.
200
+
> Therefore the drive database does not contain any entries for these drives.
201
+
> This may change in the future as some drives provide similar info via vendor
202
+
> specific commands (see ticket #870).
203
+
204
+
smartmontools also has a [wiki page for NVMe](https://www.smartmontools.org/wiki/NVMe_Support) devices.
205
+
206
+
## How do I report upstream to smartmontools?
207
+
Check their FAQ: [How to create a bug report](https://www.smartmontools.org/wiki/FAQ#Howtocreateabugreport).
0 commit comments