Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-09-05 Thread Peter Humphrey
On Saturday 04 September 2010 08:23:41 Nikos Chantziaras wrote:

 Something seems screwed in your config.  Try creating a new test user
 and login with that one.  See if it still happens there.

You're right. I did that and info:grub was displayed properly in 
Konqueror. Now to find what's gone wrong.

-- 
Rgds
Peter.  Linux Counter 5290, 1994-04-23.



[gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-09-04 Thread Nikos Chantziaras

On 09/04/2010 01:31 AM, Peter Humphrey wrote:

On Friday 03 September 2010 22:19:47 Neil Bothwick wrote:

On Fri, 3 Sep 2010 17:31:08 +0100, Peter Humphrey wrote:

Just open konqueror and where URLs go, just type in man:ls or
info:ls and the man or info page will pop up.


Yes, thanks, I can do that. I just wanted to get my file
associations cleaned up.


This isn't a file association though, it's choosing what to run based
on the protocol. Do you have kde-base/kdebase-kioslaves installed?
If you do, re-emerging it may fix whatever has become broken.


Thanks for the idea, but it didn't help. (Is it possible not to have the
IO slaves installed? I suppose it is, but what a lot of usefulness would
be lost thereby.)

It may be significant that I get a new tab in the existing Firefox
window, plus a new window in front of the existing one. What might cause
that?


Something seems screwed in your config.  Try creating a new test user 
and login with that one.  See if it still happens there.





Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-09-03 Thread Peter Humphrey
On Friday 03 September 2010 00:57:00 Nikos Chantziaras wrote:
 On 09/03/2010 01:10 AM, Peter Humphrey wrote:
  On Thursday 02 September 2010 10:38:17 Nikos Chantziaras wrote:
  If you're on KDE you can also read info documents with a much
  nicer, hyperlinked interface.  Either enter info:grub in
  krunner (Alt+F2, fastest way) or as a URL in Konqueror.
  
  Not here. My firefox doesn't know what to do with info pages.
  What's the recipe?
 
 KRunner.

...which calls Firefox, which doesnt' know what to do.

-- 
Rgds
Peter.  Linux Counter 5290, 1994-04-23.



[gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-09-03 Thread Nikos Chantziaras

On 09/03/2010 06:54 PM, Peter Humphrey wrote:

On Friday 03 September 2010 00:57:00 Nikos Chantziaras wrote:

On 09/03/2010 01:10 AM, Peter Humphrey wrote:

On Thursday 02 September 2010 10:38:17 Nikos Chantziaras wrote:

If you're on KDE you can also read info documents with a much
nicer, hyperlinked interface.  Either enter info:grub in
krunner (Alt+F2, fastest way) or as a URL in Konqueror.


Not here. My firefox doesn't know what to do with info pages.
What's the recipe?


KRunner.


...which calls Firefox, which doesnt' know what to do.


That's not possible.  Firefox handles http:, ftp:, etc, not info: 
and man:.


You must either have found a bug, or have changed some configuration 
option without knowing.





Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-09-03 Thread Dale

Peter Humphrey wrote:

On Friday 03 September 2010 00:57:00 Nikos Chantziaras wrote:
   

On 09/03/2010 01:10 AM, Peter Humphrey wrote:
 

On Thursday 02 September 2010 10:38:17 Nikos Chantziaras wrote:
   

If you're on KDE you can also read info documents with a much
nicer, hyperlinked interface.  Either enter info:grub in
krunner (Alt+F2, fastest way) or as a URL in Konqueror.
 

Not here. My firefox doesn't know what to do with info pages.
What's the recipe?
   

KRunner.
 

...which calls Firefox, which doesnt' know what to do.

   


Just open konqueror and where URLs go, just type in man:ls or 
info:ls and the man or info page will pop up.


Dale

:-)  :-)



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-09-03 Thread Peter Humphrey
On Friday 03 September 2010 17:01:44 Nikos Chantziaras wrote:
 On 09/03/2010 06:54 PM, Peter Humphrey wrote:
  On Friday 03 September 2010 00:57:00 Nikos Chantziaras wrote:
  On 09/03/2010 01:10 AM, Peter Humphrey wrote:
  On Thursday 02 September 2010 10:38:17 Nikos Chantziaras wrote:
  If you're on KDE you can also read info documents with a much
  nicer, hyperlinked interface.  Either enter info:grub in
  krunner (Alt+F2, fastest way) or as a URL in Konqueror.
  
  Not here. My firefox doesn't know what to do with info pages.
  What's the recipe?
  
  KRunner.
  
  ...which calls Firefox, which doesnt' know what to do.
 
 That's not possible.  Firefox handles http:, ftp:, etc, not
 info: and man:.
 
 You must either have found a bug, or have changed some configuration
 option without knowing.

Possible or not, it happens.

On searching through the KDE file associations I don't see an entry for 
info files, and the one for x-troff-man doesn't mention Firefox, so I 
don't know why it's being called. That's why I asked for the recipe to 
add to the file associations.

-- 
Rgds
Peter.  Linux Counter 5290, 1994-04-23.



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-09-03 Thread Thanasis
 on 09/03/2010 01:10 AM Peter Humphrey wrote the following:
 On Thursday 02 September 2010 10:38:17 Nikos Chantziaras wrote:

 If you're on KDE you can also read info documents with a much nicer,
 hyperlinked interface.  Either enter info:grub in krunner (Alt+F2,
 fastest way) or as a URL in Konqueror.

 Not here. My firefox doesn't know what to do with info pages. What's the 
 recipe?

mine calls gnome Help 2.30.1 and it works.



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-09-03 Thread Peter Humphrey
On Friday 03 September 2010 17:19:08 Dale wrote:

 Just open konqueror and where URLs go, just type in man:ls or
 info:ls and the man or info page will pop up.

Yes, thanks, I can do that. I just wanted to get my file associations 
cleaned up.

-- 
Rgds
Peter.  Linux Counter 5290, 1994-04-23.



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-09-03 Thread Dale

Peter Humphrey wrote:

On Friday 03 September 2010 17:19:08 Dale wrote:

   

Just open konqueror and where URLs go, just type in man:ls or
info:ls and the man or info page will pop up.
 

Yes, thanks, I can do that. I just wanted to get my file associations
cleaned up.

   


I read about this a while ago.  I'm not sure that it is a file 
association like is used for other things.  Those usually use something 
on the end of a file name and man and info is at the beginning of this.  
It seems to me that man and info is replacing things like http and other 
prefixes so it sees this as something different.


I saw the settings for this somewhere back in KDE 3.5 but I am having no 
luck in KDE4.  It's somewhere but I can't find it at the moment.


Dale

:-)  :-)



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-09-03 Thread Neil Bothwick
On Fri, 3 Sep 2010 17:31:08 +0100, Peter Humphrey wrote:

  Just open konqueror and where URLs go, just type in man:ls or
  info:ls and the man or info page will pop up.  
 
 Yes, thanks, I can do that. I just wanted to get my file associations 
 cleaned up.

This isn't a file association though, it's choosing what to run based on
the protocol. Do you have kde-base/kdebase-kioslaves installed? If you
do, re-emerging it may fix whatever has become broken.


-- 
Neil Bothwick

Time for a diet! -- [NO FLABBIER].


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-09-03 Thread Peter Humphrey
On Friday 03 September 2010 22:19:47 Neil Bothwick wrote:
 On Fri, 3 Sep 2010 17:31:08 +0100, Peter Humphrey wrote:
   Just open konqueror and where URLs go, just type in man:ls or
   info:ls and the man or info page will pop up.
  
  Yes, thanks, I can do that. I just wanted to get my file
  associations cleaned up.
 
 This isn't a file association though, it's choosing what to run based
 on the protocol. Do you have kde-base/kdebase-kioslaves installed?
 If you do, re-emerging it may fix whatever has become broken.

Thanks for the idea, but it didn't help. (Is it possible not to have the 
IO slaves installed? I suppose it is, but what a lot of usefulness would 
be lost thereby.)

It may be significant that I get a new tab in the existing Firefox 
window, plus a new window in front of the existing one. What might cause 
that?

-- 
Rgds
Peter.  Linux Counter 5290, 1994-04-23.



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-09-02 Thread Neil Bothwick
On Wed, 01 Sep 2010 02:12:45 -0500, Dale wrote:

 I would like either the old IDE drives to come first, since I rarely 
 ever move them or grub to work with labels.  I have a entry in
 grub.conf that uses the labels but i have not rebooted yet.  According
 to what I have read it will work.  The only concern is that if grub
 doesn't like labels and I add another  drive, then I got to edit the
 grub boot line to boot and it took me a couple tries to get this
 right.  It seeing what used to be the last drive first sort of took me
 by surprise.  I don't like surprises to much.

Press c to get the GRUB command line and then use find to identify your
root partition - find /etc/fstab will work unless you have two root
partitions. There's no need for suck-it-and-see editing of config files,
you only have to change menu.lst after you have found and tested the
correct boot options.

-- 
Neil Bothwick

Next time you wave at me, use more than one finger, please.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-09-02 Thread Dale

Neil Bothwick wrote:

On Wed, 01 Sep 2010 02:12:45 -0500, Dale wrote:

   

I would like either the old IDE drives to come first, since I rarely
ever move them or grub to work with labels.  I have a entry in
grub.conf that uses the labels but i have not rebooted yet.  According
to what I have read it will work.  The only concern is that if grub
doesn't like labels and I add another  drive, then I got to edit the
grub boot line to boot and it took me a couple tries to get this
right.  It seeing what used to be the last drive first sort of took me
by surprise.  I don't like surprises to much.
 

Press c to get the GRUB command line and then use find to identify your
root partition - find /etc/fstab will work unless you have two root
partitions. There's no need for suck-it-and-see editing of config files,
you only have to change menu.lst after you have found and tested the
correct boot options.

   


I know I switched to grub from lilo because it was user friendly but I 
haven't used this feature.  So instead of hitting e, I hit c and it 
gives me something similar to what I get when I type grub into a console 
when booted?  I did a man grub here and I don't see that documented.  Is 
this documented somewhere?


I do have a old back-up copy of Gentoo on another drive.  Since it's not 
tarballed, I guess it would find its fstab too.  Grub would think it is 
a second OS.  This is interesting.  I'm hoping this is documented 
somewhere so I can do some reading.


Thanks.

Dale

:-)   :-)



[gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-09-02 Thread Nikos Chantziaras

On 09/02/2010 11:46 AM, Dale wrote:

Neil Bothwick wrote:

On Wed, 01 Sep 2010 02:12:45 -0500, Dale wrote:


I would like either the old IDE drives to come first, since I rarely
ever move them or grub to work with labels. I have a entry in
grub.conf that uses the labels but i have not rebooted yet. According
to what I have read it will work. The only concern is that if grub
doesn't like labels and I add another drive, then I got to edit the
grub boot line to boot and it took me a couple tries to get this
right. It seeing what used to be the last drive first sort of took me
by surprise. I don't like surprises to much.

Press c to get the GRUB command line and then use find to identify your
root partition - find /etc/fstab will work unless you have two root
partitions. There's no need for suck-it-and-see editing of config files,
you only have to change menu.lst after you have found and tested the
correct boot options.



I know I switched to grub from lilo because it was user friendly but I
haven't used this feature. So instead of hitting e, I hit c and it
gives me something similar to what I get when I type grub into a console
when booted? I did a man grub here and I don't see that documented. Is
this documented somewhere?


Yes.  When you press ESC in Grub to go to text mode, it says right there 
that you can press c to enter edit mode :)





Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-09-02 Thread Dale

Nikos Chantziaras wrote:

On 09/02/2010 11:46 AM, Dale wrote:

Neil Bothwick wrote:

On Wed, 01 Sep 2010 02:12:45 -0500, Dale wrote:


I would like either the old IDE drives to come first, since I rarely
ever move them or grub to work with labels. I have a entry in
grub.conf that uses the labels but i have not rebooted yet. According
to what I have read it will work. The only concern is that if grub
doesn't like labels and I add another drive, then I got to edit the
grub boot line to boot and it took me a couple tries to get this
right. It seeing what used to be the last drive first sort of took me
by surprise. I don't like surprises to much.

Press c to get the GRUB command line and then use find to identify your
root partition - find /etc/fstab will work unless you have two root
partitions. There's no need for suck-it-and-see editing of config 
files,

you only have to change menu.lst after you have found and tested the
correct boot options.



I know I switched to grub from lilo because it was user friendly but I
haven't used this feature. So instead of hitting e, I hit c and it
gives me something similar to what I get when I type grub into a console
when booted? I did a man grub here and I don't see that documented. Is
this documented somewhere?


Yes.  When you press ESC in Grub to go to text mode, it says right 
there that you can press c to enter edit mode :)





I was hoping for something like a man page or something tho.   I would 
like to read up on this a little before jumping in head first.  Does it 
have a little info on screen on what does what at least?  I think the 
edit screen does but not sure about this part.


Thanks.

Dale

:-)  :-)



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-09-02 Thread Alex Schuster
Dale writes:

 I was hoping for something like a man page or something tho.   I would
 like to read up on this a little before jumping in head first.  Does it
 have a little info on screen on what does what at least?  I think the
 edit screen does but not sure about this part.

Grub comes with a lot of documentation. Although the man page is very 
small, it says that the full documentation comes as Texinfo manual, so 
'info grub' gives you the full manual. Or read it online here:

http://www.gnu.org/software/grub/manual/legacy/

Wonko



[gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-09-02 Thread Nikos Chantziaras

On 09/02/2010 12:25 PM, Alex Schuster wrote:

Dale writes:


I was hoping for something like a man page or something tho.   I would
like to read up on this a little before jumping in head first.  Does it
have a little info on screen on what does what at least?  I think the
edit screen does but not sure about this part.


Grub comes with a lot of documentation. Although the man page is very
small, it says that the full documentation comes as Texinfo manual, so
'info grub' gives you the full manual. Or read it online here:

http://www.gnu.org/software/grub/manual/legacy/


If you're on KDE you can also read info documents with a much nicer, 
hyperlinked interface.  Either enter info:grub in krunner (Alt+F2, 
fastest way) or as a URL in Konqueror.  Works with man pages too, btw 
(man: instead of info:).





Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-09-02 Thread Dale

Nikos Chantziaras wrote:

On 09/02/2010 12:25 PM, Alex Schuster wrote:

Dale writes:


I was hoping for something like a man page or something tho.   I would
like to read up on this a little before jumping in head first.  Does it
have a little info on screen on what does what at least?  I think the
edit screen does but not sure about this part.


Grub comes with a lot of documentation. Although the man page is very
small, it says that the full documentation comes as Texinfo manual, so
'info grub' gives you the full manual. Or read it online here:

http://www.gnu.org/software/grub/manual/legacy/


If you're on KDE you can also read info documents with a much nicer, 
hyperlinked interface.  Either enter info:grub in krunner (Alt+F2, 
fastest way) or as a URL in Konqueror.  Works with man pages too, btw 
(man: instead of info:).





I knew about man:* in Konqueror but I didn't know about the info:* 
feature.  Now that is cool.


Thanks much to both of you.  I got some reading to do.

Dale

:-)  :-)



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-09-02 Thread Peter Humphrey
On Thursday 02 September 2010 10:38:17 Nikos Chantziaras wrote:

 If you're on KDE you can also read info documents with a much nicer,
 hyperlinked interface.  Either enter info:grub in krunner (Alt+F2,
 fastest way) or as a URL in Konqueror.

Not here. My firefox doesn't know what to do with info pages. What's the 
recipe?

-- 
Rgds
Peter.  Linux Counter 5290, 1994-04-23.



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-09-02 Thread Dale

Peter Humphrey wrote:

On Thursday 02 September 2010 10:38:17 Nikos Chantziaras wrote:

   

If you're on KDE you can also read info documents with a much nicer,
hyperlinked interface.  Either enter info:grub in krunner (Alt+F2,
fastest way) or as a URL in Konqueror.
 

Not here. My firefox doesn't know what to do with info pages. What's the
recipe?

   


I bet Firefox doesn't.  Konqueror does tho.

Dale

:-)  :-)



[gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-09-02 Thread Nikos Chantziaras

On 09/03/2010 01:10 AM, Peter Humphrey wrote:

On Thursday 02 September 2010 10:38:17 Nikos Chantziaras wrote:


If you're on KDE you can also read info documents with a much nicer,
hyperlinked interface.  Either enter info:grub in krunner (Alt+F2,
fastest way) or as a URL in Konqueror.


Not here. My firefox doesn't know what to do with info pages. What's the
recipe?


KRunner.




[gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-09-01 Thread Nikos Chantziaras

On 09/01/2010 03:38 AM, Dale wrote:

Nikos Chantziaras wrote:

On 08/27/2010 12:49 PM, Dale wrote:

Is there a way to boot a Gentoo/Knoppix CD and make it use the PATA
drivers? That way I can boot it and see exactly how it will name them
and what drive is what without actually changing anything at all. Is
there a boot option noide or some other switch I can use?


You do the labeling *before* you switch to the new kernel. Once you
get it working correctly with your current kernel, then you can
upgrade to the new ATA drivers and it will just work (which is the
whole point of this exercise.)



OK. Finally got updated to a new kernel. [...]

Anyway, this did sort of work out to be weird and not what I expected at
all. I expected the drives to be laid out in this way:

sda first drive with old ide
sdb second drive with old ide
sdc third drive with old ide
sdd forth drive with a SATA controller

Well, it actually sees the drive connected to the SATA controller first
then the other drives follow along after that in order.


I mentioned this in a reply :P  Usually SATA drives go first.  (Emphasis 
on usually.)




Naturally when I
first tried to boot I was pointing to sda6 for my root partition. Well,
it was actually on sdb6. It did list the drives just before the error
and the blinking lights on the keyboard. No scroll back either. :-( I
saw just enough to be able to figure out what drives were what.

Is there some way to get it to change this or am I stuck? My concern is
that I plan to add another drive to the SATA card soon and that will
move everything up another notch. I would really like the IDE drives to
be seen first since I rarely change them.


What exactly is the problem you have?  You can't boot?  You can simply 
hit Esc in grub and go to text-only mode, and then e to edit the 
current grub boot entry.  There you can boot from somewhere else.





Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-09-01 Thread Dale

Nikos Chantziaras wrote:

On 09/01/2010 03:38 AM, Dale wrote:

Nikos Chantziaras wrote:

On 08/27/2010 12:49 PM, Dale wrote:

Is there a way to boot a Gentoo/Knoppix CD and make it use the PATA
drivers? That way I can boot it and see exactly how it will name them
and what drive is what without actually changing anything at all. Is
there a boot option noide or some other switch I can use?


You do the labeling *before* you switch to the new kernel. Once you
get it working correctly with your current kernel, then you can
upgrade to the new ATA drivers and it will just work (which is the
whole point of this exercise.)



OK. Finally got updated to a new kernel. [...]

Anyway, this did sort of work out to be weird and not what I expected at
all. I expected the drives to be laid out in this way:

sda first drive with old ide
sdb second drive with old ide
sdc third drive with old ide
sdd forth drive with a SATA controller

Well, it actually sees the drive connected to the SATA controller first
then the other drives follow along after that in order.


I mentioned this in a reply :P  Usually SATA drives go first.  
(Emphasis on usually.)


I must have missed that part.  Of course, I'm not surprised either.  You 
know what they say about plans?






Naturally when I
first tried to boot I was pointing to sda6 for my root partition. Well,
it was actually on sdb6. It did list the drives just before the error
and the blinking lights on the keyboard. No scroll back either. :-( I
saw just enough to be able to figure out what drives were what.

Is there some way to get it to change this or am I stuck? My concern is
that I plan to add another drive to the SATA card soon and that will
move everything up another notch. I would really like the IDE drives to
be seen first since I rarely change them.


What exactly is the problem you have?  You can't boot?  You can simply 
hit Esc in grub and go to text-only mode, and then e to edit the 
current grub boot entry.  There you can boot from somewhere else.





I would like either the old IDE drives to come first, since I rarely 
ever move them or grub to work with labels.  I have a entry in grub.conf 
that uses the labels but i have not rebooted yet.  According to what I 
have read it will work.  The only concern is that if grub doesn't like 
labels and I add another  drive, then I got to edit the grub boot line 
to boot and it took me a couple tries to get this right.  It seeing what 
used to be the last drive first sort of took me by surprise.  I don't 
like surprises to much.


At least I got me a new kernel and I can see the temps and fans in gkrellm.

Dale

:-)  :-)



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-31 Thread Dale

Nikos Chantziaras wrote:

On 08/27/2010 12:49 PM, Dale wrote:

Is there a way to boot a Gentoo/Knoppix CD and make it use the PATA
drivers? That way I can boot it and see exactly how it will name them
and what drive is what without actually changing anything at all. Is
there a boot option noide or some other switch I can use?


You do the labeling *before* you switch to the new kernel.  Once you 
get it working correctly with your current kernel, then you can 
upgrade to the new ATA drivers and it will just work (which is the 
whole point of this exercise.)





OK.  Finally got updated to a new kernel.  I had some trouble with my 
sensors but after a bit of googling I found a workaround.  It appears 
that the kernel folks are trying to fix one thing and broke something 
else.  lol  Progress.


Anyway, this did sort of work out to be weird and not what I expected at 
all.  I expected the drives to be laid out in this way:


sda  first drive with old ide
sdb  second drive with old ide
sdc  third drive with old ide
sdd  forth drive with a SATA controller

Well, it actually sees the drive connected to the SATA controller first 
then the other drives follow along after that in order.  Naturally when 
I first tried to boot I was pointing to sda6 for my root partition.  
Well, it was actually on sdb6.  It did list the drives just before the 
error and the blinking lights on the keyboard.  No scroll back either.  
:-(  I saw just enough to be able to figure out what drives were what.


Is there some way to get it to change this or am I stuck?  My concern is 
that I plan to add another drive to the SATA card soon and that will 
move everything up another notch.   I would really like the IDE drives 
to be seen first since I rarely change them.


Still thinking about getting grub to see labels.  That would help too.  
Actually, that would be a good fix too.


Thanks.

Dale

:-)  :-)



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-30 Thread Paul Hartman
On Fri, Aug 27, 2010 at 9:04 PM, Daniel Pielmeier bil...@gentoo.org wrote:
 Nikos Chantziaras schrieb am 27.08.2010 18:06:
 On 08/27/2010 07:02 PM, J. Roeleveld wrote:

 Actually, you can:
 http://www.ibm.com/developerworks/linux/library/l-boot-rootfs/index.html

 (Read the section below Use a label):

 fstab:
 LABEL=ROOT          /         ext3    defaults        1 1
 LABEL=BOOT          /boot     ext3    defaults        1 2
 LABEL=SWAP          swap      swap    defaults        0 0
 LABEL=HOME          /home     ext3    nosuid,auto     1 2

 This syntax never worked here.  Always resulted in an unbootable system.
  Only the /dev/disk/by-label/ syntax works reliably.


 Afaik if you are using GRUB LEGACY (0.97) and want to use LABEL/UUID in
 your grub.conf/menu.lst you also need an initrd. I think with GRUB 2
 (1.98) it is possible without. You don't need an initrd for LABEL/UUID
 in /etc/fstab for both cases.

FWIW I'm using sys-boot/grub-0.97-r10 with GPT, labeled partitions and
no initrd. My kernel has EFI_PARTITION compiled in (no module).

My fstab looks like this:

LABEL=swap   noneswapsw  0 0
LABEL=boot  /bootext2defaults,noatime1 2
LABEL=root   /   ext4defaults,noatime0 1
LABEL=home  /home   ext4defaults,noatime0 1

My kernel boot commandline still specified root by device name
/dev/sda2 but otherwise my system works normally so far. :)



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-30 Thread Alan McKinnon
Apparently, though unproven, at 18:03 on Monday 30 August 2010, Paul Hartman 
did opine thusly:

 On Fri, Aug 27, 2010 at 9:04 PM, Daniel Pielmeier bil...@gentoo.org wrote:
  Nikos Chantziaras schrieb am 27.08.2010 18:06:
  On 08/27/2010 07:02 PM, J. Roeleveld wrote:
  Actually, you can:
  http://www.ibm.com/developerworks/linux/library/l-boot-rootfs/index.htm
  l
  
  (Read the section below Use a label):
  
  fstab:
  LABEL=ROOT  / ext3defaults1 1
  LABEL=BOOT  /boot ext3defaults1 2
  LABEL=SWAP  swap  swapdefaults0 0
  LABEL=HOME  /home ext3nosuid,auto 1 2
  
  This syntax never worked here.  Always resulted in an unbootable system.
   Only the /dev/disk/by-label/ syntax works reliably.
  
  Afaik if you are using GRUB LEGACY (0.97) and want to use LABEL/UUID in
  your grub.conf/menu.lst you also need an initrd. I think with GRUB 2
  (1.98) it is possible without. You don't need an initrd for LABEL/UUID
  in /etc/fstab for both cases.
 
 FWIW I'm using sys-boot/grub-0.97-r10 with GPT, labeled partitions and
 no initrd. My kernel has EFI_PARTITION compiled in (no module).
 
 My fstab looks like this:
 
 LABEL=swap   noneswapsw  0 0
 LABEL=boot  /bootext2defaults,noatime1 2
 LABEL=root   /   ext4defaults,noatime0 1
 LABEL=home  /home   ext4defaults,noatime0 1
 
 My kernel boot commandline still specified root by device name
 /dev/sda2 but otherwise my system works normally so far. :)

Don't listen to nay-sayers. Your fstab will work just fine and there's nothing 
wrong with it.

The LABEL= sysntax has also worked for years and years now on all grub-
supported filesystems that support volume labels. I don't know where a 
previous poster got the idea from that it is not supported, or you need an 
initrd - I have never used an initrd on Gentoo and have used that syntax since 
forever.

Similar for claims of unreliability by someone else. The only cause I can 
think of is using weird grub patches or some combination of insane flags.


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-30 Thread Dale

Alan McKinnon wrote:

Apparently, though unproven, at 18:03 on Monday 30 August 2010, Paul Hartman
did opine thusly:

   

On Fri, Aug 27, 2010 at 9:04 PM, Daniel Pielmeierbil...@gentoo.org  wrote:
 

Nikos Chantziaras schrieb am 27.08.2010 18:06:
   

On 08/27/2010 07:02 PM, J. Roeleveld wrote:
 

Actually, you can:
http://www.ibm.com/developerworks/linux/library/l-boot-rootfs/index.htm
l

(Read the section below Use a label):

fstab:
LABEL=ROOT  / ext3defaults1 1
LABEL=BOOT  /boot ext3defaults1 2
LABEL=SWAP  swap  swapdefaults0 0
LABEL=HOME  /home ext3nosuid,auto 1 2
   

This syntax never worked here.  Always resulted in an unbootable system.
  Only the /dev/disk/by-label/ syntax works reliably.
 

Afaik if you are using GRUB LEGACY (0.97) and want to use LABEL/UUID in
your grub.conf/menu.lst you also need an initrd. I think with GRUB 2
(1.98) it is possible without. You don't need an initrd for LABEL/UUID
in /etc/fstab for both cases.
   

FWIW I'm using sys-boot/grub-0.97-r10 with GPT, labeled partitions and
no initrd. My kernel has EFI_PARTITION compiled in (no module).

My fstab looks like this:

LABEL=swap   noneswapsw  0 0
LABEL=boot  /bootext2defaults,noatime1 2
LABEL=root   /   ext4defaults,noatime0 1
LABEL=home  /home   ext4defaults,noatime0 1

My kernel boot commandline still specified root by device name
/dev/sda2 but otherwise my system works normally so far. :)
 

Don't listen to nay-sayers. Your fstab will work just fine and there's nothing
wrong with it.

The LABEL= sysntax has also worked for years and years now on all grub-
supported filesystems that support volume labels. I don't know where a
previous poster got the idea from that it is not supported, or you need an
initrd - I have never used an initrd on Gentoo and have used that syntax since
forever.

Similar for claims of unreliability by someone else. The only cause I can
think of is using weird grub patches or some combination of insane flags.

   


So I don't have to have the complete path in fstab like this:

/dev/disk/by-label/boot/bootext2noatime1 2
/dev/disk/by-label/root/reiserfsdefaults0 1
/dev/disk/by-label/swapnoneswapsw0 0
/dev/disk/by-label/portage/usr/portageext3defaults0 1
/dev/disk/by-label/home/homereiserfsdefaults1 1

Can you post a grub.conf file that uses labels?  Sort of a example to 
look at and go by.


Dale

:-)  :-)



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-30 Thread Daniel Pielmeier
Alan McKinnon schrieb am 30.08.2010 18:32:
 Apparently, though unproven, at 18:03 on Monday 30 August 2010, Paul Hartman 
 did opine thusly:
 
 On Fri, Aug 27, 2010 at 9:04 PM, Daniel Pielmeier bil...@gentoo.org wrote:
 Afaik if you are using GRUB LEGACY (0.97) and want to use LABEL/UUID in
 your grub.conf/menu.lst you also need an initrd. I think with GRUB 2
 (1.98) it is possible without. You don't need an initrd for LABEL/UUID
 in /etc/fstab for both cases.

 FWIW I'm using sys-boot/grub-0.97-r10 with GPT, labeled partitions and
 no initrd. My kernel has EFI_PARTITION compiled in (no module).

 My fstab looks like this:

 LABEL=swap   noneswapsw  0 0
 LABEL=boot  /bootext2defaults,noatime1 2
 LABEL=root   /   ext4defaults,noatime0 1
 LABEL=home  /home   ext4defaults,noatime0 1

 My kernel boot commandline still specified root by device name
 /dev/sda2 but otherwise my system works normally so far. :)
 
 Don't listen to nay-sayers. Your fstab will work just fine and there's 
 nothing 
 wrong with it.
 
 The LABEL= sysntax has also worked for years and years now on all grub-
 supported filesystems that support volume labels. I don't know where a 
 previous poster got the idea from that it is not supported, or you need an 
 initrd - I have never used an initrd on Gentoo and have used that syntax 
 since 
 forever.
 
 Similar for claims of unreliability by someone else. The only cause I can 
 think of is using weird grub patches or some combination of insane flags.

If you are referring to my post please read again my statements. I am
not a native speaker so I probably did not make this clear.

I did not say that LABEL/UUID does not work within /etc/fstab.
Specifying the root device by using the LABEL/UUID syntax in
grub.conf/menu.lst however wont work without a proper initrd.

I must confess I did not test it before but I was sure it does not work.
I did some tests now (with sys-boot/grub-0.97-r10) and only the
following syntax for the grub.conf kernel command-lines works.

kernel /boot/kernel/kernel-2.6.35-gentoo-r4 root=/dev/sda3

All the others below need an initrd if you use GRUB LEGACY. Also the
GRUB LEGACY manual [1] does not mention LABEL or UUID at all. With GRUB
2 it will probably work by using the --search menu entry [1].

kernel /boot/kernel/kernel-2.6.35-gentoo-r4 root=LABEL=root
kernel /boot/kernel/kernel-2.6.35-gentoo-r4 root=/dev/disk/by-label/root
kernel /boot/kernel/kernel-2.6.35-gentoo-r4
root=/dev/disk/by-uuid/ab24cad5-ae0b-45d7-82f4-68357d5b6ff4

[1] http://www.gnu.org/software/grub/manual/legacy/grub.html
[2] http://www.gnu.org/software/grub/manual/grub.html#search

-- 
Daniel Pielmeier



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-30 Thread Bill Longman
On Mon, Aug 30, 2010 at 10:54 AM, Dale rdalek1...@gmail.com wrote:

 Alan McKinnon wrote:

 Apparently, though unproven, at 18:03 on Monday 30 August 2010, Paul
 Hartman
 did opine thusly:



 On Fri, Aug 27, 2010 at 9:04 PM, Daniel Pielmeierbil...@gentoo.org
  wrote:


 Nikos Chantziaras schrieb am 27.08.2010 18:06:


 On 08/27/2010 07:02 PM, J. Roeleveld wrote:


 Actually, you can:

 http://www.ibm.com/developerworks/linux/library/l-boot-rootfs/index.htm
 l

 (Read the section below Use a label):

 fstab:
 LABEL=ROOT  / ext3defaults1 1
 LABEL=BOOT  /boot ext3defaults1 2
 LABEL=SWAP  swap  swapdefaults0 0
 LABEL=HOME  /home ext3nosuid,auto 1 2


 This syntax never worked here.  Always resulted in an unbootable
 system.
  Only the /dev/disk/by-label/ syntax works reliably.


 Afaik if you are using GRUB LEGACY (0.97) and want to use LABEL/UUID in
 your grub.conf/menu.lst you also need an initrd. I think with GRUB 2
 (1.98) it is possible without. You don't need an initrd for LABEL/UUID
 in /etc/fstab for both cases.


 FWIW I'm using sys-boot/grub-0.97-r10 with GPT, labeled partitions and
 no initrd. My kernel has EFI_PARTITION compiled in (no module).

 My fstab looks like this:

 LABEL=swap   noneswapsw  0 0
 LABEL=boot  /bootext2defaults,noatime1 2
 LABEL=root   /   ext4defaults,noatime0 1
 LABEL=home  /home   ext4defaults,noatime0 1

 My kernel boot commandline still specified root by device name
 /dev/sda2 but otherwise my system works normally so far. :)


 Don't listen to nay-sayers. Your fstab will work just fine and there's
 nothing
 wrong with it.

 The LABEL= sysntax has also worked for years and years now on all grub-
 supported filesystems that support volume labels. I don't know where a
 previous poster got the idea from that it is not supported, or you need an
 initrd - I have never used an initrd on Gentoo and have used that syntax
 since
 forever.

 Similar for claims of unreliability by someone else. The only cause I can
 think of is using weird grub patches or some combination of insane flags.




 So I don't have to have the complete path in fstab like this:

 /dev/disk/by-label/boot/bootext2noatime1 2
 /dev/disk/by-label/root/reiserfsdefaults0 1
 /dev/disk/by-label/swapnoneswapsw0 0
 /dev/disk/by-label/portage/usr/portageext3defaults0 1
 /dev/disk/by-label/home/homereiserfsdefaults1 1

 Can you post a grub.conf file that uses labels?  Sort of a example to look
 at and go by.


Dale, there are two examples of fstabs in this message (actually three). But
you only want to see those you didn't write. You just need to put
LABEL=somelabel in the first column.

-- 
Bill Longman


Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-30 Thread Dale

Bill Longman wrote:



On Mon, Aug 30, 2010 at 10:54 AM, Dale rdalek1...@gmail.com 
mailto:rdalek1...@gmail.com wrote:


Alan McKinnon wrote:

Apparently, though unproven, at 18:03 on Monday 30 August
2010, Paul Hartman
did opine thusly:


On Fri, Aug 27, 2010 at 9:04 PM, Daniel
Pielmeierbil...@gentoo.org mailto:bil...@gentoo.org
 wrote:

Nikos Chantziaras schrieb am 27.08.2010 18:06:

On 08/27/2010 07:02 PM, J. Roeleveld wrote:

Actually, you can:

http://www.ibm.com/developerworks/linux/library/l-boot-rootfs/index.htm
l

(Read the section below Use a label):

fstab:
LABEL=ROOT  / ext3defaults
   1 1
LABEL=BOOT  /boot ext3defaults
   1 2
LABEL=SWAP  swap  swapdefaults
   0 0
LABEL=HOME  /home ext3  
 nosuid,auto 1 2


This syntax never worked here.  Always resulted in
an unbootable system.
 Only the /dev/disk/by-label/ syntax works reliably.

Afaik if you are using GRUB LEGACY (0.97) and want to
use LABEL/UUID in
your grub.conf/menu.lst you also need an initrd. I
think with GRUB 2
(1.98) it is possible without. You don't need an
initrd for LABEL/UUID
in /etc/fstab for both cases.

FWIW I'm using sys-boot/grub-0.97-r10 with GPT, labeled
partitions and
no initrd. My kernel has EFI_PARTITION compiled in (no
module).

My fstab looks like this:

LABEL=swap   noneswapsw  
   0 0
LABEL=boot  /bootext2defaults,noatime
   1 2
LABEL=root   /   ext4defaults,noatime
   0 1

LABEL=home  /home   ext4defaults,noatime0 1

My kernel boot commandline still specified root by device name
/dev/sda2 but otherwise my system works normally so far. :)

Don't listen to nay-sayers. Your fstab will work just fine and
there's nothing
wrong with it.

The LABEL= sysntax has also worked for years and years now on
all grub-
supported filesystems that support volume labels. I don't know
where a
previous poster got the idea from that it is not supported, or
you need an
initrd - I have never used an initrd on Gentoo and have used
that syntax since
forever.

Similar for claims of unreliability by someone else. The only
cause I can
think of is using weird grub patches or some combination of
insane flags.



So I don't have to have the complete path in fstab like this:

/dev/disk/by-label/boot/bootext2noatime  
 1 2

/dev/disk/by-label/root/reiserfsdefaults0 1
/dev/disk/by-label/swapnoneswapsw0 0
/dev/disk/by-label/portage/usr/portageext3defaults
   0 1
/dev/disk/by-label/home/homereiserfsdefaults  
 1 1


Can you post a grub.conf file that uses labels?  Sort of a example
to look at and go by.


Dale, there are two examples of fstabs in this message (actually 
three). But you only want to see those you didn't write. You just need 
to put LABEL=somelabel in the first column.


--
Bill Longman


That's what I wanted to clarify.  I put the whole path but others 
didn't.  I wasn't sure if they meant that literally or if they just 
shortened it a bit.  It looks like it will work either way.


Dale

:-)  :-)



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-29 Thread J. Roeleveld
On Sunday 29 August 2010 03:24:42 Nikos Chantziaras wrote:
 On 08/28/2010 10:42 PM, Dale wrote:
  Alex Schuster wrote:
  Dale writes:
  It would be nice if something like *fdisk could edit the labels tho.
  It would be so much easier. I didn't see anything in the man pages
  tho.
  
  I'd like this, too. cfdisk displays them, but is not abel to edit.
  
  I looked into LVM a good while ago. It's just to much for me to keep
  up with since I just have a desktop system here. It has its good
  points but just way overkill for what I have here.
  
  It's not that complicated. In a nutshell:
  
  Choose the partitions you want to use for LVM, and prepare them to be
  physical volumes:
  pvcreate /dev/sda[678]
  
  Create a volume group out of these partitions:
  vgcreate myvg /dev/sda[678]
  
  Create logical volumes in this volume group:
  lvcreate -L 5G -n lvm1 myvg
  lvcreate -L 2G -n lvm2 myvg
  
  Use these logical volumes just as disk partitions:
  
  mke2fs -j -L fs_on_lvm /dev/myvg/lvm1
  mount /dev/myg/lvm1 /mnt/fs_on_lvm
  
  The file system is too small? Just extend its size by 1G, without
  unmouning:
  
  lvresize -L +1G /dev/myvg/lvm1
  
  The volume groups is getting full, no space to add LVMs? Add other
  partitions. If you like, even from a 2nd drive:
  
  pvcreate /dev/sdb5
  vgextend myvg /dev/sdb5
  
  So, it's of course more complicated than just firing up cfdisk, create
  partitions and file systems on them, but you have much more flexibility.
  Once you have LVM, you do not have to care what the actual device
  names of
  your drives are. If sda becomes sdb and vice versa, no problem, and
  nothing to worry about. LVM does not use the device name, it scans each
  partition and uses the LVM UUIDs on them to identify what is what.
  
  Wonko
  
  Since I finally got this thing settled with partition sizes, that's
  pretty complicated. I have root, /boot, /home, portage and a data
  partition for misc. junk. I doubt it will change any in the near future.
  
  I did read up on it one time a while back. It's neat when you have to
  add drives and resize things but still a bit much for a little desktop.
 
 I'd stay away from LVM.  I started using it on a Debian Lenny machine
 and performance went down the drain.  For example, deleting a 3GB file
 was almost instant and now it takes like 15 seconds.  It's almost as if
 with LVM, deleting a file means writing 0 all over the 3GB first :-/

That sounds like a different issue.
I haven't noticed any major performance issues myself.

But to test quickly:
LVM:
# ~/speedtest $ time dd if=/dev/zero of=3gigfile bs=1024 count=300
300+0 records in

 
300+0 records out   

 
307200 bytes (3.1 GB) copied, 33.3029 s, 92.2 MB/s  

 


 
real0m33.305s   

 
user0m0.440s

 
sys 0m16.370s   

 
# ~/speedtest $ time rm 3gigfile

 


 
real0m3.827s

  

Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-28 Thread Mick
On Saturday 28 August 2010 01:27:10 Stroller wrote:
 On 28 Aug 2010, at 00:06, Mick wrote:
  On Friday 27 August 2010 11:21:08 Dale wrote:
  J. Roeleveld wrote:
  On Friday 27 August 2010 11:49:00 Dale wrote:
  J. Roeleveld wrote:
  
  Hmmm, I use resierfs for my file systems, most of them anyway.  I
  still
  use e2fsprogs to change those?
  
  Nope:
  eve ~ # reiserfstune --help
  reiserfstune: unrecognized option '--help'
  reiserfstune: Usage: reiserfstune [options] device [block-count]
  
  Options:
-j | --journal-device filecurrent journal device
--journal-new-device file new journal device
-o | --journal-new-offset N   new journal offset in blocks
-s | --journal-new-size N new journal size in blocks
-t | --trans-max-size N   new journal max transaction size in
blocks --no-journal-availablecurrent journal is not
  
  available
  
--make-journal-standard   new journal to be standard
-b | --add-badblocks file add to bad block list
-B | --badblocks file set the bad block list
-u | --uuid UUID|random   set new UUID
-l | --label LABELset new label
-f | --force  force tuning, less confirmations
-Vprint version and exit
  
  IOW (as example):
  reiserfstune -l ROOTDISK /dev/hda1
  
  ...
  While on the topic of labels, is there a way to change the label of
  a reiser4
  partition, *after* it has been created?  I rebuilt two partitions
  and forgot
  to relabel them ...
 
 Isn't the answer to that in the stuff you quoted?
 
 Surely one can use reiserfstune without damaging the filesystem?

Yes, but I am not sure if reiserfstune will work with reiser4 - I have only 
used it with reiserfs and relabelling worked fine.
-- 
Regards,
Mick


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


Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-28 Thread Dale

Mick wrote:

On Saturday 28 August 2010 01:27:10 Stroller wrote:
   

On 28 Aug 2010, at 00:06, Mick wrote:
 

On Friday 27 August 2010 11:21:08 Dale wrote:
   

J. Roeleveld wrote:
 

On Friday 27 August 2010 11:49:00 Dale wrote:
   

J. Roeleveld wrote:

Hmmm, I use resierfs for my file systems, most of them anyway.  I
still
use e2fsprogs to change those?
 

Nope:
eve ~ # reiserfstune --help
reiserfstune: unrecognized option '--help'
reiserfstune: Usage: reiserfstune [options] device [block-count]

Options:
   -j | --journal-device filecurrent journal device
   --journal-new-device file new journal device
   -o | --journal-new-offset N   new journal offset in blocks
   -s | --journal-new-size N new journal size in blocks
   -t | --trans-max-size N   new journal max transaction size in
   blocks --no-journal-availablecurrent journal is not

available

   --make-journal-standard   new journal to be standard
   -b | --add-badblocks file add to bad block list
   -B | --badblocks file set the bad block list
   -u | --uuid UUID|random   set new UUID
   -l | --label LABELset new label
   -f | --force  force tuning, less confirmations
   -Vprint version and exit

IOW (as example):
reiserfstune -l ROOTDISK /dev/hda1
   

...
While on the topic of labels, is there a way to change the label of
a reiser4
partition, *after* it has been created?  I rebuilt two partitions
and forgot
to relabel them ...
   

Isn't the answer to that in the stuff you quoted?

Surely one can use reiserfstune without damaging the filesystem?
 

Yes, but I am not sure if reiserfstune will work with reiser4 - I have only
used it with reiserfs and relabelling worked fine.
   


Slight hiccup here:

r...@smoker / # reiserfstune -l root /dev/hda6
reiserfstune: Reiserfstune is not allowed to be run on mounted filesystem.
r...@smoker / #

So, I have to do this from a CD/DVD.  Well, once done, it is done.

Dale

:-)  :-)



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-28 Thread Dale

Dale wrote:


Slight hiccup here:

r...@smoker / # reiserfstune -l root /dev/hda6
reiserfstune: Reiserfstune is not allowed to be run on mounted 
filesystem.

r...@smoker / #

So, I have to do this from a CD/DVD.  Well, once done, it is done.

Dale

:-)  :-)



Another hiccup for the record.  When you add/change a label, you have to 
reboot for it to take effect.  At least that was what I did anyway.  The 
labels didn't show up until I rebooted.  Sort of funny in a way.  I have 
changed partition layouts before and them take effect without a reboot.  
Maybe I should have restarted udev?


Also, I first booted a Gentoo 10.1 DVD and all the drives showed up as 
sd**.  I didn't see a hd* in the list anywhere.  So, if you are not SURE 
what each drive will be, boot something that doesn't use the PATA 
drivers.  For me, I booted a old Gentoo 2006.1 CD.  That listed both 
hd** and my sda drive.  I didn't try my Knoppix disc tho.  I'm not sure 
what drivers it uses.


Now to figure out how far off the deep end I want to go with editing 
fstab.  Going to read some replies here and a man page or two.  ;-)  The 
way I figure it, once I edit fstab and get it to boot correctly, it 
shouldn't matter whether the drives use IDE or PATA drivers.  Then I can 
work on the kernel next.


Dale

:-)  :-)

P. S.  Any way to label swap?  It's not reiserfs or ext*.



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-28 Thread Alex Schuster
Dale writes:

 P. S.  Any way to label swap?  It's not reiserfs or ext*.

mkswap hast the option -L for this.

Wonko



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-28 Thread Daniel Pielmeier
Dale schrieb am 28.08.2010 13:13:
 
 P. S.  Any way to label swap?  It's not reiserfs or ext*.
 

It is swap :)

swappoff -a
mkswap -L label device
swapon -a

-- 
Daniel Pielmeier



signature.asc
Description: OpenPGP digital signature


[gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-28 Thread Nuno J. Silva
Dale rdalek1...@gmail.com writes:

 Jesús J. Guerrero Botella wrote:
 2010/8/27 J. Roeleveldjo...@antarean.org:

 On Friday 27 August 2010 09:49:41 Nikos Chantziaras wrote:
  
 On 08/27/2010 10:37 AM, Dale wrote:

 My theory is something like this: hda will become sda; hdb will become
 sdb; hdc will become sdc; hdd will become sdd; and sda will become sde.
 Would that be a logical expectation?
  
 I'd say sda will stay as is, hda will become sdb, and so forth.

 This entirely depends on the way your BIOS orders your drivers, as far
 as I know. It could be either way. But, we all know how flexible grub
 is. You can just use TAB to autocomplete and try. All you need to boot
 is your root fs, after that fdisk -l will reveal all the info you
 need. fstab is another story, that might cost you an extra reboot into
 a livecd to fix it.

 Another thing that I hadn't thought of, grub.  I didn't even think
 about grub would have to be edited.  That would have been interesting
 when I tried to boot up.

You just need to feed linux with the right parameters, so it finds the
root filesystem. Grub id's themselves should remain the same, I suppose.

Also, as GRUB allows you to edit commandlines, you can do this by trial
and error (but a good initial guess is still worth it).


-- 
Nuno J. Silva
gopher://sdf-eu.org/1/users/njsg




Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-28 Thread Dale

Daniel Pielmeier wrote:

Dale schrieb am 28.08.2010 13:13:
   

P. S.  Any way to label swap?  It's not reiserfs or ext*.

 

It is swap :)

swappoff -a
mkswap -L label device
swapon -a

   


I found that later while reading some other man page.  I got to look 
into that swapon -a option tho.  Never seen that before.  I think I know 
what it is tho.


So far, I have set the labels, edited fstab and successfully rebooted.  
Now to work on the kernel.


Dale

:-)  :-)



[gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-28 Thread Nikos Chantziaras

On 08/28/2010 04:36 PM, Dale wrote:

Daniel Pielmeier wrote:

Dale schrieb am 28.08.2010 13:13:

P. S. Any way to label swap? It's not reiserfs or ext*.


It is swap :)

swappoff -a
mkswap -L label device
swapon -a



I found that later while reading some other man page. I got to look into
that swapon -a option tho. Never seen that before. I think I know what
it is tho.


It enabled the swap.  The boot init scripts automatically do a swapon -a 
when you boot.  But since you need to do a swappoff -a first and disable 
the swap in order to recreate it, you need to enable it again manually 
with swapon -a if you don't reboot.





Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-28 Thread Alex Schuster
Dale writes:

 It would be nice if something like *fdisk could edit the labels tho. 
 It would be so much easier.  I didn't see anything in the man pages
 tho.

I'd like this, too. cfdisk displays them, but is not abel to edit.

 I looked into LVM a good while ago.  It's just to much for me to keep
 up with since I just have a desktop system here.  It has its good
 points but just way overkill for what I have here.

It's not that complicated. In a nutshell:

Choose the partitions you want to use for LVM, and prepare them to be 
physical volumes:
pvcreate /dev/sda[678]

Create a volume group out of these partitions:
vgcreate myvg /dev/sda[678]

Create logical volumes in this volume group:
lvcreate -L 5G -n lvm1 myvg
lvcreate -L 2G -n lvm2 myvg

Use these logical volumes just as disk partitions:

mke2fs -j -L fs_on_lvm /dev/myvg/lvm1
mount /dev/myg/lvm1 /mnt/fs_on_lvm

The file system is too small? Just extend its size by 1G, without 
unmouning:

lvresize -L +1G /dev/myvg/lvm1

The volume groups is getting full, no space to add LVMs? Add other 
partitions. If you like, even from a 2nd drive:

pvcreate /dev/sdb5
vgextend myvg /dev/sdb5

So, it's of course more complicated than just firing up cfdisk, create 
partitions and file systems on them, but you have much more flexibility. 
Once you have LVM, you do not have to care what the actual device names of 
your drives are. If sda becomes sdb and vice versa, no problem, and 
nothing to worry about. LVM does not use the device name, it scans each 
partition and uses the LVM UUIDs on them to identify what is what.

Wonko



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-28 Thread Dale

Alex Schuster wrote:

Dale writes:

   

It would be nice if something like *fdisk could edit the labels tho.
It would be so much easier.  I didn't see anything in the man pages
tho.
 

I'd like this, too. cfdisk displays them, but is not abel to edit.

   

I looked into LVM a good while ago.  It's just to much for me to keep
up with since I just have a desktop system here.  It has its good
points but just way overkill for what I have here.
 

It's not that complicated. In a nutshell:

Choose the partitions you want to use for LVM, and prepare them to be
physical volumes:
pvcreate /dev/sda[678]

Create a volume group out of these partitions:
vgcreate myvg /dev/sda[678]

Create logical volumes in this volume group:
lvcreate -L 5G -n lvm1 myvg
lvcreate -L 2G -n lvm2 myvg

Use these logical volumes just as disk partitions:

mke2fs -j -L fs_on_lvm /dev/myvg/lvm1
mount /dev/myg/lvm1 /mnt/fs_on_lvm

The file system is too small? Just extend its size by 1G, without
unmouning:

lvresize -L +1G /dev/myvg/lvm1

The volume groups is getting full, no space to add LVMs? Add other
partitions. If you like, even from a 2nd drive:

pvcreate /dev/sdb5
vgextend myvg /dev/sdb5

So, it's of course more complicated than just firing up cfdisk, create
partitions and file systems on them, but you have much more flexibility.
Once you have LVM, you do not have to care what the actual device names of
your drives are. If sda becomes sdb and vice versa, no problem, and
nothing to worry about. LVM does not use the device name, it scans each
partition and uses the LVM UUIDs on them to identify what is what.

Wonko

   


Since I finally got this thing settled with partition sizes, that's 
pretty complicated.  I have root, /boot, /home, portage and a data 
partition for misc. junk.  I doubt it will change any in the near future.


I did read up on it one time a while back.  It's neat when you have to 
add drives and resize things but still a bit much for a little desktop.


Dale

:-)  :-)



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-28 Thread Dale

Nikos Chantziaras wrote:

On 08/28/2010 04:36 PM, Dale wrote:

Daniel Pielmeier wrote:

Dale schrieb am 28.08.2010 13:13:

P. S. Any way to label swap? It's not reiserfs or ext*.


It is swap :)

swappoff -a
mkswap -L label device
swapon -a



I found that later while reading some other man page. I got to look into
that swapon -a option tho. Never seen that before. I think I know what
it is tho.


It enabled the swap.  The boot init scripts automatically do a swapon 
-a when you boot.  But since you need to do a swappoff -a first and 
disable the swap in order to recreate it, you need to enable it again 
manually with swapon -a if you don't reboot.




It's been a while since I read the man page for swapon/off.  I don't 
remember seeing it before but that does save me from typing in a longer 
command.  I sometimes want to clear out swap, after compiling OOo or 
something, and that is a bit easier to do.


Neat tip.  Thanks.

Dale

:-)  :-)



[gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-28 Thread Nikos Chantziaras

On 08/28/2010 10:42 PM, Dale wrote:

Alex Schuster wrote:

Dale writes:


It would be nice if something like *fdisk could edit the labels tho.
It would be so much easier. I didn't see anything in the man pages
tho.

I'd like this, too. cfdisk displays them, but is not abel to edit.


I looked into LVM a good while ago. It's just to much for me to keep
up with since I just have a desktop system here. It has its good
points but just way overkill for what I have here.

It's not that complicated. In a nutshell:

Choose the partitions you want to use for LVM, and prepare them to be
physical volumes:
pvcreate /dev/sda[678]

Create a volume group out of these partitions:
vgcreate myvg /dev/sda[678]

Create logical volumes in this volume group:
lvcreate -L 5G -n lvm1 myvg
lvcreate -L 2G -n lvm2 myvg

Use these logical volumes just as disk partitions:

mke2fs -j -L fs_on_lvm /dev/myvg/lvm1
mount /dev/myg/lvm1 /mnt/fs_on_lvm

The file system is too small? Just extend its size by 1G, without
unmouning:

lvresize -L +1G /dev/myvg/lvm1

The volume groups is getting full, no space to add LVMs? Add other
partitions. If you like, even from a 2nd drive:

pvcreate /dev/sdb5
vgextend myvg /dev/sdb5

So, it's of course more complicated than just firing up cfdisk, create
partitions and file systems on them, but you have much more flexibility.
Once you have LVM, you do not have to care what the actual device
names of
your drives are. If sda becomes sdb and vice versa, no problem, and
nothing to worry about. LVM does not use the device name, it scans each
partition and uses the LVM UUIDs on them to identify what is what.

Wonko



Since I finally got this thing settled with partition sizes, that's
pretty complicated. I have root, /boot, /home, portage and a data
partition for misc. junk. I doubt it will change any in the near future.

I did read up on it one time a while back. It's neat when you have to
add drives and resize things but still a bit much for a little desktop.


I'd stay away from LVM.  I started using it on a Debian Lenny machine 
and performance went down the drain.  For example, deleting a 3GB file 
was almost instant and now it takes like 15 seconds.  It's almost as if 
with LVM, deleting a file means writing 0 all over the 3GB first :-/





[gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread Nikos Chantziaras

On 08/27/2010 10:37 AM, Dale wrote:

Hi folks,

I been putting this off but it looks like the newer kernels are going to
push me to changing this real soon. I have a older system, Abit NF7 2.0
motherboard with the older IDE drives. I'm still using the older IDE
drivers. This is what I have currently:

hda Actual hard drive OS on this
hdb Actual hard drive Not in use
hdc Actual hard drive home partition
hdd DVD burner Duh! It's a burner.
sda Actual hard drive connected through a SATA PCI card. Misc stuff.


So, hda has the Gentoo OS on it and hdc is my /hone directory. I have
videos, mp3's and various other data on sda. Currently hdb is not being
used, since for those who keep up with my threads would know, it is the
one that is terribly slow. Something along the lines of 10Mbs/sec or
something of that nature. It's just hard to get out of the case right
now and I can't get to it with a hammer either. :/


You can at least disconnect it then.  Right now all it does and eat 
power, heat the case and make noise :-/




My theory is something like this: hda will become sda; hdb will become
sdb; hdc will become sdc; hdd will become sdd; and sda will become sde.
Would that be a logical expectation?


I'd say sda will stay as is, hda will become sdb, and so forth.

Anyway, make sure you have a bootable Linux CD/DVD handy.  That way, you 
won't be able to blow anything up and can boot from it in order to 
change your /etc/fstab and grub conf.





Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread J. Roeleveld
On Friday 27 August 2010 09:49:41 Nikos Chantziaras wrote:
 On 08/27/2010 10:37 AM, Dale wrote:
  Hi folks,
  
  I been putting this off but it looks like the newer kernels are going to
  push me to changing this real soon. I have a older system, Abit NF7 2.0
  motherboard with the older IDE drives. I'm still using the older IDE
  drivers. This is what I have currently:
  
  hda Actual hard drive OS on this
  hdb Actual hard drive Not in use
  hdc Actual hard drive home partition
  hdd DVD burner Duh! It's a burner.
  sda Actual hard drive connected through a SATA PCI card. Misc stuff.
  
  
  So, hda has the Gentoo OS on it and hdc is my /hone directory. I have
  videos, mp3's and various other data on sda. Currently hdb is not being
  used, since for those who keep up with my threads would know, it is the
  one that is terribly slow. Something along the lines of 10Mbs/sec or
  something of that nature. It's just hard to get out of the case right
  now and I can't get to it with a hammer either. :/
 
 You can at least disconnect it then.  Right now all it does and eat
 power, heat the case and make noise :-/
 
  My theory is something like this: hda will become sda; hdb will become
  sdb; hdc will become sdc; hdd will become sdd; and sda will become sde.
  Would that be a logical expectation?
 
 I'd say sda will stay as is, hda will become sdb, and so forth.
 
 Anyway, make sure you have a bootable Linux CD/DVD handy.  That way, you
 won't be able to blow anything up and can boot from it in order to
 change your /etc/fstab and grub conf.

Alternatively, give your partitions Labels and reconfigure /etc/fstab to use 
those.
Then you don't have to worry about the changes to the device-names.

--
Joost



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread Jesús J . Guerrero Botella
2010/8/27 J. Roeleveld jo...@antarean.org:
 On Friday 27 August 2010 09:49:41 Nikos Chantziaras wrote:
 On 08/27/2010 10:37 AM, Dale wrote:
  Hi folks,
 
  I been putting this off but it looks like the newer kernels are going to
  push me to changing this real soon. I have a older system, Abit NF7 2.0
  motherboard with the older IDE drives. I'm still using the older IDE
  drivers. This is what I have currently:
 
  hda Actual hard drive OS on this
  hdb Actual hard drive Not in use
  hdc Actual hard drive home partition
  hdd DVD burner Duh! It's a burner.
  sda Actual hard drive connected through a SATA PCI card. Misc stuff.
 
 
  So, hda has the Gentoo OS on it and hdc is my /hone directory. I have
  videos, mp3's and various other data on sda. Currently hdb is not being
  used, since for those who keep up with my threads would know, it is the
  one that is terribly slow. Something along the lines of 10Mbs/sec or
  something of that nature. It's just hard to get out of the case right
  now and I can't get to it with a hammer either. :/

 You can at least disconnect it then.  Right now all it does and eat
 power, heat the case and make noise :-/

  My theory is something like this: hda will become sda; hdb will become
  sdb; hdc will become sdc; hdd will become sdd; and sda will become sde.
  Would that be a logical expectation?

 I'd say sda will stay as is, hda will become sdb, and so forth.

This entirely depends on the way your BIOS orders your drivers, as far
as I know. It could be either way. But, we all know how flexible grub
is. You can just use TAB to autocomplete and try. All you need to boot
is your root fs, after that fdisk -l will reveal all the info you
need. fstab is another story, that might cost you an extra reboot into
a livecd to fix it.

But, using labels as said will fix all the problems (beforehand) for
you, as said.


-- 
Jesús Guerrero Botella



[gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread Nikos Chantziaras

On 08/27/2010 10:37 AM, Dale wrote:

I been putting this off but it looks like the newer kernels are going to
push me to changing this real soon. I have a older system, Abit NF7 2.0
motherboard with the older IDE drives. I'm still using the older IDE
drivers. This is what I have currently:

hda Actual hard drive OS on this
hdb Actual hard drive Not in use
hdc Actual hard drive home partition
hdd DVD burner Duh! It's a burner.
sda Actual hard drive connected through a SATA PCI card. Misc stuff.


The advice by the other posters to label your disks is a good one.  I'm 
using labels too.  Not sure why I didn't think to mention it :P


Applying labels to your filesystems is trivial.  Simply use the e2label 
utility (it's in the sys-fs/e2fsprogs package and installed by default, 
so there's nothing new to emerge).  For example, if your hda1 is your 
root partition and your hda2 your swap, you can label them like this:


  e2label /dev/hda1 GentooRoot
  e2label /dev/hda2 GentooSwap

Note: hda1, not just hda.  You are labeling the filesystem on a 
partition, not the whole drive.


After you label all your filesystems, you simply modify your /etc/fstab 
like this:


Before:
/dev/hda1  /  ext4  noatime  0 1
/dev/hda2  none  swap  sw  0 0

After:
/dev/disk/by-label/GentooRoot  /  ext4  noatime  0 1
/dev/disk/by-label/GentooSwap  none  swap  sw 0 0

That is, you simply change /dev/blah to 
/dev/disk/by-label/DriveLabel and that's it.





Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread Jesús J . Guerrero Botella
2010/8/27 Nikos Chantziaras rea...@arcor.de:
 On 08/27/2010 10:37 AM, Dale wrote:

 I been putting this off but it looks like the newer kernels are going to
 push me to changing this real soon. I have a older system, Abit NF7 2.0
 motherboard with the older IDE drives. I'm still using the older IDE
 drivers. This is what I have currently:

 hda Actual hard drive OS on this
 hdb Actual hard drive Not in use
 hdc Actual hard drive home partition
 hdd DVD burner Duh! It's a burner.
 sda Actual hard drive connected through a SATA PCI card. Misc stuff.

 The advice by the other posters to label your disks is a good one.  I'm
 using labels too.  Not sure why I didn't think to mention it :P

 Applying labels to your filesystems is trivial.  Simply use the e2label
 utility (it's in the sys-fs/e2fsprogs package and installed by default, so
 there's nothing new to emerge).  For example, if your hda1 is your root
 partition and your hda2 your swap, you can label them like this:

  e2label /dev/hda1 GentooRoot
  e2label /dev/hda2 GentooSwap

 Note: hda1, not just hda.  You are labeling the filesystem on a partition,
 not the whole drive.

 After you label all your filesystems, you simply modify your /etc/fstab like
 this:

 Before:
 /dev/hda1  /  ext4  noatime  0 1
 /dev/hda2  none  swap  sw  0 0

 After:
 /dev/disk/by-label/GentooRoot  /  ext4  noatime  0 1
 /dev/disk/by-label/GentooSwap  none  swap  sw 0 0

 That is, you simply change /dev/blah to /dev/disk/by-label/DriveLabel
 and that's it.



Or you can do it by uuid, all the info you need can be picked from this output:

$ ls /dev/disk/by-uuid/ -l

Then just add lines to fstab like this:

UUID=6ea2b219-0bcc-4c90-9960-82a9659e6d0e / ext4 noatime 0 1
-- 
Jesús Guerrero Botella



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread J. Roeleveld
On Friday 27 August 2010 11:00:58 Jesús J. Guerrero Botella wrote:
 2010/8/27 Nikos Chantziaras rea...@arcor.de:
  On 08/27/2010 10:37 AM, Dale wrote:
  I been putting this off but it looks like the newer kernels are going to
  push me to changing this real soon. I have a older system, Abit NF7 2.0
  motherboard with the older IDE drives. I'm still using the older IDE
  drivers. This is what I have currently:
  
  hda Actual hard drive OS on this
  hdb Actual hard drive Not in use
  hdc Actual hard drive home partition
  hdd DVD burner Duh! It's a burner.
  sda Actual hard drive connected through a SATA PCI card. Misc stuff.
  
  The advice by the other posters to label your disks is a good one.  I'm
  using labels too.  Not sure why I didn't think to mention it :P
  
  Applying labels to your filesystems is trivial.  Simply use the e2label
  utility (it's in the sys-fs/e2fsprogs package and installed by default,
  so there's nothing new to emerge).  For example, if your hda1 is your
  root partition and your hda2 your swap, you can label them like this:
  
   e2label /dev/hda1 GentooRoot
   e2label /dev/hda2 GentooSwap
  
  Note: hda1, not just hda.  You are labeling the filesystem on a
  partition, not the whole drive.
  
  After you label all your filesystems, you simply modify your /etc/fstab
  like this:
  
  Before:
  /dev/hda1  /  ext4  noatime  0 1
  /dev/hda2  none  swap  sw  0 0
  
  After:
  /dev/disk/by-label/GentooRoot  /  ext4  noatime  0 1
  /dev/disk/by-label/GentooSwap  none  swap  sw 0 0
  
  That is, you simply change /dev/blah to /dev/disk/by-label/DriveLabel
  and that's it.
 
 Or you can do it by uuid, all the info you need can be picked from this
 output:
 
 $ ls /dev/disk/by-uuid/ -l
 
 Then just add lines to fstab like this:
 
 UUID=6ea2b219-0bcc-4c90-9960-82a9659e6d0e / ext4 noatime 0 1

True, except that for mere mortals, Labels are slightly easier to read and 
understand :)

And that, I find, is less prone to mistakes.

--
Joost



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread Dale

Jesús J. Guerrero Botella wrote:

2010/8/27 J. Roeleveldjo...@antarean.org:
   

On Friday 27 August 2010 09:49:41 Nikos Chantziaras wrote:
 

On 08/27/2010 10:37 AM, Dale wrote:
   

Hi folks,

I been putting this off but it looks like the newer kernels are going to
push me to changing this real soon. I have a older system, Abit NF7 2.0
motherboard with the older IDE drives. I'm still using the older IDE
drivers. This is what I have currently:

hda Actual hard drive OS on this
hdb Actual hard drive Not in use
hdc Actual hard drive home partition
hdd DVD burner Duh! It's a burner.
sda Actual hard drive connected through a SATA PCI card. Misc stuff.


So, hda has the Gentoo OS on it and hdc is my /hone directory. I have
videos, mp3's and various other data on sda. Currently hdb is not being
used, since for those who keep up with my threads would know, it is the
one that is terribly slow. Something along the lines of 10Mbs/sec or
something of that nature. It's just hard to get out of the case right
now and I can't get to it with a hammer either. :/
 

You can at least disconnect it then.  Right now all it does and eat
power, heat the case and make noise :-/

   

My theory is something like this: hda will become sda; hdb will become
sdb; hdc will become sdc; hdd will become sdd; and sda will become sde.
Would that be a logical expectation?
 

I'd say sda will stay as is, hda will become sdb, and so forth.
   

This entirely depends on the way your BIOS orders your drivers, as far
as I know. It could be either way. But, we all know how flexible grub
is. You can just use TAB to autocomplete and try. All you need to boot
is your root fs, after that fdisk -l will reveal all the info you
need. fstab is another story, that might cost you an extra reboot into
a livecd to fix it.

But, using labels as said will fix all the problems (beforehand) for
you, as said.


   


I have heard of the labels before but never used them.  I need to google 
that and see how that is done.


Another thing that I hadn't thought of, grub.  I didn't even think about 
grub would have to be edited.  That would have been interesting when I 
tried to boot up.


Thanks.

Dale

:-)  :-)



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread Dale

J. Roeleveld wrote:

On Friday 27 August 2010 11:00:58 Jesús J. Guerrero Botella wrote:
   

2010/8/27 Nikos Chantziarasrea...@arcor.de:
 

On 08/27/2010 10:37 AM, Dale wrote:
   

I been putting this off but it looks like the newer kernels are going to
push me to changing this real soon. I have a older system, Abit NF7 2.0
motherboard with the older IDE drives. I'm still using the older IDE
drivers. This is what I have currently:

hda Actual hard drive OS on this
hdb Actual hard drive Not in use
hdc Actual hard drive home partition
hdd DVD burner Duh! It's a burner.
sda Actual hard drive connected through a SATA PCI card. Misc stuff.
 

The advice by the other posters to label your disks is a good one.  I'm
using labels too.  Not sure why I didn't think to mention it :P

Applying labels to your filesystems is trivial.  Simply use the e2label
utility (it's in the sys-fs/e2fsprogs package and installed by default,
so there's nothing new to emerge).  For example, if your hda1 is your
root partition and your hda2 your swap, you can label them like this:

  e2label /dev/hda1 GentooRoot
  e2label /dev/hda2 GentooSwap

Note: hda1, not just hda.  You are labeling the filesystem on a
partition, not the whole drive.

After you label all your filesystems, you simply modify your /etc/fstab
like this:

Before:
/dev/hda1  /  ext4  noatime  0 1
/dev/hda2  none  swap  sw  0 0

After:
/dev/disk/by-label/GentooRoot  /  ext4  noatime  0 1
/dev/disk/by-label/GentooSwap  none  swap  sw 0 0

That is, you simply change /dev/blah to /dev/disk/by-label/DriveLabel
and that's it.
   

Or you can do it by uuid, all the info you need can be picked from this
output:

$ ls /dev/disk/by-uuid/ -l

Then just add lines to fstab like this:

UUID=6ea2b219-0bcc-4c90-9960-82a9659e6d0e / ext4 noatime 0 1
 

True, except that for mere mortals, Labels are slightly easier to read and
understand :)

And that, I find, is less prone to mistakes.

--
Joost


   


Hmmm, I use resierfs for my file systems, most of them anyway.  I still 
use e2fsprogs to change those?


Is there a way to boot a Gentoo/Knoppix CD and make it use the PATA 
drivers?  That way I can boot it and see exactly how it will name them 
and what drive is what without actually changing anything at all.  Is 
there a boot option noide or some other switch I can use?


Dale

:-)  :-)



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread J. Roeleveld
On Friday 27 August 2010 11:49:00 Dale wrote:
 J. Roeleveld wrote:
  On Friday 27 August 2010 11:00:58 Jesús J. Guerrero Botella wrote:
  2010/8/27 Nikos Chantziarasrea...@arcor.de:
  On 08/27/2010 10:37 AM, Dale wrote:
  I been putting this off but it looks like the newer kernels are going
  to push me to changing this real soon. I have a older system, Abit
  NF7 2.0 motherboard with the older IDE drives. I'm still using the
  older IDE drivers. This is what I have currently:
  
  hda Actual hard drive OS on this
  hdb Actual hard drive Not in use
  hdc Actual hard drive home partition
  hdd DVD burner Duh! It's a burner.
  sda Actual hard drive connected through a SATA PCI card. Misc stuff.
  
  The advice by the other posters to label your disks is a good one.  I'm
  using labels too.  Not sure why I didn't think to mention it :P
  
  Applying labels to your filesystems is trivial.  Simply use the e2label
  utility (it's in the sys-fs/e2fsprogs package and installed by default,
  so there's nothing new to emerge).  For example, if your hda1 is your
  
  root partition and your hda2 your swap, you can label them like this:
e2label /dev/hda1 GentooRoot
e2label /dev/hda2 GentooSwap
  
  Note: hda1, not just hda.  You are labeling the filesystem on a
  partition, not the whole drive.
  
  After you label all your filesystems, you simply modify your /etc/fstab
  like this:
  
  Before:
  /dev/hda1  /  ext4  noatime  0 1
  /dev/hda2  none  swap  sw  0 0
  
  After:
  /dev/disk/by-label/GentooRoot  /  ext4  noatime  0 1
  /dev/disk/by-label/GentooSwap  none  swap  sw 0 0
  
  That is, you simply change /dev/blah to
  /dev/disk/by-label/DriveLabel and that's it.
  
  Or you can do it by uuid, all the info you need can be picked from this
  output:
  
  $ ls /dev/disk/by-uuid/ -l
  
  Then just add lines to fstab like this:
  
  UUID=6ea2b219-0bcc-4c90-9960-82a9659e6d0e / ext4 noatime 0 1
  
  True, except that for mere mortals, Labels are slightly easier to read
  and understand :)
  
  And that, I find, is less prone to mistakes.
  
  --
  Joost
 
 Hmmm, I use resierfs for my file systems, most of them anyway.  I still
 use e2fsprogs to change those?

Nope:
eve ~ # reiserfstune --help
reiserfstune: unrecognized option '--help'
reiserfstune: Usage: reiserfstune [options] device [block-count]

Options:

  -j | --journal-device filecurrent journal device
  --journal-new-device file new journal device
  -o | --journal-new-offset N   new journal offset in blocks
  -s | --journal-new-size N new journal size in blocks
  -t | --trans-max-size N   new journal max transaction size in blocks
  --no-journal-availablecurrent journal is not available
  --make-journal-standard   new journal to be standard
  -b | --add-badblocks file add to bad block list
  -B | --badblocks file set the bad block list
  -u | --uuid UUID|random   set new UUID
  -l | --label LABELset new label
  -f | --force  force tuning, less confirmations
  -Vprint version and exit

IOW (as example):
reiserfstune -l ROOTDISK /dev/hda1

 Is there a way to boot a Gentoo/Knoppix CD and make it use the PATA
 drivers?  That way I can boot it and see exactly how it will name them
 and what drive is what without actually changing anything at all.  Is
 there a boot option noide or some other switch I can use?

Afraid not.
The naming scheme is, officially, not constant and can change with reboots.

On my server, with hotswap, I get different device-names when I remove a disk 
and plug it back in.
Eg. /dev/sdb - /dev/sdj
(as example)
Don't think you'll have that particular issue, but having these names change 
between reboots is possible. Especially if a drive fails and is not found 
during boot or a new drive is added.

Not tested, but I believe USB-drives might also get pushed into the mix?

--
Joost



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread Alex Schuster
Dale writes:

 Hmmm, I use resierfs for my file systems, most of them anyway.  I still
 use e2fsprogs to change those?

No, but you can use reiserfstune -l.

 Is there a way to boot a Gentoo/Knoppix CD and make it use the PATA
 drivers?  That way I can boot it and see exactly how it will name them
 and what drive is what without actually changing anything at all.  Is
 there a boot option noide or some other switch I can use?

Don't know. But even if so the result is not cecessarily accurate.

My two SATA drives were sd[ab], but when I added two PATA drives those got 
these names, and the SATA ones became sa[cd]. But even this changes, with 
a kernel derived from GRML, the PATA ones were sd[bc], and the SATA ones 
sd[ad]. Weird, huh? And things become even mor eunpredictable when I have 
USB drives plugged in during boot. So I also suggest using labels or 
UUIDs.

My own method is yet another one. As I have everything on LVM (except for 
the /boot partitino, which is on an USB stick), my drives are identified 
by their volume group. /dev/weird is the system drive, /dev/weird2 is the 
identical backup drive. This way I do not have any /dev/sdX in either 
fstab or grub.conf. And when the system drive fails, I vgrename wird2 to 
weird, and then the backup drive will become the system drive.

Wonko



[gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread Nikos Chantziaras

On 08/27/2010 12:49 PM, Dale wrote:

Is there a way to boot a Gentoo/Knoppix CD and make it use the PATA
drivers? That way I can boot it and see exactly how it will name them
and what drive is what without actually changing anything at all. Is
there a boot option noide or some other switch I can use?


You do the labeling *before* you switch to the new kernel.  Once you get 
it working correctly with your current kernel, then you can upgrade to 
the new ATA drivers and it will just work (which is the whole point of 
this exercise.)





Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread Stefan G. Weichinger
Am 27.08.2010 10:50, schrieb Nikos Chantziaras:

 Applying labels to your filesystems is trivial.  Simply use the e2label
 utility (it's in the sys-fs/e2fsprogs package and installed by default,
 so there's nothing new to emerge).  For example, if your hda1 is your
 root partition and your hda2 your swap, you can label them like this:
 
   e2label /dev/hda1 GentooRoot
   e2label /dev/hda2 GentooSwap
 
 Note: hda1, not just hda.  You are labeling the filesystem on a
 partition, not the whole drive.

Would that work for raid-devices as well?

# /etc/fstab
/dev/md0/   ext4noatime,nobarrier,nodiratime0 1

Just curious ...

Umm, why not try it?

# e2label /dev/md0 gentooRoot
# ls /dev/disk/by-label/gentooRoot -l
lrwxrwxrwx 1 root root 9 27. Aug 12:14 /dev/disk/by-label/gentooRoot -
../../md0

cool ...

thx, Stefan



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread Dale

J. Roeleveld wrote:

On Friday 27 August 2010 11:49:00 Dale wrote:
   

J. Roeleveld wrote:
 
Hmmm, I use resierfs for my file systems, most of them anyway.  I still

use e2fsprogs to change those?
 

Nope:
eve ~ # reiserfstune --help
reiserfstune: unrecognized option '--help'
reiserfstune: Usage: reiserfstune [options] device [block-count]

Options:

   -j | --journal-device filecurrent journal device
   --journal-new-device file new journal device
   -o | --journal-new-offset N   new journal offset in blocks
   -s | --journal-new-size N new journal size in blocks
   -t | --trans-max-size N   new journal max transaction size in blocks
   --no-journal-availablecurrent journal is not available
   --make-journal-standard   new journal to be standard
   -b | --add-badblocks file add to bad block list
   -B | --badblocks file set the bad block list
   -u | --uuid UUID|random   set new UUID
   -l | --label LABELset new label
   -f | --force  force tuning, less confirmations
   -Vprint version and exit

IOW (as example):
reiserfstune -l ROOTDISK /dev/hda1

   

Is there a way to boot a Gentoo/Knoppix CD and make it use the PATA
drivers?  That way I can boot it and see exactly how it will name them
and what drive is what without actually changing anything at all.  Is
there a boot option noide or some other switch I can use?
 

Afraid not.
The naming scheme is, officially, not constant and can change with reboots.

On my server, with hotswap, I get different device-names when I remove a disk
and plug it back in.
Eg. /dev/sdb -  /dev/sdj
(as example)
Don't think you'll have that particular issue, but having these names change
between reboots is possible. Especially if a drive fails and is not found
during boot or a new drive is added.

Not tested, but I believe USB-drives might also get pushed into the mix?

--
Joost


   


I do know the USB stuff changes but I wasn't sure about the others.  I 
would think the main drives in a system would come first but one could 
never make that promise.  I'm giving serious thought to using the 
labels.  It would also mean that I don't have to remember what partition 
is what.  Currently I would mount and then list what is in the directory 
to see what is in it and figure out what it is.  With the labels 
feature, even fdisk would tell me what is what.


This would be a good time to move the OS to a new drive.  If things work 
out, run from the new drive.  If things blow up, boot the old drive with 
the old kernel, old fstab and other settings.


Thanks.

Dale

:-)  :-)



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread Dale

Nikos Chantziaras wrote:

On 08/27/2010 12:49 PM, Dale wrote:

Is there a way to boot a Gentoo/Knoppix CD and make it use the PATA
drivers? That way I can boot it and see exactly how it will name them
and what drive is what without actually changing anything at all. Is
there a boot option noide or some other switch I can use?


You do the labeling *before* you switch to the new kernel.  Once you 
get it working correctly with your current kernel, then you can 
upgrade to the new ATA drivers and it will just work (which is the 
whole point of this exercise.)




I hadn't thought of that feature.  It should work regardless of which 
kernel I boot, either the old IDE drivers or the new PATA drivers.  Cool !!!


Time to start taking notes and putting ducks beaks to duck tails.

Dale

:-)  :-)



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread Dale

Alex Schuster wrote:

Dale writes:

   

Hmmm, I use resierfs for my file systems, most of them anyway.  I still
use e2fsprogs to change those?
 

No, but you can use reiserfstune -l.

   

Is there a way to boot a Gentoo/Knoppix CD and make it use the PATA
drivers?  That way I can boot it and see exactly how it will name them
and what drive is what without actually changing anything at all.  Is
there a boot option noide or some other switch I can use?
 

Don't know. But even if so the result is not cecessarily accurate.

My two SATA drives were sd[ab], but when I added two PATA drives those got
these names, and the SATA ones became sa[cd]. But even this changes, with
a kernel derived from GRML, the PATA ones were sd[bc], and the SATA ones
sd[ad]. Weird, huh? And things become even mor eunpredictable when I have
USB drives plugged in during boot. So I also suggest using labels or
UUIDs.

My own method is yet another one. As I have everything on LVM (except for
the /boot partitino, which is on an USB stick), my drives are identified
by their volume group. /dev/weird is the system drive, /dev/weird2 is the
identical backup drive. This way I do not have any /dev/sdX in either
fstab or grub.conf. And when the system drive fails, I vgrename wird2 to
weird, and then the backup drive will become the system drive.

Wonko

   


It would be nice if something like *fdisk could edit the labels tho.  It 
would be so much easier.  I didn't see anything in the man pages tho.


I looked into LVM a good while ago.  It's just to much for me to keep up 
with since I just have a desktop system here.  It has its good points 
but just way overkill for what I have here.


It seems as time goes on, things get more complicated.  lol

Dale

:-)  :-)



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread Bill Longman
On 08/27/2010 01:10 AM, J. Roeleveld wrote:
 On Friday 27 August 2010 09:49:41 Nikos Chantziaras wrote:
 Anyway, make sure you have a bootable Linux CD/DVD handy.  That way, you
 won't be able to blow anything up and can boot from it in order to
 change your /etc/fstab and grub conf.
 
 Alternatively, give your partitions Labels and reconfigure /etc/fstab to use 
 those.
 Then you don't have to worry about the changes to the device-names.

I second Joost's recommendation. I don't think you can use labels on the
kernel command line, so your grub will have to know for sure which
device to boot.



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread J. Roeleveld
On Friday 27 August 2010 17:57:01 Bill Longman wrote:
 On 08/27/2010 01:10 AM, J. Roeleveld wrote:
  On Friday 27 August 2010 09:49:41 Nikos Chantziaras wrote:
  Anyway, make sure you have a bootable Linux CD/DVD handy.  That way, you
  won't be able to blow anything up and can boot from it in order to
  change your /etc/fstab and grub conf.
  
  Alternatively, give your partitions Labels and reconfigure /etc/fstab to
  use those.
  Then you don't have to worry about the changes to the device-names.
 
 I second Joost's recommendation. I don't think you can use labels on the
 kernel command line, so your grub will have to know for sure which
 device to boot.

Actually, you can:
http://www.ibm.com/developerworks/linux/library/l-boot-rootfs/index.html

(Read the section below Use a label):

fstab:
LABEL=ROOT  / ext3defaults1 1
LABEL=BOOT  /boot ext3defaults1 2
LABEL=SWAP  swap  swapdefaults0 0
LABEL=HOME  /home ext3nosuid,auto 1 2


grub:
title Linux
  root (hd0,0)
  kernel (hd0,0)/vmlinuz ro root=LABEL=ROOT rhgb quiet
initrd (hd0,0)/initrd-2.x.x-xx.img

Not tested it myself yet, but I think this doesn't require special patches :)

--
Joost



[gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread Nikos Chantziaras

On 08/27/2010 07:02 PM, J. Roeleveld wrote:

On Friday 27 August 2010 17:57:01 Bill Longman wrote:

On 08/27/2010 01:10 AM, J. Roeleveld wrote:

On Friday 27 August 2010 09:49:41 Nikos Chantziaras wrote:

Anyway, make sure you have a bootable Linux CD/DVD handy.  That way, you
won't be able to blow anything up and can boot from it in order to
change your /etc/fstab and grub conf.


Alternatively, give your partitions Labels and reconfigure /etc/fstab to
use those.
Then you don't have to worry about the changes to the device-names.


I second Joost's recommendation. I don't think you can use labels on the
kernel command line, so your grub will have to know for sure which
device to boot.


Actually, you can:
http://www.ibm.com/developerworks/linux/library/l-boot-rootfs/index.html

(Read the section below Use a label):

fstab:
LABEL=ROOT  / ext3defaults1 1
LABEL=BOOT  /boot ext3defaults1 2
LABEL=SWAP  swap  swapdefaults0 0
LABEL=HOME  /home ext3nosuid,auto 1 2


This syntax never worked here.  Always resulted in an unbootable system. 
 Only the /dev/disk/by-label/ syntax works reliably.





Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread Bill Longman
On 08/27/2010 09:10 AM, J. Roeleveld wrote:
 On Friday 27 August 2010 18:03:51 Bill Longman wrote:
 On 08/27/2010 01:50 AM, Nikos Chantziaras wrote:
 On 08/27/2010 10:37 AM, Dale wrote:
 
 Snipped
 
 Yet another way to use labels:

 When you make the filesystem, apply the name then i.e.:

   mke2fs -j -L SpeedySSD /dev/sde1

 then in your /etc/fstab use the label like this:

   LABEL=SpeedySSD /usr/home  ext3  relatime  0 2
 
 I don't think Dale (The OT) would like to have to reformat his partitions 
 just 
 to get this to work :)

:-)

I thought, too, (of course *after* I had pressed SEND) that I should
have switched those two sentences around. I do not mean to imply that
you have to zap all your data to use labels. That would really drive
people away from Gentoo, wouldn't it? (I'll be right there, honey, I
just have to reformat my boot partition!)

Please read these as two completely separate and independent examples,
one for how to set them up in the first place and second, how to apply them.



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread Dale

Bill Longman wrote:

On 08/27/2010 09:10 AM, J. Roeleveld wrote:
   

On Friday 27 August 2010 18:03:51 Bill Longman wrote:
 

On 08/27/2010 01:50 AM, Nikos Chantziaras wrote:
   

On 08/27/2010 10:37 AM, Dale wrote:
 

Snipped

 

Yet another way to use labels:

When you make the filesystem, apply the name then i.e.:

   mke2fs -j -L SpeedySSD /dev/sde1

then in your /etc/fstab use the label like this:

   LABEL=SpeedySSD /usr/home  ext3  relatime  0 2
   

I don't think Dale (The OT) would like to have to reformat his partitions just
to get this to work :)
 

:-)

I thought, too, (of course *after* I had pressed SEND) that I should
have switched those two sentences around. I do not mean to imply that
you have to zap all your data to use labels. That would really drive
people away from Gentoo, wouldn't it? (I'll be right there, honey, I
just have to reformat my boot partition!)

Please read these as two completely separate and independent examples,
one for how to set them up in the first place and second, how to apply them.

   


I knew what you meant tho.  That was the best part of reading that.  
They should put this in the install guide.


Dale

:-)  :-)



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread J. Roeleveld
On Friday 27 August 2010 18:03:51 Bill Longman wrote:
 On 08/27/2010 01:50 AM, Nikos Chantziaras wrote:
  On 08/27/2010 10:37 AM, Dale wrote:

Snipped

 Yet another way to use labels:
 
 When you make the filesystem, apply the name then i.e.:
 
   mke2fs -j -L SpeedySSD /dev/sde1
 
 then in your /etc/fstab use the label like this:
 
   LABEL=SpeedySSD /usr/home  ext3  relatime  0 2

I don't think Dale (The OT) would like to have to reformat his partitions just 
to get this to work :)

--
Joost



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread Bill Longman
On 08/27/2010 01:50 AM, Nikos Chantziaras wrote:
 On 08/27/2010 10:37 AM, Dale wrote:
 I been putting this off but it looks like the newer kernels are going to
 push me to changing this real soon. I have a older system, Abit NF7 2.0
 motherboard with the older IDE drives. I'm still using the older IDE
 drivers. This is what I have currently:

 hda Actual hard drive OS on this
 hdb Actual hard drive Not in use
 hdc Actual hard drive home partition
 hdd DVD burner Duh! It's a burner.
 sda Actual hard drive connected through a SATA PCI card. Misc stuff.
 
 The advice by the other posters to label your disks is a good one.  I'm
 using labels too.  Not sure why I didn't think to mention it :P
 
 Applying labels to your filesystems is trivial.  Simply use the e2label
 utility (it's in the sys-fs/e2fsprogs package and installed by default,
 so there's nothing new to emerge).  For example, if your hda1 is your
 root partition and your hda2 your swap, you can label them like this:
 
   e2label /dev/hda1 GentooRoot
   e2label /dev/hda2 GentooSwap
 
 Note: hda1, not just hda.  You are labeling the filesystem on a
 partition, not the whole drive.
 
 After you label all your filesystems, you simply modify your /etc/fstab
 like this:
 
 Before:
 /dev/hda1  /  ext4  noatime  0 1
 /dev/hda2  none  swap  sw  0 0
 
 After:
 /dev/disk/by-label/GentooRoot  /  ext4  noatime  0 1
 /dev/disk/by-label/GentooSwap  none  swap  sw 0 0
 
 That is, you simply change /dev/blah to
 /dev/disk/by-label/DriveLabel and that's it.

Yet another way to use labels:

When you make the filesystem, apply the name then i.e.:

  mke2fs -j -L SpeedySSD /dev/sde1

then in your /etc/fstab use the label like this:

  LABEL=SpeedySSD /usr/home  ext3  relatime  0 2





Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread Bill Longman
On 08/27/2010 09:06 AM, Nikos Chantziaras wrote:
 On 08/27/2010 07:02 PM, J. Roeleveld wrote:
 Actually, you can:
 http://www.ibm.com/developerworks/linux/library/l-boot-rootfs/index.html

And this is similar to the syntax in the kernel's
Documentation/intel_txt.txt file.

 (Read the section below Use a label):

 fstab:
 LABEL=ROOT  / ext3defaults1 1
 LABEL=BOOT  /boot ext3defaults1 2
 LABEL=SWAP  swap  swapdefaults0 0
 LABEL=HOME  /home ext3nosuid,auto 1 2
 
 This syntax never worked here.  Always resulted in an unbootable system.
  Only the /dev/disk/by-label/ syntax works reliably.

Are you using ReiserFS, Nikos? It works wonders with ext.



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread Bill Longman
On 08/27/2010 09:06 AM, Nikos Chantziaras wrote:
 On 08/27/2010 07:02 PM, J. Roeleveld wrote:
 On Friday 27 August 2010 17:57:01 Bill Longman wrote:
 On 08/27/2010 01:10 AM, J. Roeleveld wrote:
 On Friday 27 August 2010 09:49:41 Nikos Chantziaras wrote:
 Anyway, make sure you have a bootable Linux CD/DVD handy.  That
 way, you
 won't be able to blow anything up and can boot from it in order to
 change your /etc/fstab and grub conf.

 Alternatively, give your partitions Labels and reconfigure
 /etc/fstab to
 use those.
 Then you don't have to worry about the changes to the device-names.

 I second Joost's recommendation. I don't think you can use labels on the
 kernel command line, so your grub will have to know for sure which
 device to boot.

 Actually, you can:
 http://www.ibm.com/developerworks/linux/library/l-boot-rootfs/index.html

 (Read the section below Use a label):

 fstab:
 LABEL=ROOT  / ext3defaults1 1
 LABEL=BOOT  /boot ext3defaults1 2
 LABEL=SWAP  swap  swapdefaults0 0
 LABEL=HOME  /home ext3nosuid,auto 1 2
 
 This syntax never worked here.  Always resulted in an unbootable system.
  Only the /dev/disk/by-label/ syntax works reliably.

What kernel drivers are you using?

Here's my fstab on my x64 box that has been booting perfectly for
months. And I boot it lots because it's my dev't box:

LABEL=boot /boot ext3  noauto,noatime  1 2
LABEL=root / ext3  relatime0 1
LABEL=swap none  swap  sw  0 0
LABEL=usr  /usr  ext3  relatime0 2
LABEL=var  /var  ext3  relatime0 2
LABEL=opt  /opt  ext3  relatime0 2
LABEL=home /home ext3  relatime0 2




Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread Mick
On Friday 27 August 2010 11:21:08 Dale wrote:
 J. Roeleveld wrote:
  On Friday 27 August 2010 11:49:00 Dale wrote:
  J. Roeleveld wrote:
  
  Hmmm, I use resierfs for my file systems, most of them anyway.  I still
  use e2fsprogs to change those?
  
  Nope:
  eve ~ # reiserfstune --help
  reiserfstune: unrecognized option '--help'
  reiserfstune: Usage: reiserfstune [options] device [block-count]
  
  Options:
 -j | --journal-device filecurrent journal device
 --journal-new-device file new journal device
 -o | --journal-new-offset N   new journal offset in blocks
 -s | --journal-new-size N new journal size in blocks
 -t | --trans-max-size N   new journal max transaction size in
 blocks --no-journal-availablecurrent journal is not available
 --make-journal-standard   new journal to be standard
 -b | --add-badblocks file add to bad block list
 -B | --badblocks file set the bad block list
 -u | --uuid UUID|random   set new UUID
 -l | --label LABELset new label
 -f | --force  force tuning, less confirmations
 -Vprint version and exit
  
  IOW (as example):
  reiserfstune -l ROOTDISK /dev/hda1
  
  Is there a way to boot a Gentoo/Knoppix CD and make it use the PATA
  drivers?  That way I can boot it and see exactly how it will name them
  and what drive is what without actually changing anything at all.  Is
  there a boot option noide or some other switch I can use?
  
  Afraid not.
  The naming scheme is, officially, not constant and can change with
  reboots.
  
  On my server, with hotswap, I get different device-names when I remove a
  disk and plug it back in.
  Eg. /dev/sdb -  /dev/sdj
  (as example)
  Don't think you'll have that particular issue, but having these names
  change between reboots is possible. Especially if a drive fails and is
  not found during boot or a new drive is added.
  
  Not tested, but I believe USB-drives might also get pushed into the mix?
  
  --
  Joost
 
 I do know the USB stuff changes but I wasn't sure about the others.  I
 would think the main drives in a system would come first but one could
 never make that promise.  I'm giving serious thought to using the
 labels.  It would also mean that I don't have to remember what partition
 is what.  Currently I would mount and then list what is in the directory
 to see what is in it and figure out what it is.  With the labels
 feature, even fdisk would tell me what is what.
 
 This would be a good time to move the OS to a new drive.  If things work
 out, run from the new drive.  If things blow up, boot the old drive with
 the old kernel, old fstab and other settings.

While on the topic of labels, is there a way to change the label of a reiser4 
partition, *after* it has been created?  I rebuilt two partitions and forgot 
to relabel them ...
-- 
Regards,
Mick


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


Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread Stroller


On 28 Aug 2010, at 00:06, Mick wrote:

On Friday 27 August 2010 11:21:08 Dale wrote:

J. Roeleveld wrote:

On Friday 27 August 2010 11:49:00 Dale wrote:

J. Roeleveld wrote:

Hmmm, I use resierfs for my file systems, most of them anyway.  I  
still

use e2fsprogs to change those?


Nope:
eve ~ # reiserfstune --help
reiserfstune: unrecognized option '--help'
reiserfstune: Usage: reiserfstune [options] device [block-count]

Options:
  -j | --journal-device filecurrent journal device
  --journal-new-device file new journal device
  -o | --journal-new-offset N   new journal offset in blocks
  -s | --journal-new-size N new journal size in blocks
  -t | --trans-max-size N   new journal max transaction size in
  blocks --no-journal-availablecurrent journal is not  
available

  --make-journal-standard   new journal to be standard
  -b | --add-badblocks file add to bad block list
  -B | --badblocks file set the bad block list
  -u | --uuid UUID|random   set new UUID
  -l | --label LABELset new label
  -f | --force  force tuning, less confirmations
  -Vprint version and exit

IOW (as example):
reiserfstune -l ROOTDISK /dev/hda1


...
While on the topic of labels, is there a way to change the label of  
a reiser4
partition, *after* it has been created?  I rebuilt two partitions  
and forgot

to relabel them ...


Isn't the answer to that in the stuff you quoted?

Surely one can use reiserfstune without damaging the filesystem?




Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread Stroller


On 27 Aug 2010, at 17:06, Nikos Chantziaras wrote:


On 08/27/2010 07:02 PM, J. Roeleveld wrote:

On Friday 27 August 2010 17:57:01 Bill Longman wrote:

On 08/27/2010 01:10 AM, J. Roeleveld wrote:

On Friday 27 August 2010 09:49:41 Nikos Chantziaras wrote:
Anyway, make sure you have a bootable Linux CD/DVD handy.  That  
way, you

won't be able to blow anything up and can boot from it in order to
change your /etc/fstab and grub conf.


Alternatively, give your partitions Labels and reconfigure /etc/ 
fstab to

use those.
Then you don't have to worry about the changes to the device-names.


I second Joost's recommendation. I don't think you can use labels  
on the

kernel command line, so your grub will have to know for sure which
device to boot.


Actually, you can:
http://www.ibm.com/developerworks/linux/library/l-boot-rootfs/index.html

(Read the section below Use a label):

fstab:
LABEL=ROOT  / ext3defaults1 1
LABEL=BOOT  /boot ext3defaults1 2
LABEL=SWAP  swap  swapdefaults0 0
LABEL=HOME  /home ext3nosuid,auto 1 2


This syntax never worked here.  Always resulted in an unbootable  
system.  Only the /dev/disk/by-label/ syntax works reliably.


Because you need to use the `root=/dev/sdaX` format in GRUB?

I think an appropriate initrd/initramfs is required - I'm not sure if  
there are any other requirements - to use labels in GRUB. I think it's  
common to do things this way on RedHat systems, maybe with some other  
distros - that's what fouled me up when I tried using labels in GRUB;  
I just found grub.conf examples using them, and was unaware of this  
requirement.



Stroller.



Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread Daniel Pielmeier
Nikos Chantziaras schrieb am 27.08.2010 18:06:
 On 08/27/2010 07:02 PM, J. Roeleveld wrote:

 Actually, you can:
 http://www.ibm.com/developerworks/linux/library/l-boot-rootfs/index.html

 (Read the section below Use a label):

 fstab:
 LABEL=ROOT  / ext3defaults1 1
 LABEL=BOOT  /boot ext3defaults1 2
 LABEL=SWAP  swap  swapdefaults0 0
 LABEL=HOME  /home ext3nosuid,auto 1 2
 
 This syntax never worked here.  Always resulted in an unbootable system.
  Only the /dev/disk/by-label/ syntax works reliably.
 

Afaik if you are using GRUB LEGACY (0.97) and want to use LABEL/UUID in
your grub.conf/menu.lst you also need an initrd. I think with GRUB 2
(1.98) it is possible without. You don't need an initrd for LABEL/UUID
in /etc/fstab for both cases.

-- 
Daniel Pielmeier



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Old IDE drives and the newer PATA kernel drivers

2010-08-27 Thread Dale

Stroller wrote:


On 28 Aug 2010, at 00:06, Mick wrote:

On Friday 27 August 2010 11:21:08 Dale wrote:

J. Roeleveld wrote:

On Friday 27 August 2010 11:49:00 Dale wrote:

J. Roeleveld wrote:

Hmmm, I use resierfs for my file systems, most of them anyway.  I 
still

use e2fsprogs to change those?


Nope:
eve ~ # reiserfstune --help
reiserfstune: unrecognized option '--help'
reiserfstune: Usage: reiserfstune [options] device [block-count]

Options:
  -j | --journal-device filecurrent journal device
  --journal-new-device file new journal device
  -o | --journal-new-offset N   new journal offset in blocks
  -s | --journal-new-size N new journal size in blocks
  -t | --trans-max-size N   new journal max transaction size in
  blocks --no-journal-availablecurrent journal is not 
available

  --make-journal-standard   new journal to be standard
  -b | --add-badblocks file add to bad block list
  -B | --badblocks file set the bad block list
  -u | --uuid UUID|random   set new UUID
  -l | --label LABELset new label
  -f | --force  force tuning, less confirmations
  -Vprint version and exit

IOW (as example):
reiserfstune -l ROOTDISK /dev/hda1


...
While on the topic of labels, is there a way to change the label of a 
reiser4
partition, *after* it has been created?  I rebuilt two partitions and 
forgot

to relabel them ...


Isn't the answer to that in the stuff you quoted?

Surely one can use reiserfstune without damaging the filesystem?




That could be asking a lot for me.  lol   I would think it could be 
changed the same way it was set tho.  reiserfstune -l LABEL


I got a lot of ideas here.  o_O

Dale

:-)  :-)