What's the reliable way to find out Hard Disk Information under Ubuntu, after having been booted for several days?
$ uptime 21:18:59 up 15 days, 10:46, 11 users, load average: 1.01, 0.82, 0.65
I know normally the Hard Disk Information can be get from
dmesg, on fresh reboot, but my system has only been up for 15 days, and I've already lost that info.
The FreeBSD Find Out All Installed Hard Disk Information says to check the
/var/run/dmesg.boot file. The Linux Command To Find SATA says to check a log file called
/var/log/messages. But under my Ubuntu I have none of them:
# Run as root, % ls /var/run/dmesg.boot || echo no found ls: cannot access /var/run/dmesg.boot: No such file or directory no found & ls /var/run/dmesg* || echo no found ls: cannot access /var/run/dmesg*: No such file or directory no found % ls /var/log/me* || echo no found ls: cannot access /var/log/me*: No such file or directory no found % lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 15.04 Release: 15.04 Codename: vivid # and I've also checked: % cat /var/log/dmesg (Nothing has been logged yet.) % grep -i ata /var/log/boot.log Starting Increase datagram queue length... [ OK ] Started Increase datagram queue length. Starting Tell Plymouth To Write Out Runtime Data... [ OK ] Started Tell Plymouth To Write Out Runtime Data.
syslog says there is something wrong with my
ata2, however, because Linux/Ubuntu swap disk orders all the times, I want to know exactly which of my 3 drives is