Score:0

Should I attempt a manual disk check after a hard reboot?

gh flag

This is a general question when using Ubuntu but I am using 20.04 Budgie Desktop on an HP Pavilion laptop. I only have 8GB RAM and so occasionally I need to do a hard reboot (i.e. hold down the power button) because the graphics I am working with have overloaded the RAM; typically it happens when I'm dealing with large Inkscape documents with >100k objects. I was just wondering if it's a good idea to force fsck (as in this post) or does the system check disk health automatically?

Thanks for any advice,

Jeremy

FedKad avatar
cn flag
Although I very very rarely hard boot my notebook, I have made that setup on my system to check my disks during boot every 10 days or so. Btw, It takes less than 2 seconds to check a healthy disk (SSD). However, you should avoid hard boots as much as possible; if you cannot increase RAM, at least you can create a large "swap file" assuming that you have an SSD.
oldfred avatar
cn flag
Try to avoid hard shutdowns. If possible you can do this REISUB: https://askubuntu.com/questions/926461/whats-the-difference-between-the-magic-reisub-reset-and-holding-down-the-power & https://askubuntu.com/questions/11002/alt-sysrq-reisub-doesnt-reboot-my-laptop/334292#334292 Newer systems now require an update to config to have it fully working. `sudo nano /etc/sysctl.d/10-magic-sysrq.conf` Then change the number in line 26 from 176 to 244 i.e. kernel.sysrq = 244
waltinator avatar
it flag
If you create and use swap, your system is less likely to fail in this way. Use `free` to see. Read `man free mkswap swapon`.
JJGabe avatar
gh flag
Thank you all for the assistance. Unfortunately I do not have a solid-state drive so while I could increase the swap since I have more than enough memory, I wasn't sure how effective that would be. My understanding is that processes that aren't actively using the RAM at the time would be sent to the swap but if I'm actively editing in Inkscape, for example, all the information would need to stay in the regular memory. Does that sound right?
heynnema avatar
ru flag
@oldfred re; *"Newer systems now require an update to config to have it fully working"*... please define "newer systems". Do you mean newer hardware, or newer version of Ubuntu? Why the value change?
oldfred avatar
cn flag
Do not know when it changed. REISUB used to always work. Then saw posts that said only R & B worked. Then saw setting to change it. Somewhere with systemD or start of use of systemD seemed to be the change. So not sure what versions of Ubuntu need setting other than newer systems. https://en.wikipedia.org/wiki/Magic_SysRq_key
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.