desktop (wife=moved->linux Mint) MB/sata/grub fun
Warning: there's a couple "fun" ( my definition for "new to me") errors/areas in this LONG email. Months ago i managed to move wife/maureen's desktop environment to Mint(ubuntu underneath). Usage: firefox,gmail (almost nothing else of note. This took some persuading, but desktops are such a fallback these days......another topic for another day) DESKTOP: 10?yr-old Gigabyte motherboard with sata2 ... 4 ports. I only use 1 sata port. I "gave" it a $90/bestbuy 256g SSD Samsung months ago for /dev/sda which ran well+fast of course, turns out the SSD is actually still fine internally. A FEW WEEKS AGO, the "hint" symptom (1 of 2 in this long story) for disk woes was.... (well, it started crashing occasionally, then) ON BOOT, it would sometimes STOP at this prompt initramfs> and with good eyes as the boot-attempt screen(s) would fly by and return to above prompt, I discovered I could fix it with ( actually i did not use the "-y" prompt, but it's the same fix either way) initramfs> fsck -y /dev/sda1 Which would fix a few things, nothing scary for an ex-unix-sysadmin, and initramfs> exit ######## would allow it to boot and be OK for days or so. I taped THAT magic (fsck...) onto a paper mini-sign on the PC for another rainy day. TODAY, the crash was followed by not booting (random results, kernel panics or bios/grub waiting). Worse (not that we care!) near the end of this story, the Patriots gave up cool kickoff return with a lead and 0:04 left. But timing-wise, I'm glad I had a few hours in the living room to debug all this. So I brought the SSD to my other living room desktop (not booting FROM it...) checked SSD with sudo smartcl -a /dev/sda #### AND ITS FINE. I moved the SSD "back" to wife's PC on another SATA port. It's fine! (motherboard deteriorating i guess....but might last another decade). I did run into.... ("created" by moving the disk i assume) .... a boot/warning error NEW TO ME: On initial boot a WARNING ERROR on the early/black screen (similar to where initramfs> shows up..just before that i think) "warning: environment block too small" was actually ignorable (after a few secs, boot marched on to kernel/logo). But I found "it's a thing" and the error appears solvable with first google hit suggesting linux user# sudo rm /boot/grub/grubenv # or "mv" it somewhere.old; 1024 byte file. ...............# sudo grub-editenv /boot/grub/grubenv create and reboot. Seems good now except (new i think; probably from the sata port move?) there's a ONE MINUTE wait on the initial boot with the Mint logo flashing. Final things-to-inspect: (no need to "fix" /etc/fstab which of course does find the disk parts ( just / and swap) by UUID and /var/log/syslog ( I have exported it all, i think the disk errors stopped. ) =========================WRAPUP Haven't solved this learn-all mission yet, but...hope to make it to WLUG THURS EVE and i just thought of a topic. Trick is knowing where to start such a story/tutorial; I'd try to skip over BIOS and sata/disk/etc basics, the fuzzy parts for me involve "initramfs" ... grub ..... and maybe that's it for me. Desired talk/take-home: linux BOOT steps you don't want to know. -doug
Doug Mildram wrote:
ON BOOT, it would sometimes STOP at this prompt
initramfs>
and with good eyes as the boot-attempt screen(s) would fly by and return to above prompt, I discovered I could fix it with ( actually i did not use the "-y" prompt, but it's the same fix either way)
initramfs> fsck -y /dev/sda1
What kernel version are you running? If it is 4.19.x, you may have have hit a data corruption bug in Linux's block layer: https://www.phoronix.com/scan.php?page=news_item&px=Linux-4.19-EXT4-Issue-Likely-MQ My suggestion--rollback to 4.18.x until this is all resolved.
I think stock Linux Mint is still on 4.15. On Mon, Dec 10, 2018 at 2:55 PM Chuck Anderson via WLUG <wlug@lists.wlug.org> wrote:
Doug Mildram wrote:
ON BOOT, it would sometimes STOP at this prompt
initramfs>
and with good eyes as the boot-attempt screen(s) would fly by and return to above prompt, I discovered I could fix it with ( actually i did not use the "-y" prompt, but it's the same fix either way)
initramfs> fsck -y /dev/sda1
What kernel version are you running? If it is 4.19.x, you may have have hit a data corruption bug in Linux's block layer:
https://www.phoronix.com/scan.php?page=news_item&px=Linux-4.19-EXT4-Issue-Likely-MQ
My suggestion--rollback to 4.18.x until this is all resolved. _______________________________________________ WLUG mailing list -- wlug@lists.wlug.org To unsubscribe send an email to wlug-leave@lists.wlug.org
a year or more old... 18.3. Wanted to check it running and run "uname", can't yet... But I have 3 machines bootable to mint 18.3. Seems like a keeper. ......a long term support release which will be supported until 2021 (they say.) Linux Mint 18.3 features Cinnamon 3.6, a Linux kernel 4.10 and an Ubuntu 16.04 package base. doug> thanks for asking! this pc has hardware problems, which arose just sitting in the living room. Old age. "host bus errors"(below)= I'm thinking "sata bus freaking out". NO WORRIES (well actually, shopping time) i will fix or find new something. JUST FOR FUN, /var/log/syslog ( catch-all ) logfile below, while dying on the 2nd sata port I am trying ( may as well try all four.....) Dec 10 21:34:51 xx kernel: [100646.044071] ata2.00: failed command: WRITE DMA Dec 10 21:34:51 xx kernel: [100646.044081] ata2.00: cmd ca/00:08:18:30:ac/00:00:00:00:00/e8 tag 0 dma 4096 out Dec 10 21:34:51 xx kernel: [100646.044081] res 51/84:00:1f:30:ac/84:01:08:00:00/e8 Emask 0x30 (host bus error) Dec 10 21:34:51 xx kernel: [100646.044086] ata2.00: status: { DRDY ERR } Dec 10 21:34:51 xx kernel: [100646.044090] ata2.00: error: { ICRC ABRT } Dec 10 21:34:51 xx kernel: [100646.044101] ata2: soft resetting link Dec 10 21:34:52 xx kernel: [100646.206534] ata2.00: supports DRM functions and may not be fully accessible Dec 10 21:34:52 xx kernel: [100646.209681] ata2.00: supports DRM functions and may not be fully accessible Dec 10 21:34:52 xx kernel: [100646.210266] ata2.00: configured for UDMA/33 Dec 10 21:34:52 xx kernel: [100646.210280] ata2: EH complete Linux Mint 18.3 features Cinnamon 3.6, a Linux kernel 4.10 and an Ubuntu 16.04 package base. On Mon, Dec 10, 2018 at 4:35 PM Richard Klein via WLUG <wlug@lists.wlug.org> wrote:
I think stock Linux Mint is still on 4.15.
On Mon, Dec 10, 2018 at 2:55 PM Chuck Anderson via WLUG < wlug@lists.wlug.org> wrote:
What kernel version are you running? If it is 4.19.x, you may have have hit a data corruption bug in Linux's block layer:
https://www.phoronix.com/scan.php?page=news_item&px=Linux-4.19-EXT4-Issue-Likely-MQ
My suggestion--rollback to 4.18.x until this is all resolved. _______________________________________________ WLUG mailing list -- wlug@lists.wlug.org
participants (3)
-
Chuck Anderson
-
Doug Mildram
-
Richard Klein