New laptop, old hard-drive. Fuck you, gimme OS.
-
@Lorne-Kates said in New laptop, old hard-drive. Fuck you, gimme OS.:
FUCKS SAKE WINDOWS 10 WHY HAVE YOU REVERSED THE SCROLL-DOWN AND SCROLL-UP GESTURES!
SWIPE DOWN ON MY TRACKPAD MEANS SCROLL DOWN YOU USELESS UI-DESTROYING PIECE OF SHIT!
Nope, that's your touchpad OEM, not Windows 10.
-
@accalia said in New laptop, old hard-drive. Fuck you, gimme OS.:
accidentally running the command over an SSH session when you thought it was local
The root account on my production server has its shell prompt set to a really obnoxious colour for precisely that reason. Once bitten...
-
@cheong said in New laptop, old hard-drive. Fuck you, gimme OS.:
I suggest you to stop it before it writes any change to your harddisk.
Testdisk doesn't do that. As any fair minded person would expect from open-source utility software, its fundamental design is sound.
That said: again, I don't recommend running testdisk against crashed drives. For the best chance of recovering as much data as possible, get a ddrescue clone of the drive first, and run testdisk against that.
-
@Lorne-Kates said in New laptop, old hard-drive. Fuck you, gimme OS.:
what can I do to take a byte-for-byte copy of Hard Drive 1-- and perfectly replicate it onto Hard Drive 2
Get a Linux LiveCD and use dd very carefully.
-
@ben_lubar said in New laptop, old hard-drive. Fuck you, gimme OS.:
use dd very carefully
ddrescue > dd, but because its input and output files are positional command line parameters it needs even more care :-)
-
@Lorne-Kates said in New laptop, old hard-drive. Fuck you, gimme OS.:
FUCKS SAKE WINDOWS 10 WHY HAVE YOU REVERSED THE SCROLL-DOWN AND SCROLL-UP GESTURES!
Keep calm and change the system setting? (Devices -> Mouse and Touchpad -> Reverse scrolling direction)
-
@sloosecannon said in New laptop, old hard-drive. Fuck you, gimme OS.:
Nope, that's your touchpad OEM, not Windows 10.
Edit: Nope, misremembered: The default is as Lorne described. "Reverse scrolling direction" actually means "scroll like a mouse wheel". Tested on my Surface Pro 4, so that's probably how Microsoft intended it.
-
@PleegWat said in New laptop, old hard-drive. Fuck you, gimme OS.:
@JazzyJosh said in New laptop, old hard-drive. Fuck you, gimme OS.:
@TimeBandit if = input file of = output file. Remember that and it's easy.
Right. Now which of those was
/dev/sdb
again, and which was/dev/sdc
?Always
sudo fdisk -l
first.
-
@accalia said in New laptop, old hard-drive. Fuck you, gimme OS.:
@asdf said in New laptop, old hard-drive. Fuck you, gimme OS.:
@accalia said in New laptop, old hard-drive. Fuck you, gimme OS.:
or accidentally running the command over an SSH session when you thought it was local.
That's why the first thing you should do after connecting via SSH is naming your tmux session.
If you're not using tmux, you're Doing It Wrong anyway.
doesn't help if you don't doublecheck your hostname when using sudo
and that's why my servers have unique passwords so i can's sudo a command on the wrong box accidentally anymore.
Hey!
I think that's
extreme fun!
-
Why would you run Windows 7? A 6 year old OS that is not even getting primary support.
-
@Helix said in New laptop, old hard-drive. Fuck you, gimme OS.:
Why would you run Windows 7
Because it is the best OS to run FireFox 22, the one with the non-ugly icon!
-
@JazzyJosh said in New laptop, old hard-drive. Fuck you, gimme OS.:
@Lorne-Kates
dd if=<old drive> of=<new drive>
What could possibly go wrong
Alternatively,
ntfsclone
. It can deal with different sector sizes and stuffs, which Windows itself may not be able to (some parts of the boot process don't like ending up in a different location on the HD, I think). But, of course, you can afterwards spend a few hours with magic incantations and a windows rescue disk to fix that up.Been there, done that.
-
@Lorne-Kates said in New laptop, old hard-drive. Fuck you, gimme OS.:
It has Win id10t, which will be purged in favor of Win7.
It's not quite as important with 10 as with 8. 8 sucked; 10 is just irritating in places.
-
@cvi said in New laptop, old hard-drive. Fuck you, gimme OS.:
@JazzyJosh said in New laptop, old hard-drive. Fuck you, gimme OS.:
@Lorne-Kates
dd if=<old drive> of=<new drive>
What could possibly go wrong
Alternatively,
ntfsclone
.or just use Clonezilla, it will automagically invoke the right incanation for ntfsclone on ntfs partitions. no muss, no fuss, also no GUI
-
@JazzyJosh said in New laptop, old hard-drive. Fuck you, gimme OS.:
@TimeBandit if = input file of = output file. Remember that and it's easy.
I really wanna slap whoever decided on using letters that are RIGHT NEXT TO EACH OTHER ON THE KEYBOARD to differentiate input and output for
dd
.Sure, it's closer to the letters of I/O. But we're talking about the command line so ease of use and accessibility really don't matter</rtfm>
-
@bb36e said in New laptop, old hard-drive. Fuck you, gimme OS.:
@JazzyJosh said in New laptop, old hard-drive. Fuck you, gimme OS.:
@TimeBandit if = input file of = output file. Remember that and it's easy.
I really wanna slap whoever decided on using letters that are RIGHT NEXT TO EACH OTHER ON THE KEYBOARD to differentiate input and output for
dd
.Sure, it's closer to the letters of I/O. But we're talking about the command line so ease of use and accessibility really don't matter</rtfm>
Yeah, they should have called them "source" and "destination" instead.
-
@bb36e said in New laptop, old hard-drive. Fuck you, gimme OS.:
I really wanna slap whoever decided on using letters that are RIGHT NEXT TO EACH OTHER ON THE KEYBOARD to differentiate input and output for
dd
.Hint: always read what you typed before pressing ENTER
-
@TimeBandit said in New laptop, old hard-drive. Fuck you, gimme OS.:
always read what you typed before pressing ENTER
and be very very careful if anything you type includes ], \, ', or right-Shift.
-
@accalia said in New laptop, old hard-drive. Fuck you, gimme OS.:
@cvi said in New laptop, old hard-drive. Fuck you, gimme OS.:
@JazzyJosh said in New laptop, old hard-drive. Fuck you, gimme OS.:
@Lorne-Kates
dd if=<old drive> of=<new drive>
What could possibly go wrong
Alternatively,
ntfsclone
.or just use Clonezilla, it will automagically invoke the right incanation for ntfsclone on ntfs partitions. no muss, no fuss, also no GUI
None of these tools handles failing disks well. Ddrescue does. Use ddrescue.
-
@bb36e said in New laptop, old hard-drive. Fuck you, gimme OS.:
@JazzyJosh said in New laptop, old hard-drive. Fuck you, gimme OS.:
@TimeBandit if = input file of = output file. Remember that and it's easy.
I really wanna slap whoever decided on using letters that are RIGHT NEXT TO EACH OTHER ON THE KEYBOARD to differentiate input and output for
dd
.Sure, it's closer to the letters of I/O. But we're talking about the command line so ease of use and accessibility really don't matter</rtfm>
I mean, you could even do something like
inf=/dev/sda outf=/dev/sdb
. That way, if you screw up and typeonf=/dev/sda
you don't make a system-destroying oopsie.
-
@kt_ said in New laptop, old hard-drive. Fuck you, gimme OS.:
@PleegWat said in New laptop, old hard-drive. Fuck you, gimme OS.:
@JazzyJosh said in New laptop, old hard-drive. Fuck you, gimme OS.:
@TimeBandit if = input file of = output file. Remember that and it's easy.
Right. Now which of those was
/dev/sdb
again, and which was/dev/sdc
?Always
sudo fdisk -l
first.Since the drives I clone to are usually spares pulled from old machines, which tend to have existing contents and may well be partitioned the same way as the drive I'm cloning from, I prefer
sudo smartctl -i /dev/sdb
and then eyeballing the drive label to match the serial number.
-
@flabdablet said in New laptop, old hard-drive. Fuck you, gimme OS.:
@kt_ said in New laptop, old hard-drive. Fuck you, gimme OS.:
@PleegWat said in New laptop, old hard-drive. Fuck you, gimme OS.:
@JazzyJosh said in New laptop, old hard-drive. Fuck you, gimme OS.:
@TimeBandit if = input file of = output file. Remember that and it's easy.
Right. Now which of those was
/dev/sdb
again, and which was/dev/sdc
?Always
sudo fdisk -l
first.Since the drives I clone to are usually spares pulled from old machines, which tend to have existing contents and may well be partitioned the same way as the drive I'm cloning from, I prefer
sudo smartctl -i /dev/sdb
and then eyeballing the drive label to match the serial number.You're a one smart ctl!
-
@asdf said in New laptop, old hard-drive. Fuck you, gimme OS.:
@Lorne-Kates said in New laptop, old hard-drive. Fuck you, gimme OS.:
FUCKS SAKE WINDOWS 10 WHY HAVE YOU REVERSED THE SCROLL-DOWN AND SCROLL-UP GESTURES!
Keep calm and change the system setting? (Devices -> Mouse and Touchpad -> Reverse scrolling direction)
I DONT NEED SOLUTIONS IN NEED RAAAAAAAAAAAAAAAAGE
-
@flabdablet said in New laptop, old hard-drive. Fuck you, gimme OS.:
Testdisk doesn't do that. As any fair minded person would expect from open-source utility software, its fundamental design is sound.
That said: again, I don't recommend running testdisk against crashed drives. For the best chance of recovering as much data as possible, get a ddrescue clone of the drive first, and run testdisk against that.Yeah, according to the testdisk result, it may be a fucked MBR. I'll try /fixmbr when i get home.
-
@Lorne-Kates said in New laptop, old hard-drive. Fuck you, gimme OS.:
I DONT NEED SOLUTIONS IN NEED RAAAAAAAAAAAAAAAAGE
Blakey, you're back! <3
-
@sloosecannon said in New laptop, old hard-drive. Fuck you, gimme OS.:
you could even do something like inf=/dev/sda outf=/dev/sdb. That way, if you screw up and type onf=/dev/sda you don't make a system-destroying oopsie.
Nothing stops you from adding a
/usr/local/bin/dd
wrapper:#!/bin/bash warn= args=() i=0 for arg do case "$arg" in if=*|of=*) warn='-t 0' ;; in=*) arg=${arg/in/if} ;; out=*) arg=${arg/out/of} ;; esac args[i++]=$arg done if test $warn then echo >&2 "$0: if= and of= deprecated; use in= and out= instead." read -p 'Proceed? (y/N) ' reply case "$reply" in Y*|y*) ;; *) exit 1 ;; esac fi exec /bin/dd "${args[@]}"
-
@Lorne-Kates said in New laptop, old hard-drive. Fuck you, gimme OS.:
I DONT NEED SOLUTIONS IN NEED RAAAAAAAAAAAAAAAAGE
... blakey? ... is that you? ...
'd
-
@Lorne-Kates said in New laptop, old hard-drive. Fuck you, gimme OS.:
Got the new computer. But the hard drive transfer is temporarily on hold-- because my wife's hard drive decided to fuck off to fuckoff land today. So it's in the dock getting repaired first:
uhh-- I would post a screenshot of testdisk.exe working, but I realize I don't have a screenshot program on this computer.
wait fucking sniping tool works I guess?
whaddya know.
PS windows 10 can suck my leaky ass
It will, but then like a mosquito immediately regurgitate somethings in its place.
-
@flabdablet said in New laptop, old hard-drive. Fuck you, gimme OS.:
@ben_lubar said in New laptop, old hard-drive. Fuck you, gimme OS.:
use dd very carefully
ddrescue > dd, but because its input and output files are positional command line parameters it needs even more care :-)
someone should make a bash wrapper for it that fixes that. Eeesh.
/me scrolls down
Yeah, like the dd one presented here.
@bb36e said in New laptop, old hard-drive. Fuck you, gimme OS.:
@JazzyJosh said in New laptop, old hard-drive. Fuck you, gimme OS.:
@TimeBandit if = input file of = output file. Remember that and it's easy.
I really wanna slap whoever decided on using letters that are RIGHT NEXT TO EACH OTHER ON THE KEYBOARD to differentiate input and output for
dd
.Sure, it's closer to the letters of I/O. But we're talking about the command line so ease of use and accessibility really don't matter</rtfm>
Or you could switch to a better keyboard layout :dvorak_onion:
-
@pydsigner said in New laptop, old hard-drive. Fuck you, gimme OS.:
@flabdablet said in New laptop, old hard-drive. Fuck you, gimme OS.:
@ben_lubar said in New laptop, old hard-drive. Fuck you, gimme OS.:
use dd very carefully
ddrescue > dd, but because its input and output files are positional command line parameters it needs even more care :-)
someone should make a bash wrapper for it that fixes that. Eeesh.
/me scrolls down
Yeah, like the dd one presented here.
@bb36e said in New laptop, old hard-drive. Fuck you, gimme OS.:
@JazzyJosh said in New laptop, old hard-drive. Fuck you, gimme OS.:
@TimeBandit if = input file of = output file. Remember that and it's easy.
I really wanna slap whoever decided on using letters that are RIGHT NEXT TO EACH OTHER ON THE KEYBOARD to differentiate input and output for
dd
.Sure, it's closer to the letters of I/O. But we're talking about the command line so ease of use and accessibility really don't matter</rtfm>
Or you could switch to a better keyboard layout :dvorak_onion:
Isn't that the definition of a ? Solving a software problem by throwing hardware on it?
-
@Rhywden said in New laptop, old hard-drive. Fuck you, gimme OS.:
@pydsigner said in New laptop, old hard-drive. Fuck you, gimme OS.:
@flabdablet said in New laptop, old hard-drive. Fuck you, gimme OS.:
@ben_lubar said in New laptop, old hard-drive. Fuck you, gimme OS.:
use dd very carefully
ddrescue > dd, but because its input and output files are positional command line parameters it needs even more care :-)
someone should make a bash wrapper for it that fixes that. Eeesh.
/me scrolls down
Yeah, like the dd one presented here.
@bb36e said in New laptop, old hard-drive. Fuck you, gimme OS.:
@JazzyJosh said in New laptop, old hard-drive. Fuck you, gimme OS.:
@TimeBandit if = input file of = output file. Remember that and it's easy.
I really wanna slap whoever decided on using letters that are RIGHT NEXT TO EACH OTHER ON THE KEYBOARD to differentiate input and output for
dd
.Sure, it's closer to the letters of I/O. But we're talking about the command line so ease of use and accessibility really don't matter</rtfm>
Or you could switch to a better keyboard layout :dvorak_onion:
Isn't that the definition of a ? Solving a software problem by throwing hardware on it?
Ah, but my keyboard is naturally QWERTY, I solved that with software too.
-
@pydsigner said in New laptop, old hard-drive. Fuck you, gimme OS.:
@Rhywden said in New laptop, old hard-drive. Fuck you, gimme OS.:
@pydsigner said in New laptop, old hard-drive. Fuck you, gimme OS.:
@flabdablet said in New laptop, old hard-drive. Fuck you, gimme OS.:
@ben_lubar said in New laptop, old hard-drive. Fuck you, gimme OS.:
use dd very carefully
ddrescue > dd, but because its input and output files are positional command line parameters it needs even more care :-)
someone should make a bash wrapper for it that fixes that. Eeesh.
/me scrolls down
Yeah, like the dd one presented here.
@bb36e said in New laptop, old hard-drive. Fuck you, gimme OS.:
@JazzyJosh said in New laptop, old hard-drive. Fuck you, gimme OS.:
@TimeBandit if = input file of = output file. Remember that and it's easy.
I really wanna slap whoever decided on using letters that are RIGHT NEXT TO EACH OTHER ON THE KEYBOARD to differentiate input and output for
dd
.Sure, it's closer to the letters of I/O. But we're talking about the command line so ease of use and accessibility really don't matter</rtfm>
Or you could switch to a better keyboard layout :dvorak_onion:
Isn't that the definition of a ? Solving a software problem by throwing hardware on it?
Ah, but my keyboard is naturally QWERTY, I solved that with software too.
So you're solving a software problem by using software to simulate throwing hardware at it? :P
-
@sloosecannon said in New laptop, old hard-drive. Fuck you, gimme OS.:
@pydsigner said in New laptop, old hard-drive. Fuck you, gimme OS.:
@Rhywden said in New laptop, old hard-drive. Fuck you, gimme OS.:
@pydsigner said in New laptop, old hard-drive. Fuck you, gimme OS.:
@flabdablet said in New laptop, old hard-drive. Fuck you, gimme OS.:
@ben_lubar said in New laptop, old hard-drive. Fuck you, gimme OS.:
use dd very carefully
ddrescue > dd, but because its input and output files are positional command line parameters it needs even more care :-)
someone should make a bash wrapper for it that fixes that. Eeesh.
/me scrolls down
Yeah, like the dd one presented here.
@bb36e said in New laptop, old hard-drive. Fuck you, gimme OS.:
@JazzyJosh said in New laptop, old hard-drive. Fuck you, gimme OS.:
@TimeBandit if = input file of = output file. Remember that and it's easy.
I really wanna slap whoever decided on using letters that are RIGHT NEXT TO EACH OTHER ON THE KEYBOARD to differentiate input and output for
dd
.Sure, it's closer to the letters of I/O. But we're talking about the command line so ease of use and accessibility really don't matter</rtfm>
Or you could switch to a better keyboard layout :dvorak_onion:
Isn't that the definition of a ? Solving a software problem by throwing hardware on it?
Ah, but my keyboard is naturally QWERTY, I solved that with software too.
So you're solving a software problem by using software to simulate throwing hardware at it? :P
See, that depends on whether or not you see I and O being side by side as the root problem. And if you don't see QWERTY as the bigger problem, you're wrong, so QED.