FATAL: debian/scripts/misc/prepare-ppa-source

Amit Kucheria amit.kucheria at canonical.com
Sat Mar 14 16:09:40 UTC 2009


On Sat, Mar 14, 2009 at 01:11:35AM +0000, TJ wrote:

<snip> 

> I spent a while hunting down where $(ppa_file) comes from before
> thinking to check the git-log, whereupon I got a nasty shock:
> 
> git log -- debian/scripts/misc/prepare-ppa-source
> error: object directory /home/all/SourceCode/linux/linux-2.6/.git/objects does not exist; check .git/objects/info/alternates.
> error: Could not read 4a6908a3a050aacc9c3a2f36b276b46c0629ad91
> fatal: cannot simplify commit 94cba110c064e49b437fe482dbbcb6f7b3a652d4 (because of 4a6908a3a050aacc9c3a2f36b276b46c0629ad91)
> 
> After some confusion I realised that the main linux-2.6/ directory had
> gone - cue that sinking feeling that I tried to avoid on Friday 13th!
> 

<snip> 

> rm -rf ../linux* include/config .config
> 
> I can't see why that wild-card is needed but it is certainly fatal and
> unexpected!
> 
> The tragedy here is that the ./linux-2.6/ repository contained my PCI
> IOMEM system as well as a host of other branches for bug-fixes.

That is very unfortunate! 

> Any ideas how to recover ext4 data!? /home/all/SourceCode is a separate
> ext4 file-system in a LV so I've unmounted it for now to preserve the
> state.

I recall reading a rather elaborate article on recovering ext3 files and the person ended up writing a utility to do so. I believe it should apply to ext4 too but YMMV.

http://lwn.net/Articles/273276/

Good luck. Hopefully you've literally disconnected the disk since that deletion.

/Amit

-- 
----------------------------------------------------------------------
Amit Kucheria, Kernel Engineer || amit at canonical.com
----------------------------------------------------------------------




More information about the kernel-team mailing list