26,281 reputation
24587
bio website
location Virginia
age 32
visits member for 4 years, 5 months
seen 14 hours ago

Jan
5
reviewed Reviewed grep stopped working
Jan
4
comment LVM Encrypted Partition without Partition Table
The device you want to mount is /dev/mapper/mint--vg-root. You made your loop device read-only, so when the filesystem attempted journal recovery on mount it failed. The mount manpage tells me mount -o ro,noload /dev/mapper/mint--vg-root /media/whatever ought to avoid that problem.
Jan
3
comment Accidental deleted partition with gparted
Google for how to use testdisk. I suggest imaging the drive first.
Jan
3
answered How to configure apcupsd to leave UPS running after server shutdown?
Jan
2
comment LVM Encrypted Partition without Partition Table
(and yeah, normally I'd write up step-by-step directions... but no time at the moment. I'm hoping someone else will!)
Jan
2
comment LVM Encrypted Partition without Partition Table
@SvenBamberger Pretty much you run it as testdisk /dev/sda... It will hopefully tell you where the LUKS partition began. Note that if you have it write a new partition table, it'll use the minimum length (which is wrong, but the LUKS header doesn't store the length). Instead I'd take the offset and use fdisk/sfdisk to put the partition entry back in place. BTW: Taking a full image of the drive before attempting recovery is recommended, just in case...
Jan
2
comment LVM Encrypted Partition without Partition Table
@SvenBamberger A LUKS partition starts with the ASCII characters LUKS followed by the bytes given in hexadecimal as 0xBA, 0xBE. Those 6 bytes start all LUKS partitions (and hopefully nothing else)... so if you find them, that's where your partition started. You could use a hex-dump too (e.g., xxd) to look for them by hand, or maybe testdisk can do it. Then recreate sda2 so it starts with that sector.
Jan
2
comment LVM Encrypted Partition without Partition Table
@SvenBamberger Ah, then that at least probably didn't destroy any data, so it should be possible to get it back. I'm not sure if testdisk can find LUKS headers. Basically, you want to find where the partition started by looking for the LUKS magic number LUKS\xba\xbe
Jan
2
comment Grub-install: embedding is not possible in Bios/GPT
You could probably use e.g., dd to just wipe the first & maybe last few megabytes. Moot point now, of course.
Jan
2
comment LVM Encrypted Partition without Partition Table
How did the partition table get destroyed?
Jan
2
reviewed Close Is it possible to write a script that run su or sudo command without typing password?
Jan
1
revised When was my machine last touched?
added 660 characters in body
Dec
31
comment Grub-install: embedding is not possible in Bios/GPT
@Florian wow, I did not know that. Nice. [BTW: Going to delete my not so useful comments.]
Dec
31
comment Building tree diagram
You may also want to point out dot -Tx11 to view immediately instead of making a PDF.
Dec
31
reviewed Reviewed Keyboard Shortcut To Send Text Strings To Program
Dec
31
reviewed Leave Open “Permission denied” for running an executable file on a linux machine
Dec
31
comment How can I lock myself out of a linux box with iptables?
I can think of one thing: it's possible to have your local X server listening on TCP instead of Unix sockets, and your clients connect like that. An iptables -I INPUT -j DROP would break your X session very badly, but switching to text mode should still work. This is also a weird config, so it doesn't strike me as an answer to the question.
Dec
31
reviewed Reviewed Can't access VirtualBox share from MediaTomb
Dec
31
revised Can't access VirtualBox share from MediaTomb
clean up a little
Dec
31
reviewed Leave Closed Server shutdown suddenly