From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6A574158020 for ; Wed, 12 Oct 2022 03:12:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 20105E0938; Wed, 12 Oct 2022 03:12:52 +0000 (UTC) Received: from barracuda.ebox.ca (barracuda.ebox.ca [96.127.255.19]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B8D87E0928 for ; Wed, 12 Oct 2022 03:12:51 +0000 (UTC) X-ASG-Debug-ID: 1665544364-0c856e13ff11b7b60001-LfjuLa Received: from smtp.ebox.ca (smtp.ebox.ca [96.127.255.82]) by barracuda.ebox.ca with ESMTP id xnryLmnGvW1eaYiw (version=TLSv1 cipher=AES128-SHA bits=128 verify=NO) for ; Tue, 11 Oct 2022 23:12:44 -0400 (EDT) X-Barracuda-Envelope-From: waltdnes@waltdnes.org X-Barracuda-RBL-Trusted-Forwarder: 96.127.255.82 Received: from waltdnes.org (unknown [198.58.217.41]) by smtp.ebox.ca (Postfix) with SMTP id B63F8441B21 for ; Tue, 11 Oct 2022 23:12:43 -0400 (EDT) Received: by waltdnes.org (sSMTP sendmail emulation); Tue, 11 Oct 2022 23:13:37 -0400 X-Barracuda-RBL-IP: 198.58.217.41 X-Barracuda-Effective-Source-IP: 198-58-217-41.on.cable.ebox.net[198.58.217.41] X-Barracuda-Apparent-Source-IP: 198.58.217.41 From: "Walter Dnes" Date: Tue, 11 Oct 2022 23:13:37 -0400 To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] Re: [SOLVED] hibernate... /bin/echo: write error: No such device Message-ID: X-ASG-Orig-Subj: Re: [SOLVED] hibernate... /bin/echo: write error: No such device References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Barracuda-Connect: smtp.ebox.ca[96.127.255.82] X-Barracuda-Start-Time: 1665544364 X-Barracuda-Encrypted: AES128-SHA X-Barracuda-URL: https://96.127.255.19:443/cgi-mod/mark.cgi X-Barracuda-BRTS-Status: 1 X-Virus-Scanned: by bsmtpd at ebox.ca X-Barracuda-Scan-Msg-Size: 2355 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=5.0 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.101359 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Archives-Salt: 4728f0b0-b094-4d43-9be9-9c62a5301ae2 X-Archives-Hash: 6f83998dc2dc5ad3cc2235aab1d964dc On Wed, Jul 27, 2022 at 05:53:08PM -0400, Walter Dnes wrote > One of the last few items on the laptop setup. I emerged hibernate > and copied over the /etc/hibernate/ directory from my desktop. When I > try to hibernate the laptop, I get... > > [thimk][root][~] hibernate > /bin/echo: write error: No such device > > ...with a beep, and the machine comes back. PEBKAC++. Multiple facepalm. I outdid myself here. I got lazy on the laptop install by copying config files from another machine... and it came back to bite me. Here was my /etc/fstab ... /dev/sda1 /boot vfat defaults,noatime 1 2 /dev/sda2 / ext3 noatime,nodiratime,async,user_xattr 0 1 /dev/sda3 none swap sw 0 0 ...but, but, but... this is a used Lenovo laptop, too old for UEFI, with only 75 gigs of disk and I've only got two partitions on it. I corrected fstab to the proper... /dev/sda1 / ext3 noatime,nodiratime,async,user_xattr 0 1 /dev/sda2 none swap sw 0 0 I'm surprised that LILO booted at all with the bad fstab. There were only some error message lines that scrolled by really fast at bootup. Otherwise a perfectly normal bootup. I finally got around to stopping the laptop in mid-bootup tonight, and looking at the error message. Something about fsck.ext3 not finding a magic superblock on /dev/sda2. This prompted me to dig through the system and find the problem. And, oh yeah, hibernate now works with one quirk. I assume hibernate was reading the swap partition name from /etc/fstab for hibernation. Of course it got "write error: No such device" when trying to save to a non-existant swap partition /dev/sda3. The one quirk is that bootup comes from the first menu item in LILO, unless I manually over-ride. I can parse the boot image name from /proc/cmdline and feed it into "lilo -R". Then I'll have to insert it into the hibernate shutdown scripts. -- I've seen things, you people wouldn't believe; Gopher, Netscape with frames, the first Browser Wars. Searching for pages with AltaVista, pop-up windows self-replicating, trying to uninstall RealPlayer. All those moments, will be lost in time like tears in rain... time to die.