• dd

    From apam@21:1/125 to All on Sun Nov 18 00:44:55 2018
    Got to love when you accidentally DD an image to the wrong drive.

    Linux swapped around my external hard drive and usb drive for some
    unknown reason so what usually was sdc was now sdb and vice versa. That
    and I'm tired. Oh well, there goes my 1TB external drive full of stuff :/

    Andrew

    --- MagickaBBS v0.12alpha (Linux/x86_64)
    * Origin: The Fat Sandwich - sandwich.hopto.org:2023 (21:1/125)
  • From Vk3jed@21:1/109 to apam on Sun Nov 18 03:27:00 2018
    On 11-17-18 19:44, apam wrote to All <=-

    Got to love when you accidentally DD an image to the wrong drive.

    Linux swapped around my external hard drive and usb drive for some
    unknown reason so what usually was sdc was now sdb and vice versa. That and I'm tired. Oh well, there goes my 1TB external drive full of stuff
    :/

    Been there, done that, trashed the better part of 1TB of data with a 2GB image that was intended for a CF card. :/


    ... And God said, "Let there be 14.4k baud..."
    === MultiMail/Win v0.51
    --- SBBSecho 3.03-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (21:1/109)
  • From Al@21:4/106 to apam on Sat Nov 17 17:47:53 2018
    Re: dd
    By: apam to All on Sat Nov 17 2018 07:44 pm

    Got to love when you accidentally DD an image to the wrong drive.

    Linux swapped around my external hard drive and usb drive for some
    unknown reason so what usually was sdc was now sdb and vice versa. That and I'm tired. Oh well, there goes my 1TB external drive full of stuff :/

    I did that a year or two ago with my backup USB drive. A real bummer. I was doing something with the backup drive (/dev/sdb) and when done I unmounted it but didn't unplug it. An hour later I saw a new Ubuntu release so thought I'd have a look. Plugged in a USB stick (/dev/sdc) to write the ISO and wrote the ISO to /dev/sdb.

    Lost all kinds of old files I've been keeping, my mystic back up comes to mind.

    Ttyl :-),
    Al

    ... You! What PLANET is this? McCoy, stardate 3134.0.
    --- SBBSecho 3.06-Linux
    * Origin: The Rusty MailBox - Penticton, BC Canada (21:4/106)
  • From MeaTLoTioN@21:1/158 to apam on Sun Nov 18 02:02:55 2018
    Hey!

    On 11/17/18, apam said the following...

    Got to love when you accidentally DD an image to the wrong drive.

    Linux swapped around my external hard drive and usb drive for some
    unknown reason so what usually was sdc was now sdb and vice versa. That and I'm tired. Oh well, there goes my 1TB external drive full of stuff :/

    Sorry to hear about your loss, you have my sympathies. I think I have done
    that also, a few times actually.



    Best regards,
    Christian aka MeaTLoTioN

    --- Mystic BBS v1.12 A39 2018/04/21 (Linux/64)
    * Origin: The Quantum Wormhole, Ramsgate, UK. bbs.erb.pw (21:1/158)
  • From Blue White@21:4/134 to apam on Sun Nov 18 15:12:26 2018
    Got to love when you accidentally DD an image to the wrong drive.

    Linux swapped around my external hard drive and usb drive for some
    unknown reason so what usually was sdc was now sdb and vice versa. That and I'm tired. Oh well, there goes my 1TB external drive full of stuff :/

    I had a luckily non-fatal issue with linux doing that on a machine I had.
    For some odd reason, it would randomly switch them. I thought maybe it was
    the port I had them plugged into, but it did not make a difference.

    It finally made me appreciate the advantage of using the device ID in /etc/fstab. I changed it to use device ID and have never had that issue
    since.



    ... DalekDOS v(overflow): (I)Obey (V)ision impaired (E)xterminate
    --- MultiMail
    * Origin: Possum Lodge South * possumso.fsxnet.nz:7636/SSH:2122 (21:4/134)
  • From tenser@21:1/188 to apam on Sun Nov 18 19:37:34 2018
    A colleague did that the other day. We blamed Poettering; thanks, udev.

    --- Mystic BBS v1.12 A39 2018/04/21 (Raspberry Pi/32)
    * Origin: ACiD Underworld // blackflag.acid.org:31337 (21:1/188)
  • From tenser@21:1/188 to Vk3jed on Sun Nov 18 19:41:23 2018
    On 11/17/18, Vk3jed said the following...

    Got to love when you accidentally DD an image to the wrong drive.

    Linux swapped around my external hard drive and usb drive for some unknown reason so what usually was sdc was now sdb and vice versa. Th and I'm tired. Oh well, there goes my 1TB external drive full of stuf
    :/

    Been there, done that, trashed the better part of 1TB of data with a 2GB image that was intended for a CF card. :/

    Here's a thought: if you have a large drive, allocate the first
    few gigabytes to swap space and save enough information that you
    can recreate the partition data for the drive offline.

    Then if you accidentally overwrite the beginning of the disk, you
    don't lose any data. Use the information you saved offline to
    recover the partition information, run fsck, and you should be
    good to go.

    --- Mystic BBS v1.12 A39 2018/04/21 (Raspberry Pi/32)
    * Origin: ACiD Underworld // blackflag.acid.org:31337 (21:1/188)
  • From Vk3jed@21:1/109 to tenser on Mon Nov 19 13:30:00 2018
    On 11-18-18 14:41, tenser wrote to Vk3jed <=-

    Here's a thought: if you have a large drive, allocate the first
    few gigabytes to swap space and save enough information that you
    can recreate the partition data for the drive offline.

    That's actually a clever idea. Tools like dd can certainly save the start of the disk for later restoration, just have to boot off USB or CD/DVD to recover. :)

    Then if you accidentally overwrite the beginning of the disk, you
    don't lose any data. Use the information you saved offline to
    recover the partition information, run fsck, and you should be
    good to go.

    Yeah, I like it.


    ... Under capitalism man exploits man; under socialism the reverse is true.
    === MultiMail/Win v0.51
    --- SBBSecho 3.03-Linux
    * Origin: Freeway BBS Bendigo,Australia freeway.apana.org.au (21:1/109)
  • From Lizard King@21:4/141 to Blue White on Sun Nov 18 19:47:12 2018
    On 11/18/18, Blue White said the following...

    Got to love when you accidentally DD an image to the wrong drive.
    I had a luckily non-fatal issue with linux doing that on a machine I had. For some odd reason, it would randomly switch them. I thought maybe it was the port I had them plugged into, but it did not make a difference.

    I always do a tail -f on /var/log/messages, then plug in the USB device, and watch the kernel assign it a device. I usually use fdisk to make sure it's what I think it is before I write to it, too.

    So far this has prevented me from doing something stupid with external
    devices, but I am exceptionally talented in the stupid department and it is really just a matter of time.

    On a much sillier note I once worked on a project for a client that involved writing code to do mass duplications of USB thumb drives. I ended up, for
    some time at least, with a bunch of powered USB hubs and drives with blinkenlights on them, and set up a massive RAID array using them.

    I entertained myself for some time copying various stuff onto it and doing
    big compiles, etc.

    --- Mystic BBS v1.12 A39 2018/04/21 (Linux/64)
    * Origin: Retro Underground BBS | Seattle (21:4/141)
  • From StackFault@21:1/172 to apam on Sun Nov 18 23:04:55 2018
    Got to love when you accidentally DD an image to the wrong drive.

    Linux swapped around my external hard drive and usb drive for some
    unknown reason so what usually was sdc was now sdb and vice versa. That and I'm tired. Oh well, there goes my 1TB external drive full of stuff :/

    Did the same with the /boot on an my encrypted test laptop. Lucky enough, I found out before rebooting and moved the data somewhere else before hand.

    Wish you didn't loose too much un-replaceable stuff... :-S

    ▀ ▐
    ···─────·──··────·─· ▌ ▀·─·───·──────··─────·────·──────··─────────·────···
    Dave aka Stackfault ▀ ▌▀ bbs.bottomlessabyss.net (telnet/2023 ■ ssh/2222)
    Bottomless Abyss BBS ▄▀▐ https://bbs.bottomlessabyss.net for info
    -··· --- - - --- -- ·-·· · ··· ··· ·- -··· -·-- ··· ··· -··· -··· ···

    --- Mystic BBS v1.12 A39 2018/04/21 (Linux/64)
    * Origin: The Bottomless Abyss BBS (21:1/172)
  • From StackFault@21:1/172 to tenser on Sun Nov 18 23:17:36 2018
    Here's a thought: if you have a large drive, allocate the first
    few gigabytes to swap space and save enough information that you
    can recreate the partition data for the drive offline.

    Then if you accidentally overwrite the beginning of the disk, you
    don't lose any data. Use the information you saved offline to
    recover the partition information, run fsck, and you should be
    good to go.

    This is nice! Given you find out before it completes, but for SDcard this is
    a nice idea. The multiple superblocks backup might be of rescue here as well.

    I will put it to my to-do list of recovery failsafe....

    Cheers!

    ▀ ▐
    ···─────·──··────·─· ▌ ▀·─·───·──────··─────·────·──────··─────────·────···
    Dave aka Stackfault ▀ ▌▀ bbs.bottomlessabyss.net (telnet/2023 ■ ssh/2222)
    Bottomless Abyss BBS ▄▀▐ https://bbs.bottomlessabyss.net for info
    -··· --- - - --- -- ·-·· · ··· ··· ·- -··· -·-- ··· ··· -··· -··· ···

    --- Mystic BBS v1.12 A39 2018/04/21 (Linux/64)
    * Origin: The Bottomless Abyss BBS (21:1/172)
  • From Blue White@21:4/134 to Lizard King on Mon Nov 19 23:25:02 2018
    involved writing code to do mass duplications of USB thumb drives. I ended up, for some time at least, with a bunch of powered USB hubs and drives with blinkenlights on them, and set up a massive RAID array
    using them.

    I entertained myself for some time copying various stuff onto it and
    doing big compiles, etc.

    There is someone on youtube that has a video or two about setting up a RAID using a usb hub and thumb drives. That was not you was it?


    ... 2 + 2 = 5 for extremely large values of 2.
    --- MultiMail
    * Origin: Possum Lodge South * possumso.fsxnet.nz:7636/SSH:2122 (21:4/134)
  • From Lizard King@21:4/141 to Blue White on Tue Nov 20 02:20:16 2018
    On 11/19/18, Blue White said the following...
    There is someone on youtube that has a video or two about setting up a RAID using a usb hub and thumb drives. That was not you was it?

    No, that must be some other lunatic. :)

    --- Mystic BBS v1.12 A39 2018/04/21 (Linux/64)
    * Origin: Retro Underground BBS | Seattle (21:4/141)