Re: switching bsdlabel's label

2009-01-21 Thread Patrick Tracanelli
Jerry McAllister escreveu: On Wed, Jan 21, 2009 at 10:45:28AM -0200, Eduardo Meyer wrote: On Tue, Jan 20, 2009 at 4:42 PM, Jerry McAllister wrote: On Tue, Jan 20, 2009 at 03:36:34PM -0200, Eduardo Meyer wrote: On Tue, Jan 20, 2009 at 2:13 PM, Patrick M. Hausen wrote: Hello, On Tue, Jan 2

Re: switching bsdlabel's label

2009-01-21 Thread Oliver Fromme
Jerry McAllister wrote: > What sysinstall does is assume that the 'a' partition will be > used for a root mount and the 'b' partition will be used for swap. > Sinc 'c' is reserved, it starts with 'd'. Then, if you later > add an 'a' it will end up being later (higher offset) than the 'd'. >

Re: switching bsdlabel's label

2009-01-21 Thread Jerry McAllister
On Wed, Jan 21, 2009 at 10:45:28AM -0200, Eduardo Meyer wrote: > On Tue, Jan 20, 2009 at 4:42 PM, Jerry McAllister wrote: > > On Tue, Jan 20, 2009 at 03:36:34PM -0200, Eduardo Meyer wrote: > > > >> On Tue, Jan 20, 2009 at 2:13 PM, Patrick M. Hausen wrote: > >> > Hello, > >> > > >> > On Tue, Jan

Re: switching bsdlabel's label

2009-01-21 Thread Eduardo Meyer
On Tue, Jan 20, 2009 at 4:42 PM, Jerry McAllister wrote: > On Tue, Jan 20, 2009 at 03:36:34PM -0200, Eduardo Meyer wrote: > >> On Tue, Jan 20, 2009 at 2:13 PM, Patrick M. Hausen wrote: >> > Hello, >> > >> > On Tue, Jan 20, 2009 at 01:24:27PM -0200, Eduardo Meyer wrote: >> >> I have a certain disk

Re: switching bsdlabel's label

2009-01-20 Thread Wojciech Puchar
yes On Tue, 20 Jan 2009, Eduardo Meyer wrote: Hello, I have a certain disk where da0s1a and da0s1d are inverted. By some reason someone labelled root as 'd' and home as 'a'. Can I just bsdlabel -n da0s1 > savedabel.txt Edit savedlabel.txt, switch and restore? (bsdlabel -R da0s1 savedlabel)

Re: switching bsdlabel's label

2009-01-20 Thread Jerry McAllister
On Tue, Jan 20, 2009 at 03:36:34PM -0200, Eduardo Meyer wrote: > On Tue, Jan 20, 2009 at 2:13 PM, Patrick M. Hausen wrote: > > Hello, > > > > On Tue, Jan 20, 2009 at 01:24:27PM -0200, Eduardo Meyer wrote: > >> I have a certain disk where da0s1a and da0s1d are inverted. By some > >> reason someone

Re: switching bsdlabel's label

2009-01-20 Thread David Wolfskill
On Tue, Jan 20, 2009 at 03:36:34PM -0200, Eduardo Meyer wrote: > ... > > Why not simply use bsdlabel -e da0s1? > > Because I didnt know about that? ;-) > > Thank you for the hint. > > However I still have the same doubt. Since basically its the same > task, Is it safe do relabel this way? I hav

Re: switching bsdlabel's label

2009-01-20 Thread Eduardo Meyer
On Tue, Jan 20, 2009 at 2:13 PM, Patrick M. Hausen wrote: > Hello, > > On Tue, Jan 20, 2009 at 01:24:27PM -0200, Eduardo Meyer wrote: >> I have a certain disk where da0s1a and da0s1d are inverted. By some >> reason someone labelled root as 'd' and home as 'a'. >> >> Can I just >> >> bsdlabel -n da

Re: switching bsdlabel's label

2009-01-20 Thread Patrick M. Hausen
Hello, On Tue, Jan 20, 2009 at 01:24:27PM -0200, Eduardo Meyer wrote: > I have a certain disk where da0s1a and da0s1d are inverted. By some > reason someone labelled root as 'd' and home as 'a'. > > Can I just > > bsdlabel -n da0s1 > savedabel.txt > > Edit savedlabel.txt, switch and restore? (b

switching bsdlabel's label

2009-01-20 Thread Eduardo Meyer
Hello, I have a certain disk where da0s1a and da0s1d are inverted. By some reason someone labelled root as 'd' and home as 'a'. Can I just bsdlabel -n da0s1 > savedabel.txt Edit savedlabel.txt, switch and restore? (bsdlabel -R da0s1 savedlabel) -- === Eduardo Meyer pessoal: dudu.me...