[ Date Index ]
[ Thread Index ]
[ <= Previous by date /
thread ]
[ Next by date /
thread => ]
Re: [LUG] Safe DDing
- To: "list@xxxxxxxxxxxxx" <list@xxxxxxxxxxxxx>
- Subject: Re: [LUG] Safe DDing
- From: mr meowski <mr.meowski@xxxxxxxx>
- Date: Sun, 27 Jan 2019 15:28:02 +0000
- Accept-language: en-GB, en-US
- Content-id: <407641317F1C4A41ACEC826315E23EE4@eurprd08.prod.outlook.com>
- Content-language: en-US
- Delivered-to: dclug@xxxxxxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dclug.org.uk; s=1538993161; h=Sender:Content-Transfer-Encoding:Content-Type :Reply-To:List-Subscribe:List-Help:List-Post:List-Unsubscribe:List-Id:Subject :MIME-Version:Content-ID:In-Reply-To:References:Message-ID:Date:To:From:Cc: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner:List-Archive; bh=nOCwMIAL96Dt4pGFcYSVebqSGOLHWKX2BIgqELn2vmI=; b=FzMCWN7DMpzknn3k4YhGlKPufl TsM/jcHiI6o0LDPsbrdZIMKsNc6pnzyM0jvUZbSIhQrjAm/mo23GHVCGPWdZMr6zCbP1nrYrIVnC/ C/mBnX52nHuUXI01HPhSaazOssH8GlSZr98uHQMG8bN6k7VFqXoZx7BaZy31+zn6NUd4=;
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zeQdsgpErzsf/+tKw5qYkC+5ZndrkR4FmYPZqC0jbj0=; b=U/eJ57jXjkGdm5/7jXV36j+3hN4MNenCPTLQi42cyuef39kwERXaeqrMKrb7CQ0iBVSQFcTZNySEobH2qtjSiJvn7la992R3VoBfrcxJNNkmIHGM9NlWsalX/4exEGRgGSoJ1hEEEeZYrafxq5oDV5GmhqPz3+L96IviGmW0OrLxqZQXX/54CqRM4A3KcFXO59wkcmwrVGd+k+PK6S/3k0pkMfxh+DoMPy0EkCEewQlTewwU+gxEqUyQyt1Hny7QDxXozsFSOPN/xW0gHdngQNuKA69El/B2gIaZ89bWX07JkZuUZHSwTL626sdEVC4q1qcaVtVcZa1ikhcK/oF9JA==
- Thread-index: AQHUtimBPRsFinCDD0SvQgKHkjHEBaXDPXIA
- Thread-topic: [LUG] Safe DDing
On 27/01/2019 10:16, Tom via list wrote:
> I've just spent two days rebuilding my laptop after inadvertently dd ing
> a microsd image onto the main drive - I think in bash I managed to
> accidentally somehow unedit the command and launch it ( I hate touchpads!)
>
> I was wondering if anyone has got an app that can realise this is a
> stupid thing to do and stop you?
Pretty much any GUI frontend to DD *won't* let you do this - Etcher for
example. It simply won't display /dev/sdX as a valid target unless you
specifically enable "unsafe" mode to allow overwriting system drives.
Blacklisting command subsets (like "rm -rf /") doesn't really work but
what you can do is alias dd or similarly dangerous commands to "sleep
15; dd" to introduce a forced delay. I used to do this but I use dd a
lot but if I'm honest, I'm not entirely sure that arbitrary delay ever
did anything but slightly annoy me. Would it have been enough for tired
eyes to make one last scan of a rogue dd command and ctrl+c it just
before execution? Who knows?
But two days to rebuild your laptop? You need better backups, not
blacklisted dd commands...
Cheers
--
The Mailing List for the Devon & Cornwall LUG
https://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/listfaq