From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 8189 invoked from network); 7 Oct 2022 11:46:20 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 7 Oct 2022 11:46:20 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1665143180; b=ivkBKFN5O9vcv2VRXYhiA8bfBcemptCK0JIkh0Trs2H2pvZs10ZbVDQ/4vxCqeYRnKTf3SHtDX lf0sla+u0tu8FLpNDQwqk3vEIkhusBozRsTHk8dAroqUR6b7R+mmbI5uQo4EBSd3Ob9gDK5x4+ xn1vNN+qHrof06VNADqeDNSc2NYLTB1lscKId0vOYZ3SQKMdadjRQAAyhUdcbJgrKBvhSsct6R EGOpJdHuLeu6U0hdHekER2ujKwNgwfCG8JmVR7YkSFWiA9y2WYTHWCM70tzWFXBucMDZZ7EWQ3 aK3nlfi9gQIB5SbMf4IjRIzpZ6xsf97pibNxKhplU5K8Eg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f52.google.com) smtp.remote-ip=209.85.208.52; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1665143180; bh=AJUzRc5iC9G3VQvN9esKQhDocNaALwkGUxZkZybG9sU=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:References: In-Reply-To:MIME-Version:DKIM-Signature:DKIM-Signature; b=Q1tyeFMYus8a5q9rVgZ3wR/7zjgtNtLkA74fmURF9+qhvQt7lv8hctTGSIcfUwJu2oEZiZhDmk M4RCEDQeDXmRo5pI38hRErauEBhU7qKpcRQIcvsYMzDARqUKDrYgFyXoOK/2FNN6ViCfYs4QkJ k/FEyGVyVUUyMb1LTaktdRIeByJ0o74VyMy6cfMYPfIEufb7tgsfD1Z8poXoVhSarxcaBrJ4oQ 2HJZk6IO3U0QbqbETHTVZeeD2LOLZeXmuHNYRW9Dfqngf3Sizs20zfcSbwVqJywX4t/tOWaeym UHz/JBHP9YLm6i70I0Kbq+YrQ9Fve51+Z7v7E11f5KPq8Q==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:References:In-Reply-To:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=wrwFm6VaQczvIy6mA7lwaIldN58ouPTfgm0JKTfiJQo=; b=NhUcoDCH3Yww5LiZI3hTUlFJgC pUAE9N/RX2FqVe3tLZ5reeFHykuJaslb0Rs5x09JBTtiqgxS6Wtm8KYb9beLAUUO+4cgcMuM60u4w UbjFgFpQ1+8NCKISGTEF/PwA7MuwV72uRm31uZC1wjdEKMlq77NKNP+kuNBA+Mtwfv3ne6kyfp58c 7AftUZhRhH0JxdxIMPLWmGmGtMCzToq/Ykj8ll1nagxuEhxrVjh1hcgIO7UMWKi/bKGhWRxClRErz Pn1EEnI000NyFryqZh+I+S+i5w8fPVmTNLBbqFHxFzV29DHP/g9LBn5bBu6+eAdzH/4Be5cjAZFhe 14OLMBow==; Received: from authenticated user by zero.zsh.org with local id 1oglo2-0002WN-56; Fri, 07 Oct 2022 11:46:18 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f52.google.com) smtp.remote-ip=209.85.208.52; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-ed1-f52.google.com ([209.85.208.52]:40550) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oglnB-0001ox-BD; Fri, 07 Oct 2022 11:45:25 +0000 Received: by mail-ed1-f52.google.com with SMTP id x59so6655596ede.7 for ; Fri, 07 Oct 2022 04:45:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=wrwFm6VaQczvIy6mA7lwaIldN58ouPTfgm0JKTfiJQo=; b=YRsr7m2mxVLUQp4fQm6co/y9ezeExzFssa2nmWliybe69Sr52CGs2FfRr4zxUVs5UG 61A13I0giPcA7Ht/WvQINS1zzyNVeD87rAvih11oWImg9OGNQELcHWnInaQmCev8EFvE rDMnG8lx3g9vb2vxh+swZkGlabBWFwZi9DEgpWPU+KtEL2On7Z9pjWs49imrj99OmiQx gCuF5lNz0+tQdiQd8Ktl18coVdzt5XbtHi5Mm2OnBkDm/zWuoxocj55i9GIUR2xBHN4I GuL57ijB22Ij1QC6huNHcOOQBXFCKFQSQVaW469V8mL4Qvg0f4NyimWEuBlqVOkjAc4y bRkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:references:in-reply-to:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wrwFm6VaQczvIy6mA7lwaIldN58ouPTfgm0JKTfiJQo=; b=PSxP/fgPH/jTb5JGMBT+Uheq2qbAEbu8z8fDAcFU2xYSmVUpKHyhEoU7YA4pzl3fA0 ZI4nA3Qq5JkaxbRCgA6yDUpSrb+ifNZGVculE8J3ZKsMWxUUd5xVOzE7ic3b03NWe9Sz hWcAEdS6MK7FleRPeF11rz8SQ/dHFMmp0gWkuzG/QSTcQ5ZGspXMNECZlUDlCj1IHmO9 V8xRY8Rj1Ktv5I42LQYLIrTlNsysq4uZ6qdfO3FOuSRdKPN0cQOijF+hrRfsQi7x03xe Fvd10n1mmjkx9X282Izj38LDPhifADqX/L9YPYlXowC+KT87m6bvk7dMAygCbaFzWB+L EF/w== X-Gm-Message-State: ACrzQf0J7m6lao+7UK/OLl/lUEpzjDgUsXzMTFtX43+APCENXO7HqnVq SkFDMJeAUNXDEeZBEbOtM2cpAQ8pyFGt/40FL5K0C4Ze X-Google-Smtp-Source: AMsMyM7ub7OX+zSxDipHjD/hDVfqabiL7uqY/6RKBHgdQ401fRcIXhHF6bR0gXdKHU9MH6cJE3cjZnXgEZiMyfeUlCw= X-Received: by 2002:a05:6402:142:b0:458:5d74:f4f4 with SMTP id s2-20020a056402014200b004585d74f4f4mr4060313edu.44.1665143124520; Fri, 07 Oct 2022 04:45:24 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:906:1705:b0:78c:aa11:cded with HTTP; Fri, 7 Oct 2022 04:45:23 -0700 (PDT) In-Reply-To: References: From: Mikael Magnusson Date: Fri, 7 Oct 2022 13:45:23 +0200 Message-ID: Subject: Re: Bug: Losing .zsh_history To: dominik.vogt@gmx.de, Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 28197 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On 10/5/22, Dominik Vogt wrote: > Due to some hardware problem with the display adapter my box > sometimes fails to show anything on the screen but just emits some > error beeps while it boots. Since I cannot log in and stop the > machine without the screen, I can only switch off the power. > > It has now happened twice that in the wake of the hard switch-off, > ~/.zsh_history got completely erased, replaced with all null > characters, but keeping its size (or at least nor being truncated > to zero size). This is on Linux 4.x Since this is linux, and assuming the problem is only the display and you haven't fully locked the kernel, you could enable the sysrq magic keys[1] if they aren't already, and instead of doing a hard power off, press altgr(right alt) + printscreen + s u s b (wait a little between each), the u will remount all mounts readonly, the s issues a sync, and b will soft-reboot. [1] See sysrq.txt in the kernel source -- Mikael Magnusson