AOA Forums AOA Forums AOA Forums Folding For Team 45 AOA Files Home Front Page Become an AOA Subscriber! UserCP Calendar Memberlist FAQ Search Forum Home


Go Back   AOA Forums > Software > OS, Software, Firmware, and BIOS > Linux

Linux Questions and information concerning Linux


Reply
 
LinkBack Thread Tools Rate Thread
  #1 (permalink)  
Old 18th December, 2009, 08:39 PM
Kaitain's Avatar
Member
Mars Rover Champion, Joust Champion
 
Join Date: September 2001
Location: MK10, UK.
Posts: 4,372
Send a message via MSN to Kaitain Send a message via Skype™ to Kaitain

DM-Crypt/LUKS, invalid offset and an idiot

I did something rather silly last night. I wanted to clear off an old /home partition that contained information I didn't want recoverable. So I simply entered "shred /dev/sda5".

No problem, right? Problem. Its an extended partition. So I've gone and shredded the link identifying where the next partition is. Muppet!

So I've spent a few hours playing with TestDisk and got /boot and / back OK. The problem I have is with /home, which is a LUKS encrypted partition. Now I can unlock it, LUKS finds and unlocks the slot, then gives me an error, "Incorrect Offset" and exits without creating the mapping.

So... do I:
i) keep trying, but manually set the offset?
ii) give up and recreate the partition from an old (old (old)) backup.
iii) some other, better way that I don't know yet?

I'm hoping one or two people know a method (iii).

Blast!
__________________
It is by coffee alone I set my mind in motion...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 18th December, 2009, 10:01 PM
Gizmo's Avatar
Chief BBS Administrator
BassTeroids Champion, Global Player Champion, Aim & Fire Champion, Puzzle Maniax Champion, Othello Champion, Canyon Glider Champion, Unicycle Challenge Champion, YetiSports 9: Final Spit Champion, Zed Champion
 
Join Date: May 2003
Location: Webb City, Mo
Posts: 16,178
Send a message via ICQ to Gizmo Send a message via AIM to Gizmo Send a message via MSN to Gizmo Send a message via Yahoo to Gizmo Send a message via Skype™ to Gizmo

  1. Do you have any idea what offset you need to use? Alternatively, do you have the time to spend stepping through upwards of several hundred thousand possibilities?
  2. How much effort would be involved in recreated from the old backup?
  3. I suspect you probably know more than I do on this topic....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 18th December, 2009, 10:10 PM
Kaitain's Avatar
Member
Mars Rover Champion, Joust Champion
 
Join Date: September 2001
Location: MK10, UK.
Posts: 4,372
Send a message via MSN to Kaitain Send a message via Skype™ to Kaitain

1) None whatsoever.
2) Not a lot. I haven't done a lot since I last backed up. I'd just prefer not to lose the last 2 months worth of emails.
3) I'm just waiting on the results of a "deep scan" - the disk is getting pretty old now and has footprints from several older partitions. These things seem to accumulate like tree rings. If any are in a similar-but-not-the-same position, I'll move the partition to that point and try again.
__________________
It is by coffee alone I set my mind in motion...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 19th December, 2009, 01:30 AM
Kaitain's Avatar
Member
Mars Rover Champion, Joust Champion
 
Join Date: September 2001
Location: MK10, UK.
Posts: 4,372
Send a message via MSN to Kaitain Send a message via Skype™ to Kaitain

Gave up. I'll restore from backup in a couple of months when I'm home. For now it's good enough.
__________________
It is by coffee alone I set my mind in motion...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
MS: Korean patents are invalid Gizmo Random Nonsense! 4 27th November, 2006 09:57 PM
Project Offset WonderBread GAMES! OH YEAH! 0 20th October, 2005 07:55 AM
Invalid CD key - XP pro WonderBread General Hardware Discussion 40 16th February, 2005 04:56 PM
Win xp CD invalid, but it worked yesterday!? Slackjaw OS, Software, Firmware, and BIOS 3 3rd January, 2003 04:25 PM
Invalid Boot.ini dod CRASHED! 2 14th October, 2002 04:06 PM


All times are GMT +1. The time now is 02:21 AM.


Copyright ©2001 - 2010, AOA Forums
Don't Click Here Don't Click Here Either

Search Engine Friendly URLs by vBSEO 3.3.0