Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
smartmontools update [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 832
Location: Cape Town, South Africa

PostPosted: Mon Mar 25, 2024 7:36 am    Post subject: smartmontools update [Solved] Reply with quote

Hi

Portage updated smartmontools , it printed this message which i only saw because it was the last package updated:

Code:

>>> Original instance of package unmerged safely.
 * WARNING: There's already a drive database in '/var/db/smartmontools'!
 * Because we cannot determine if this database is untouched
 * or was modified by the user you have to manually update the
 * drive database:
 *
 * a) Replace '/var/db/smartmontools/drivedb.h' by the database shipped with this
 *    release which can be found in '/usr/share/smartmontools/drivedb.h', i.e.
 *
 *      cp "/usr/share/smartmontools/drivedb.h" "/var/db/smartmontools"
 *
 * b) Run the following command as root:
 *
 *      /usr/sbin/update-smart-drivedb
>>> sys-apps/smartmontools-7.4-r1 merged.


Do I need to follow that instruction or was it autodone?

The file does not look like something I would edit.

Thanks, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram


Last edited by iandoug on Tue Mar 26, 2024 7:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
Banana
Veteran
Veteran


Joined: 21 May 2004
Posts: 1392
Location: Germany

PostPosted: Mon Mar 25, 2024 11:27 am    Post subject: Reply with quote

You need to do it. It said it can not be done automatically.
_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.
Back to top
View user's profile Send private message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 832
Location: Cape Town, South Africa

PostPosted: Mon Mar 25, 2024 12:05 pm    Post subject: Reply with quote

During normal emerges where that package was not last, I would not have seen the message.

It's one of the things that bother me about the Gentoo way.

I have no idea if I made changes to that file when I set up the box a few year ago.

Thanks, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54253
Location: 56N 3W

PostPosted: Mon Mar 25, 2024 12:29 pm    Post subject: Reply with quote

iandoug,

The only reason to change that file is if you have a drive that is not included.
That's rare. You would remember it too.

The idea is that you can customise /var/db/smartmontools and send patches upstream so your drive gets into the next database update.

If you need to ask, do the update. Conversely, if you don't do the update, you probably won't notice as your drives are already there. Check with
Code:
$ sudo smartctl -a /dev/sda
smartctl 7.4 2023-08-01 r5530 [x86_64-linux-6.7.6-gentoo] (local build)
Copyright (C) 2002-23, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Toshiba N300/MN NAS HDD
Device Model:     TOSHIBA HDWG480
Serial Number:    71R0A0NWFA3H
LU WWN Device Id: 5 000039 b08e0f122
Firmware Version: 0601
User Capacity:    8,001,563,222,016 bytes [8.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database 7.3/5577

See the last line of that smartctl fragment.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 832
Location: Cape Town, South Africa

PostPosted: Mon Mar 25, 2024 12:29 pm    Post subject: Reply with quote

I see time on that file is Jan 26 03:03 .... so it would not have been me doing anything with it... presumably an emerge world running overnight.

Ok let me replace it then ....

Thanks, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram


Last edited by iandoug on Mon Mar 25, 2024 3:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
logrusx
Veteran
Veteran


Joined: 22 Feb 2018
Posts: 1539

PostPosted: Mon Mar 25, 2024 2:44 pm    Post subject: Reply with quote

Emerge will always print all such messages at the end of the emerge session, no matter the order of packages. You should only be careful when your session crashes for some reason. You can also check /var/log/emerge-someting.log. I don't remember what that something was but I'm sure it was the log file with the dash in the name.

Regarding of you should follow the instruction, you can skip it and most of the time it'll be probably fine but sometimes this database gets updated so you better do it.

Best Regards,
Georgi
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2963
Location: Edge of marsh USA

PostPosted: Mon Mar 25, 2024 5:00 pm    Post subject: Reply with quote

Be diligent about reading through messages in /var/log/portage/elog (default location), and one won't miss important emerge messages.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2963
Location: Edge of marsh USA

PostPosted: Tue Mar 26, 2024 7:13 pm    Post subject: Reply with quote

Regarding reading the emerge elog messages. There is a nice little gui app for reading these messages.
Code:
$ eix elogviewer
[I] app-portage/elogviewer
     Available versions:  3.2 {PYTHON_SINGLE_TARGET="python3_10 python3_11"}
     Installed versions:  3.2(06:36:31 PM 05/02/2023)(PYTHON_SINGLE_TARGET="python3_11 -python3_10")
     Homepage:            https://github.com/Synss/elogviewer
     Description:         Elog viewer for Gentoo

I always forget to use the gui, but just read them from the bash shell.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
iandoug
l33t
l33t


Joined: 11 Feb 2005
Posts: 832
Location: Cape Town, South Africa

PostPosted: Tue Mar 26, 2024 7:22 pm    Post subject: Reply with quote

figueroa wrote:
Be diligent about reading through messages in /var/log/portage/elog (default location), and one won't miss important emerge messages.


I did not know that log existed.

A while back, while pondering the issue of messages flying past, I thought that such a log SHOULD exist, and wondered if I should suggest it ...

Perhaps a message at the end of emerges would enlighten other ignorants like me... :-)

Thanks, Ian
_________________
Asus X570-PRO, Ryzen 7 5800X, GeForce GTX 1650, 32 GB RAM | Asus Sabertooth P990, AMD FX-8150, GeForce GTX 560, 16GB Ram
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2968

PostPosted: Wed Mar 27, 2024 1:14 am    Post subject: Reply with quote

iandoug wrote:

A while back, while pondering the issue of messages flying past,


I run emerge --quiet always, this is not an issue as messages from all packages are displayed after emerge completes.
The default level of output should do likewise.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum