Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Original Poster
Rep:
Good morning .
Will do as you suggest. Just two things for clarity:
1. /dev/sda6 is /home
2. For what it is worth: prior to the start of "ticking" there is a short burst of major activity on the drive, I don't know what happens but I can hear it. Right after it is over ticking starts.
This is trying to narrow down culprits.With /home on /dev/sda6, be sure to get that offline, as if /home is causing it, that narrows it hugely. If /home is the troublespot, you could refine the output with
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Quote:
Originally Posted by IsaacKuo
Skimming through part of this thread...is /home mounted on a spinning hard drive (/dev/sda)? If so, then it could be any number of things related to X and the desktop environment periodically writing to the hard drive. If you have any sort of web browser or numerous other sorts of software running, there will be periodic writes (these generally assist in recovering what you were working on in case of a power failure or software crash).
If you have /home on a spinning hard drive, I think you're just going to have to live with the system writing to /home often. If the noise is annoying to you, put /home on the SSD instead. You can use symlinks to link to the spinning hard drive for stuff which is too big to fit on the SSD.
Although it's annoying, I would recommend nesting those symlinks within a folder so they are not directly in ~. If you don't, then even something as simple as "ls" in bash can access and probably spin up the hard drive (even if just to see whether or not the symlink is broken).
I tend to agree with this.
aditionally. I hadn't twigged that / is also mounted on the same hard drive.
For some reason I had thought this was about mounted but otherwise unused drives making noise. If the drive is used then I would expect it to be spinning and ready.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Original Poster
Rep:
Quote:
Originally Posted by 273
I tend to agree with this.
aditionally. I hadn't twigged that / is also mounted on the same hard drive.
For some reason I had thought this was about mounted but otherwise unused drives making noise. If the drive is used then I would expect it to be spinning and ready.
That is a misunderstanding. / is on /dev/sdc2 on a SSD, while /home is on /dev/sda6 on a spinning disk. The latter is producing the noise (about once every 6 weeks). I want to know what causes it. I don't want writing processes to my SSD the amount of data and general purpose of which I don't understand.
@IsaacKuo & 273: I think the OP's complaint is not about continual accesses, but about noise coming from the drive as in it doing (intermittently) successive seeks, e.g. Track 1; Track 100,000; track 1; track 100,000; etc. The platter spins, and that's not stop/starting.
I'm trying to get a diff of running processes with it misbehaving vs running processes when good. Then we'll have a shortlist of suspects. Any improvements on my strategy to achieve that welcome
@JZL240I-U: Could you temporarily mount /home on one of your other drives? If you had something like
Code:
/dev/sdb3 /home auto <options>
in /etc/fstab and took out /dev/sda6, that would remove it from the equation while the diagnostics were going on. There's no need to modify the original /home. If it cured the problem, it probably was a seek to / followed by a seek to /home; If it MOVED the problem, it's home related
Last edited by business_kid; 11-06-2017 at 02:12 PM.
Oh, I understand but I also think it's incredibly stupid to avoid putting /home on the SSD. The problem could be solved 100% in minutes, rather than trying fruitlessly for months (already!) to track it down when so many processes and applications write to /home. It would be extremely difficult to narrow down which one is the culprit.
Although I do know a very easy way to tell what stuff is being written to in /home/me/ on the fly:
Simply use rsync to make a backup copy of /home/me/ with:
Code:
rsync -vaxAXH /home/me/. /SomewhereOnTheSSD/me/
Run this a second time, and you'll see whatever has been changed between them. You can use the --exclude option to exclude folders or files that are too big to fit in the destination.
If you find some stuff that you don't like being written to on your SSD, then just symlink it to somewhere on the hard drive instead.
Since I use rsync to backup /home a lot (especially for my RAMBOOT systems), I have a good idea what all changes from minute to minute typically. It just isn't very much stuff. It's no big deal to put it on an SSD or even a cheap USB drive.
The disk that has the noise we have chased for months now it appears has / & /home. Moving it purely for the duration of his diagnostics narrows that down, and (after months as you say) is a good thing for diagnostic purposes, would you agree? Let the OP worry about the ideal drive arrangement of his system at a later stage when we have this sorted.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Original Poster
Rep:
Quote:
Originally Posted by business_kid
@IsaacKuo & 273: I think the OP's complaint is not about continual accesses, but about noise coming from the drive as in it doing (intermittently) successive seeks, e.g. Track 1; Track 100,000; track 1; track 100,000; etc. The platter spins, and that's not stop/starting.
Yes.
Quote:
Originally Posted by business_kid
@JZL240I-U: Could you temporarily mount /home on one of your other drives? If you had something like
Code:
/dev/sdb3 /home auto <options>
in /etc/fstab and took out /dev/sda6, that would remove it from the equation while the diagnostics were going on.
No. There is space on the same disk (sda), but then the problem might be disk-related, so...
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
For a disk mounted as /home, with files being written to or read from all the time during use I would expect to hear thje drive making fairly regular reads and writes from different portions of the disk. for a drive in use this sounds normal to me.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Original Poster
Rep:
Quote:
Originally Posted by IsaacKuo
Oh, I understand but I also think it's incredibly stupid to avoid putting /home on the SSD.
That depends on the amount of data in /home versus the size of the SSD -- which is wayyy to small. Thanks for the compliments all the while .
The rest of your ideas are just fine but for one problem: This "ticking" comes in irregular intervals of 6 - 8 weeks or so, so there will be a lot of innocuous changes. Or did you mean to start "rsyncing" twice only when the symptoms are there?
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Original Poster
Rep:
Quote:
Originally Posted by business_kid
The disk that has the noise we have chased for months now it appears has / & /home.
No, no, and no. As stated most recently in post #64 :
Quote:
That is a misunderstanding. / is on /dev/sdc2 on a SSD, while /home is on /dev/sda6 on a spinning disk.
Quote:
Originally Posted by business_kid
Moving it purely for the duration of his diagnostics narrows that down, and (after months as you say) is a good thing for diagnostic purposes, would you agree? Let the OP worry about the ideal drive arrangement of his system at a later stage when we have this sorted.
I just had an idea of how to achieve the new home in spite of the problems outlined above. Let me think on this, I'll be back.
One drawback of this scheme would be that we would have to wait (indefinitely) whether the symptoms recurr or not and never finding out what caused it in the first place.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Original Poster
Rep:
Quote:
Originally Posted by 273
For a disk mounted as /home, with files being written to or read from all the time during use I would expect to hear thje drive making fairly regular reads and writes from different portions of the disk. for a drive in use this sounds normal to me.
It is definitely not normal. Prior to the "ticking" there is a burst of activity on the disk and the "ticking" itself is quite distinct from the normal use of the disk. I can hear it right now, it is really quiet and certainly no pendulum-steady accesses in spaces of less than 1 second occur.
That depends on the amount of data in /home versus the size of the SSD -- which is wayyy to small. Thanks for the compliments all the while .
You're welcome . I mean, I'd apologize but off the top of my head I can't think of a way to apologize which doesn't sound patronizing (You know, "Sorry not sorry" type apologies).
I've made my opinion of the problem and what I see as a simple solution clear and blunt already. Beyond that, I'd rather not be antagonistic.
Quote:
The rest of your ideas are just fine but for one problem: This "ticking" comes in irregular intervals of 6 - 8 weeks or so, so there will be a lot of innocuous changes. Or did you mean to start "rsyncing" twice only when the symptoms are there?
You can do it only when the symptoms are there, but I'd also do it every once in a while because that will give you an idea of what sort of stuff is changing normally on a day to day basis.
Who knows? You might catch something odd changing from one day to the next, indicative of the problem process making noise during a time you're not at the computer (or didn't notice the noise at the time).
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Quote:
Originally Posted by JZL240I-U
It is definitely not normal. Prior to the "ticking" there is a burst of activity on the disk and the "ticking" itself is quite distinct from the normal use of the disk. I can hear it right now, it is really quiet and certainly no pendulum-steady accesses in spaces of less than 1 second occur.
I've just re-read the thread to confirm I was, at first, responding to an "abnormal disk activity" thread.
Since you confirmed that's not the issue then, surely, it's just a hardware quirk or fault?
Computers make all kind of weird noises and most are fine but to check you could now start doing things like watching YouTube videos of failing hard drives (if there are some) and other faults to confirm all is OK with your system.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Original Poster
Rep:
Quote:
Originally Posted by IsaacKuo
... You can do it only when the symptoms are there, but I'd also do it every once in a while because that will give you an idea of what sort of stuff is changing normally on a day to day basis.
Who knows? You might catch something odd changing from one day to the next, indicative of the problem process making noise during a time you're not at the computer (or didn't notice the noise at the time).
Okay, Isaac, the SSD is primed, I found enough (rather static) directories to exclude during rsync from the magnetic disk to the SSD. Now we wait .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.