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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 569D2138350 for ; Sat, 18 Jan 2020 14:45:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2F134E088A; Sat, 18 Jan 2020 14:45:39 +0000 (UTC) Received: from mail-vs1-xe2f.google.com (mail-vs1-xe2f.google.com [IPv6:2607:f8b0:4864:20::e2f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B33FDE0874 for ; Sat, 18 Jan 2020 14:45:38 +0000 (UTC) Received: by mail-vs1-xe2f.google.com with SMTP id g15so16579719vsf.1 for ; Sat, 18 Jan 2020 06:45:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to; bh=N9liBy6XCDrO6EnB8276FGlkT1qsSODdqr+WhvAPp9w=; b=OosxVw+uSI8skF5ShnSorsnSxaw/jKEX/Oavul4jT27bPKcz7l26R4+Dv+aXzmoO+7 //DvLCUtKEDLsCZKu3agSvkFjeHTok2TMXEZGgFktruAwUNu2Di4aiBu4UIUn8Xn1JKY 838eA/x1u8B4/ybuyV+nO9jGK2BK0YxZz61uBM12moPgUrCB3/mMBJwOxLLwK1vuhIyx 2SZ09RdJ3Yo+fo7yKhGmaKX0+/s2JvBhsNerrNnCbKBFk5RsqERG7pk2sx8Lc+pMjizK Llq0loASWvru7CdUDc/RrjmaPwVqpwNkyTsS47a6N1F4koQfGEy/+LYsR6vAQtmr5DS+ /Zcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to; bh=N9liBy6XCDrO6EnB8276FGlkT1qsSODdqr+WhvAPp9w=; b=V/OSYfZxCNxcC96cl7EjwGUYXDPsMZXcHG2MSupURly/SCAgRcmscjQeSJgYiE84qV UhLCAnHdHEmRU2JxROe0wIA+ABgqh1PlFaeaWgLULmpVBT9mGbhc4XzOSSiIa7Tkfqit bn25dEfah7Ee936bjtwYJ+IVm+V5uTYxdboWghlMYzIFOWo6q1tPA/GG3gazgr4chbVo 0X0nuqTPzbi4Bzu24+LRugkzZ1lwXZRcA882Ta4l60vP4aD1zvtejmffeNcyLP789YZX +nmNUv3foDjTVvFZ6Kb85DO9ODsZI0TcKdbI1RC+Ua3bR291aOna4aXvokvy43BSJ5Sd /0uA== X-Gm-Message-State: APjAAAX5VzobjYoYM/eD7Toe+RhiMjhvPmmtLw7rTQDGRSJw6eZ3Dyvc ZEfshPjUIezh0Ig4Itg4d10NcgAXFB5+KN8soMUL X-Google-Smtp-Source: APXvYqyzbOif/UdFdYxR0ibNo7x0DVP0pbrdb7WrvJNZ8Y8v0Zrw93hORl2/m1RHW1NWQIVNKTzaLCvCjsBv9vxSRGA= X-Received: by 2002:a67:f255:: with SMTP id y21mr8081140vsm.38.1579358737574; Sat, 18 Jan 2020 06:45:37 -0800 (PST) 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 References: <6eab6ba4-497e-69d2-5d54-cf08558beb9f@web.de> <5832A2FD-D94B-4F1F-AB9C-960747024482@gmail.com> <5E22EC9E.3090804@youngman.org.uk> In-Reply-To: <5E22EC9E.3090804@youngman.org.uk> From: tedheadster Date: Sat, 18 Jan 2020 09:45:26 -0500 Message-ID: Subject: Re: [gentoo-user] can you save a filesystem destroyed with mkswap? To: gentoo-user@lists.gentoo.org Content-Type: text/plain; charset="UTF-8" X-Archives-Salt: 4dbecaf3-e9bc-4051-b6d2-b6f5066c777f X-Archives-Hash: a9bdbe1f3f41377f2c62fa6635a8c9d8 On Sat, Jan 18, 2020 at 6:32 AM Wols Lists wrote: > > Not that I know any gory details, but if mkswap is ALL that you have > done, then probably it's just destroyed the ext header at the start of > the partition. > > If you can get hold of the alternate (backup) header, then you should be > able to restore the filesystem. > You can learn where the alternate superblocks are by doing a 'mkfs.ext3 -n /dev/$BAD_DEV' and it will do _nothing_ to the disk, but it will tell you where it places the backup superblocks for a disk that size. - Matthew