Re: [arch-general] okular print preview error

2009-06-25 Thread prad
On Mon, 22 Jun 2009 13:41:56 -0400
Leonid Grinberg lgrinb...@gmail.com wrote:

 Does anyone know what else might cause this?

leonid,
i got this response from the forums:
Since it's a print preview, the file is stored in /tmp, which okular
doesn't like.  You need to move the file or get another viewer program
for it to work, unless there is a setting in okular that can fix this.
http://bbs.archlinux.org/viewtopic.php?id=74026

however, it makes no sense to me that okular won't like /tmp since i
thought /tmp was supposed to be used for just such a purpose by
programs. nor could i find anything in okular options to make a change.


-- 
In friendship,
prad

  ... with you on your journey
Towards Freedom
http://www.towardsfreedom.com (website)
Information, Inspiration, Imagination - truly a site for soaring I's




Re: [arch-general] sound busted after upgrade to kernel 2.6.30?

2009-06-25 Thread Tobias Powalowski
Am Donnerstag 25 Juni 2009 schrieb Jozsef:
 On Thu, Jun 25, 2009 at 8:33 AM, Tobias Powalowski t.p...@gmx.de wrote:
  Am Donnerstag 25 Juni 2009 schrieb Jozsef:
   On Thu, Jun 25, 2009 at 7:59 AM, Chris Brannon cmbran...@cox.net
 
  wrote:
My sound was busted yesterday when I upgraded from kernel 2.6.29 to
2.6.30. I had to regenerate my asound.state.
At first, I thought it was just my problem, because I use the softvol
plugin.
This gave me trouble in the past.
A friend of mine reported the same experience, so someone else had
 
  audio
 
problems on upgrade as well.
   
What happened to ALSA?
Did anyone else have the same trouble?
   
Regards,
-- Chris
  
   alsa works fine here
 
  Alsa tends to break for some people with every major release, so manual
  fixing
  is needed.
  Alsa never worked perfectly and will not in the future, that is what i
  can tell ya from the past 5 years.
  greetings
  tpowa
  --
  Tobias Powalowski
  Archlinux Developer  Package Maintainer (tpowa)
  http://www.archlinux.org
  tp...@archlinux.org

 what is your suggestion instead of ALSA?
There is no sugesstion, there is no sound framework working for all. 
That's only my observation that sound is always broken for someone.
greetings
tpowa
-- 
Tobias Powalowski
Archlinux Developer  Package Maintainer (tpowa)
http://www.archlinux.org
tp...@archlinux.org


signature.asc
Description: This is a digitally signed message part.


Re: [arch-general] okular print preview error

2009-06-25 Thread Leonid Grinberg
Aha, I see. I'll look further into it -- I rarely need to use print
preview, but I resort to evince when I have to, and this is really a
bug that needs to be squashed. Thanks for the link!

--
Leonid

On Thu, Jun 25, 2009 at 02:05, pradp...@towardsfreedom.com wrote:
 On Mon, 22 Jun 2009 13:41:56 -0400
 Leonid Grinberg lgrinb...@gmail.com wrote:

 Does anyone know what else might cause this?

 leonid,
 i got this response from the forums:
 Since it's a print preview, the file is stored in /tmp, which okular
 doesn't like.  You need to move the file or get another viewer program
 for it to work, unless there is a setting in okular that can fix this.
 http://bbs.archlinux.org/viewtopic.php?id=74026

 however, it makes no sense to me that okular won't like /tmp since i
 thought /tmp was supposed to be used for just such a purpose by
 programs. nor could i find anything in okular options to make a change.


 --
 In friendship,
 prad

                                      ... with you on your journey
 Towards Freedom
 http://www.towardsfreedom.com (website)
 Information, Inspiration, Imagination - truly a site for soaring I's





Re: [arch-general] sound busted after upgrade to kernel 2.6.30?

2009-06-25 Thread Jozsef
On Thu, Jun 25, 2009 at 9:11 AM, Tobias Powalowski t.p...@gmx.de wrote:

 Am Donnerstag 25 Juni 2009 schrieb Jozsef:
  On Thu, Jun 25, 2009 at 8:33 AM, Tobias Powalowski t.p...@gmx.de
 wrote:
   Am Donnerstag 25 Juni 2009 schrieb Jozsef:
On Thu, Jun 25, 2009 at 7:59 AM, Chris Brannon cmbran...@cox.net
  
   wrote:
 My sound was busted yesterday when I upgraded from kernel 2.6.29 to
 2.6.30. I had to regenerate my asound.state.
 At first, I thought it was just my problem, because I use the
 softvol
 plugin.
 This gave me trouble in the past.
 A friend of mine reported the same experience, so someone else had
  
   audio
  
 problems on upgrade as well.

 What happened to ALSA?
 Did anyone else have the same trouble?

 Regards,
 -- Chris
   
alsa works fine here
  
   Alsa tends to break for some people with every major release, so manual
   fixing
   is needed.
   Alsa never worked perfectly and will not in the future, that is what i
   can tell ya from the past 5 years.
   greetings
   tpowa
   --
   Tobias Powalowski
   Archlinux Developer  Package Maintainer (tpowa)
   http://www.archlinux.org
   tp...@archlinux.org
 
  what is your suggestion instead of ALSA?
 There is no sugesstion, there is no sound framework working for all.
 That's only my observation that sound is always broken for someone.
 greetings
 tpowa
 --
 Tobias Powalowski
 Archlinux Developer  Package Maintainer (tpowa)
 http://www.archlinux.org
 tp...@archlinux.org



that's not just about sound. something is always broken for someone. but the
reasons are different.


Re: [arch-general] HELP: dmraid-1.0.0rc15 in testing - Possible Bug: All Partitions are GONE??

2009-06-25 Thread David C. Rankin
On Wednesday 24 June 2009 12:28:42 am Tobias Powalowski wrote:
 Am Mittwoch 24 Juni 2009 schrieb David C. Rankin:
  On Tuesday 23 June 2009 04:20:51 pm David C. Rankin wrote:
  big snip
 
 Now this is very scary looking. The sdb[5-8] and sdd[5-8] partitions are
   GONE?? (Bummer..) Obviously, I can no longer boot archlinux??
 
  Listmates,
 
  Is there a way I can boot from the install media and then downgrade the
  kernel to 2.6.29 to see if that resolves my missing partition and won't
  boot problem for my Arch install? If so, anybody got a link to a howto or
  a short version of what I would need to do after booting from the install
  media?
 
 ftp://ftp.archlinux.org/iso/archboot
 those have 2.6.29 kernel and dmraid 1.0.0rc14 included,
 good luck
 greetings
 tpowa
 


Tobias,

I don't know whether I should throw in the towel and reinstall or 
attempt to recover the partitions by somehow recreating the device-mapper nodes 
somehow. I booted with archboot-2009.05-2 (dmraid-1.0.0rc14 and 2.6.29 kernel 
and there was no difference, all of the following were still GONE:

brw---  1 root disk 254,  2 2009-06-22 01:40 nvidia_ecaejfdip5
brw---  1 root disk 254,  3 2009-06-22 01:40 nvidia_ecaejfdip6
brw---  1 root disk 254,  4 2009-06-22 01:40 nvidia_ecaejfdip7
brw---  1 root disk 254,  5 2009-06-22 01:40 nvidia_ecaejfdip8

The raid array is seen just fine:

brw---  1 root disk 254,  0 2009-06-22 13:48 nvidia_ecaejfdi

and the raid set is active:

[01:26 ecstasy:~] # dmraid -ay
RAID set nvidia_ecaejfdi already active
RAID set nvidia_fdaacfde already active

but no partitions:

[01:34 ecstasy:~] # cat /proc/partitions
major minor  #blocks  name

   8 0  488386584 sda
   8 1  1 sda1
   8 5  72229 sda5
   8 62104483 sda6
   8 7   20972826 sda7
   8 8  465234336 sda8
   816  732574584 sdb
   832  488386584 sdc
   833  1 sdc1
   837  72229 sdc5
   8382104483 sdc6
   839   20972826 sdc7
   840  465234336 sdc8
   848  732574584 sdd
 253 0  732574583 dm-0
 253 1  488386583 dm-1
 253 2  488384001 dm-2
 253 3  72229 dm-3
 253 42104483 dm-4
 253 5   20972826 dm-5
 253 6  465234336 dm-6
 253 7  72229 dm-7
 253 82104483 dm-8
 253 9   20972826 dm-9
 25310  465234336 dm-10


After whatever happened -- happened every one of the partitions is 
gone. I'm sure the data and boundaries are still there and intact, but I can't 
find a way to get to it and set it up. 

What's the consensus, just scrap this Arch install and reinstall?

-- 
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com


Re: [arch-general] sound busted after upgrade to kernel 2.6.30?

2009-06-25 Thread Giovanni Scafora
2009/6/24, Jozsef joz...@gmx.com:
 that's not just about sound. something is always broken for someone. but the
  reasons are different.

Do you already tried with alsaconf?


-- 
Arch Linux Developer
http://www.archlinux.org


Re: [arch-general] sound busted after upgrade to kernel 2.6.30?

2009-06-25 Thread Dieter Plaetinck
On Thu, 25 Jun 2009 08:11:03 +0200
Tobias Powalowski t.p...@gmx.de wrote:

 Am Donnerstag 25 Juni 2009 schrieb Jozsef:
  On Thu, Jun 25, 2009 at 8:33 AM, Tobias Powalowski t.p...@gmx.de
  wrote:
   Alsa tends to break for some people with every major release, so
   manual fixing
   is needed.
   Alsa never worked perfectly and will not in the future, that is
   what i can tell ya from the past 5 years.
   greetings
   tpowa
   --
   Tobias Powalowski
   Archlinux Developer  Package Maintainer (tpowa)
   http://www.archlinux.org
   tp...@archlinux.org
 
  what is your suggestion instead of ALSA?
 There is no sugesstion, there is no sound framework working for all. 
 That's only my observation that sound is always broken for someone.
 greetings
 tpowa

You could also try OSS v4.
http://insanecoding.blogspot.com/2009/06/state-of-sound-in-linux-not-so-sorry.html
Note the special mention of Arch in there :)

Dieter


Re: [arch-general] sound busted after upgrade to kernel 2.6.30?

2009-06-25 Thread Roman Kyrylych
On Thu, Jun 25, 2009 at 07:59, Chris Brannoncmbran...@cox.net wrote:
 My sound was busted yesterday when I upgraded from kernel 2.6.29 to 2.6.30.
 I had to regenerate my asound.state.
 At first, I thought it was just my problem, because I use the softvol plugin.
 This gave me trouble in the past.
 A friend of mine reported the same experience, so someone else had audio
 problems on upgrade as well.

 What happened to ALSA?
 Did anyone else have the same trouble?

I had the same, but there's a positive side: now I don't have useless
channels in alsamixer,
and can tune each of my headphone output jacks (have 2 of them on my
laptop) separately.
No wonder that such changes in a number of channels required
asound.state update.
Warning about unknown card was confusing though.

-- 
Roman Kyrylych (Роман Кирилич)


Re: [arch-general] sound busted after upgrade to kernel 2.6.30?

2009-06-25 Thread Juan Diego
I had it too but I ran alsaconf and problem fixed

On Thu, Jun 25, 2009 at 6:53 PM, Roman Kyrylychroman.kyryl...@gmail.com wrote:
 On Thu, Jun 25, 2009 at 07:59, Chris Brannoncmbran...@cox.net wrote:
 My sound was busted yesterday when I upgraded from kernel 2.6.29 to 2.6.30.
 I had to regenerate my asound.state.
 At first, I thought it was just my problem, because I use the softvol plugin.
 This gave me trouble in the past.
 A friend of mine reported the same experience, so someone else had audio
 problems on upgrade as well.

 What happened to ALSA?
 Did anyone else have the same trouble?

 I had the same, but there's a positive side: now I don't have useless
 channels in alsamixer,
 and can tune each of my headphone output jacks (have 2 of them on my
 laptop) separately.
 No wonder that such changes in a number of channels required
 asound.state update.
 Warning about unknown card was confusing though.

 --
 Roman Kyrylych (Роман Кирилич)



Re: [arch-general] sound busted after upgrade to kernel 2.6.30?

2009-06-25 Thread Guilherme M. Nogueira
I had problems with alsa in Feb and I changed to OSSv4.
The only think I miss is a simpler tray mixer just to control
the virtual mixer vmix0-outvol.
But sound itself is great!


-- 
Malformed message exception
= Guilherme M. Nogueira
= http://nirev.org/


Re: [arch-general] Not able to do system updates

2009-06-25 Thread Marco
 Anything any of you might want me to try to figure this out, it'll be
 greatly appreciated.

Any kind of error message? You know, I am not aware of clairvoyance
capabilities showed by anyone on this list...
Is your disk full (tried df -h?)? You can remove cached packages
(downloaded and stored by pacman in some previous installation) with
sudo pacman -Scc (answer yes to both questions). Is your internet
connection working?

Greetings,
Marco


Re: [arch-general] Not able to do system updates

2009-06-25 Thread Will Siddall
Marco,
I'm not expecting anyone to be clairvoyant, that's why I'm asking for help :P

- the disk has got 7G left on it
- the internet is working fine.  Like I mentioned, I'm able to
download the update lists, but from that point it won't do anything
else.

Thanks,
Will

On Thu, Jun 25, 2009 at 10:41 AM, Marcodoma...@gmail.com wrote:
 Anything any of you might want me to try to figure this out, it'll be
 greatly appreciated.

 Any kind of error message? You know, I am not aware of clairvoyance
 capabilities showed by anyone on this list...
 Is your disk full (tried df -h?)? You can remove cached packages
 (downloaded and stored by pacman in some previous installation) with
 sudo pacman -Scc (answer yes to both questions). Is your internet
 connection working?

 Greetings,
 Marco



Re: [arch-general] Not able to do system updates

2009-06-25 Thread Xavier
On Thu, Jun 25, 2009 at 3:46 PM, Will Siddallwill.sidd...@gmail.com wrote:
 Marco,
 I'm not expecting anyone to be clairvoyant, that's why I'm asking for help :P

 - the disk has got 7G left on it
 - the internet is working fine.  Like I mentioned, I'm able to
 download the update lists, but from that point it won't do anything
 else.


Which mirror are you using, and how often does it synchronize?
Don't you just need to be more patient?


Re: [arch-general] Not able to do system updates

2009-06-25 Thread Andrei Thorp
Excerpts from Will Siddall's message of Thu Jun 25 09:33:40 -0400 2009:
 I tried with 'sudo pacman -Su' and with 'yaourt -Su' and nothing.

So... for the record, there is _no_ output from pacman?
-- 
Andrei Thorp, Developer: Xandros Corp. (http://www.xandros.com)

[...] or some clown changed the chips on a board and not its name.
(Don't laugh!  Look at the SMC etherpower for that.)
-- from /usr/src/linux/MAINTAINERS


Re: [arch-general] Not able to do system updates

2009-06-25 Thread justin caratzas
I had this happen to me with the kernel upgrade, and its just the case of
the repository mirror not being instantly updated.  Thats how I learned to
stop worrying and trust the pacman (and yaourt to some degree).

justin

On Thu, Jun 25, 2009 at 9:51 AM, Andrei Thorp gar...@gmail.com wrote:

 Excerpts from Will Siddall's message of Thu Jun 25 09:33:40 -0400 2009:
  I tried with 'sudo pacman -Su' and with 'yaourt -Su' and nothing.

 So... for the record, there is _no_ output from pacman?
 --
 Andrei Thorp, Developer: Xandros Corp. (http://www.xandros.com)

 [...] or some clown changed the chips on a board and not its name.
 (Don't laugh!  Look at the SMC etherpower for that.)
-- from /usr/src/linux/MAINTAINERS



Re: [arch-general] Not able to do system updates

2009-06-25 Thread Will Siddall
Thanks everyone for the responses.  I can't be sure that it's the
repository since I've been putting off upgrading my Amarok lately, so
that's constantly in the list... and even that's gone now.

And there is output from pacman, just 'No upgrades found'

I just re-ran rankmirrors and tried again... no difference

Will

On Thu, Jun 25, 2009 at 10:57 AM, justin
caratzasjustin.carat...@gmail.com wrote:
 I had this happen to me with the kernel upgrade, and its just the case of
 the repository mirror not being instantly updated.  Thats how I learned to
 stop worrying and trust the pacman (and yaourt to some degree).

 justin

 On Thu, Jun 25, 2009 at 9:51 AM, Andrei Thorp gar...@gmail.com wrote:

 Excerpts from Will Siddall's message of Thu Jun 25 09:33:40 -0400 2009:
  I tried with 'sudo pacman -Su' and with 'yaourt -Su' and nothing.

 So... for the record, there is _no_ output from pacman?
 --
 Andrei Thorp, Developer: Xandros Corp. (http://www.xandros.com)

 [...] or some clown changed the chips on a board and not its name.
 (Don't laugh!  Look at the SMC etherpower for that.)
        -- from /usr/src/linux/MAINTAINERS




Re: [arch-general] readline GPL violation on two pkgs?

2009-06-25 Thread Andrei Thorp
Excerpts from Gerardo Exequiel Pozzi's message of Wed Jun 24 21:51:14 -0400 
2009:
 Aaron Griffin wrote:
  And if we get in tight, there are conflicts between different versions
  of the GPL, this is ugly. To this are the lawyers, who enjoy these
  things, and not for us who are programmers, right?
 
  Good Luck.
  
 
  To paraphrase what Thomas said to me: This is all free software, we
  should be able to use free software with other free software, damnit.
  It seems to go against the spirit to do things like this. I like this
  sentiment. I mean, I get that there are zealots out there who strongly
  believe in their Chosen License as if it were a soccer team, but
  seriously - it's all free software, and we may be subtly violating the
  letter of the license, but the letter of the license is violating the
  _spirit_ of the license.
 

 Ok Aaron thanks for the clarification :)
 
 I liked this phrase: ...but the letter of the license is violating the
 _spirit_ of the license ;)

This may be bad thinking, but to be honest -- is Stallman, Linus, or
BSD Guy _really_ going to sue a fellow open source program / distro
for just using their stuff?
-- 
Andrei Thorp, Developer: Xandros Corp. (http://www.xandros.com)

Ever heard of .cshrc?
That's a city in Bosnia.  Right?
-- Discussion in comp.os.linux.misc on the intuitiveness of commands


Re: [arch-general] sound busted after upgrade to kernel 2.6.30?

2009-06-25 Thread Damjan Georgievski
 My sound was busted yesterday when I upgraded from kernel 2.6.29 to 2.6.30.
 I had to regenerate my asound.state.

Was you only problem the asound.state (i.e. the saved mixer settings)?

With different version of an ALSA driver, the way it sees the mixer
might change, so that old saved settings will not apply for the newer
driver.
It's only a matter of opening alsamixer, setting everything up as you
want, and running alsactl store at the end.

Depending on the driver it might happen from time to time.

 At first, I thought it was just my problem, because I use the softvol plugin.
 This gave me trouble in the past.
 A friend of mine reported the same experience, so someone else had audio
 problems on upgrade as well.




-- 
damjan


Re: [arch-general] readline GPL violation on two pkgs?

2009-06-25 Thread Damjan Georgievski
 To paraphrase what Thomas said to me: This is all free software, we
 should be able to use free software with other free software, damnit.

And you are! You *are* free to use any free software with any other.
The only problem is with distribution of binary/compiled/linked packages :)

Install everything from ABS and you are 100% legit


 It seems to go against the spirit to do things like this. I like this
 sentiment. I mean, I get that there are zealots out there who strongly
 believe in their Chosen License as if it were a soccer team, but
 seriously - it's all free software, and we may be subtly violating the
 letter of the license, but the letter of the license is violating the
 _spirit_ of the license.




-- 
damjan


Re: [arch-general] Not able to do system updates

2009-06-25 Thread Will Siddall
Thanks Thomas,
I'll be sure to try that next time :P.  Sorry to waste your time with this.

On Thu, Jun 25, 2009 at 1:59 PM, Thomas Bächlertho...@archlinux.org wrote:
 Will Siddall schrieb:

 Alright, after looking up the mirror's list
 (http://users.archlinux.de/~gerbra/mirrorcheck.html), I pointed to one
 of the more recently updated mirrors and ran the update.  This worked.
  I can download and upgrade my system.

 When I set my mirrors list back, and re-synchronize, everything is
 back to normal.

 Maybe you should have tried pacman -Syy, that often helps.




Re: [arch-general] readline GPL violation on two pkgs?

2009-06-25 Thread David C. Rankin
On Thursday 25 June 2009 11:01:18 am Damjan Georgievski wrote:
  To paraphrase what Thomas said to me: This is all free software, we
  should be able to use free software with other free software, damnit.
 
 And you are! You *are* free to use any free software with any other.
 The only problem is with distribution of binary/compiled/linked packages :)
 
 Install everything from ABS and you are 100% legit
 
 
  It seems to go against the spirit to do things like this. I like this
  sentiment. I mean, I get that there are zealots out there who strongly
  believe in their Chosen License as if it were a soccer team, but
  seriously - it's all free software, and we may be subtly violating the
  letter of the license, but the letter of the license is violating the
  _spirit_ of the license.
 
 
 

1.  Start Here: http://www.fsf.org/licensing/licenses/

 Note: GPLv3 is not compatible with GPLv2 *by itself*. However, *most 
software* released under GPLv2 allows you to use the terms of later versions of 
the GPL as well. When this is the case, you can use GPL2 code under GPLv3 to 
make the desired combination. The *only time* you may not be able to combine 
code under two GPL licenses is when you want to use code that's *only* under an 
older version of a license with code that's under a newer version. 

HOW DO YOU TELL?

2.  Read the GPL V2 license included with whatever package or library you 
are looking at. Go to section 9 of the GPLV2 license included with the code. If 
section 9 reads:

  9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

Each version is given a distinguishing version number.  If the Program
specifies a version number of this License which applies to it and any
later version, you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation.  If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.

Then no mixed licensing issue apply and the GPL2 code can be used 
without issue in GPL3 release code. Only if the paragraph:

Each version is given a distinguishing version number.  If the Program
specifies a version number of this License which applies to it and any
later version, you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation.  If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.

is *NOT* included in the GLP2 license of the code you want to use, then 
check the compatibility matrix below to determine if a compatibility issue 
exists:

http://www.fsf.org/licensing/licenses/gpl-faq.html#AllCompatibility

3.  If, and only if, a compatibility issues still remains after you have 
completed steps 1  2, then you will need to contact the author for permission 
to re-license.

P.S. Note: nothing contained here constitutes legal advise, rather it is simply 
a handy reference with the applicable links and text provided to allow you to 
analyze whether a potential for a licensing conflict exists.

-- 
David C. Rankin, J.D.,P.E.
Rankin Law Firm, PLLC
510 Ochiltree Street
Nacogdoches, Texas 75961
Telephone: (936) 715-9333
Facsimile: (936) 715-9339
www.rankinlawfirm.com


Re: [arch-general] Not able to do system updates

2009-06-25 Thread Thomas Bächler

Will Siddall schrieb:

Alright, after looking up the mirror's list
(http://users.archlinux.de/~gerbra/mirrorcheck.html), I pointed to one
of the more recently updated mirrors and ran the update.  This worked.
 I can download and upgrade my system.

When I set my mirrors list back, and re-synchronize, everything is
back to normal.


Maybe you should have tried pacman -Syy, that often helps.



signature.asc
Description: OpenPGP digital signature


[arch-general] libtorrent-rasterbar PKBUILD patch

2009-06-25 Thread Damien Churchill
Here's a patch to upgrade the libtorrent-rasterbar package in extra.
It's pretty simple, just increasing the pkgver to 0.14.4 and changing
the md5sum.

I've been using it for a number of weeks now without issue.

Damien


libtorrent-rasterbar-pkgbuild.patch
Description: Binary data


[arch-general] dmraid Partitions Lost - Recovered - Howto

2009-06-25 Thread David C. Rankin
List,

I thought I would pass this along should anyone else experience a loss 
of all partitions on a drive or array. May help somebody out someday:

dmraid Partition Loss with dmraid-1.0.0rc15

Testing dmraid-1.0.0rc15 on a box with two separate dmraid arrays, I 
experienced the total loss of all partitions on the second dmraid array. The 
first array held an openSuSE install running dmraid-1.0.0rc14 while the second 
held Archlinux with dmraid-1.0.0rc15 where testing was being done. All testing 
of dmraid-1.0.0rc15 on Archlinux went fine, the problem occurred when the 
machine was boot back into openSuSE. Regardless of the situation, whether using 
a raid setup or not, partition loss is serious business.

dmraid Partition Recovery

Recovery of dmraid partitions proceed in the same manner as recovering 
partitions from a singe drive. if you haven't destroyed the information on the 
array, you should be able to put the pieces of the puzzle back together again. 
The basic outline for the process is to locate and restore the partitions on 
the array and then reinstall the boot loader so your box is functional again. 
(Note: if you were smart enough to save the fdisk -l information for your 
drives, you can simply fdisk your array and be done)

Tools Required

Partition location and recovery software (I used testdisk)
http://www.cgsecurity.org/
http://www.cgsecurity.org/wiki/TestDisk_Download
http://www.cgsecurity.org/testdisk-6.11.linux26.tar.bz2

Rescue CD for your OS (generally your install CD/DVD, or knoppix, etc.)

Using testdisk

testdisk is a great piece of GPL code written by Christophe Grenier. 
testdisk can be used with most operating systems and will scan you disk or 
array and locate partition boundaries and give you the opportunity to recover 
them. I had 4 partitions dedicated to my Archlinux install totaling roughly 70G 
on a 750G raid array. To start testdisk, for Linux26, you will untar the bzip 
archive and then cd into the linux subdirectory. The prebuilt binary is:

./testdisk_static

The first thing you will need to do is set the correct disk geometry. 
In my case the disk reported 254 heads and needed to be changed to 255 heads to 
work properly. (This is recommended if the first Quick Scan doesn't find your 
partitions).

After setting the geometry, just choose Analyze and Quick Scan and 
go get a coffee or something. In my case since the 70G I was using was at the 
front of the 750G array, it had found my partitions within 5 minutes or so. 
Once all of your partitions are found you can Stop the scan by hitting the 
return key.

You are then presented with the list of found partitions. They will be 
initially labeled D for deleted and you simply toggle on the partitions you 
need to recover by selecting (P Primary, * Primary Boot, L Logical or 
leave as D for Deleted). testdisk will check your selections for partition 
overlap and give you confirmation in green if your partition layout is OK. Just 
hit return to continue. Don't worry about the extended partition boundary, it 
will be provided. Review the partitions to be recovered and choose Write and 
your are done. (a reboot is required to activate the partitions)

If no partitions were found during the Quick Scan, then (1) check 
your drive geometry setting; and (2) you will be given the option to do an In 
Depth Scan (go get 4 cups of coffee, walk the dog, etc...)

Have Your Rescue CD Handy

Once the partition information has been changed, there is a near 100% 
chance your boot loader configuration will be messed up. Don't worry, 
everything is still there, you just have to reinstall grub or lilo into the 
boot record to recover from the situation.

Reinstalling Grub

Here you will be booting from your CD or DVD into rescue mode, using 
dmraid to activate the arrays, and then using the information about the dm 
nodes in /dev/mapper and the partition information in from cat 
/proc/partitions to create a chroot of your install to repair the boot loader:

(1) boot from the install DVD

(2) choose Rescue System, login as root (no password needed)

(3) activate the dmraid arrays with dmraid -ay

(4) check which device nodes to use to create the chroot with ls -al /dev/dm* 
or ls -al /dev/mapper. I was dealing with 2 separate arrays, 9 partitions 
(duplicated by having both dmraid-1.0.0rc14 and dmraid-1.0.0rc15 metadata) that 
left me with dm-0 to dm-20 to deal with. Compare the size shown for dm-X, 
/dev/mapper/raiddevice_name and the size shown from cat /proc/partitions to 
determine your /, /home, and /boot and any other partitions you need to 
setup in your chroot.

(5) mount all dm-X devices or /dev/mapper devices under /mnt to create your 
actual filesystem, and then bind dev/, proc/ and sys/ to their respective mount 
points