public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: "J. Roeleveld" <joost@antarean.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: Old IDE drives and the "newer" PATA kernel drivers
Date: Fri, 27 Aug 2010 11:56:40 +0200	[thread overview]
Message-ID: <201008271156.40997.joost@antarean.org> (raw)
In-Reply-To: <4C778A0C.6080201@gmail.com>

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 Chantziaras<realnc@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 file    current 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-available        current 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 LABEL            set new label
  -f | --force                  force tuning, less confirmations
  -V                            print 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



  reply	other threads:[~2010-08-27  9:57 UTC|newest]

Thread overview: 73+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-27  7:37 [gentoo-user] Old IDE drives and the "newer" PATA kernel drivers Dale
2010-08-27  7:49 ` [gentoo-user] " Nikos Chantziaras
2010-08-27  8:10   ` J. Roeleveld
2010-08-27  8:23     ` Jesús J. Guerrero Botella
2010-08-27  9:44       ` Dale
2010-08-28 13:34         ` Nuno J. Silva
2010-08-27 15:57     ` Bill Longman
2010-08-27 16:02       ` J. Roeleveld
2010-08-27 16:06         ` Nikos Chantziaras
2010-08-27 16:16           ` Bill Longman
2010-08-27 16:26           ` Bill Longman
2010-08-28  0:33           ` Stroller
2010-08-28  2:04           ` Daniel Pielmeier
2010-08-30 16:03             ` Paul Hartman
2010-08-30 16:32               ` Alan McKinnon
2010-08-30 17:54                 ` Dale
2010-08-30 19:15                   ` Bill Longman
2010-08-30 22:31                     ` Dale
2010-08-30 18:19                 ` Daniel Pielmeier
2010-08-27  8:50 ` Nikos Chantziaras
2010-08-27  9:00   ` Jesús J. Guerrero Botella
2010-08-27  9:37     ` J. Roeleveld
2010-08-27  9:49       ` Dale
2010-08-27  9:56         ` J. Roeleveld [this message]
2010-08-27 10:21           ` Dale
2010-08-27 23:06             ` Mick
2010-08-28  0:27               ` Stroller
2010-08-28  3:43                 ` Dale
2010-08-28  8:31                 ` Mick
2010-08-28  9:42                   ` Dale
2010-08-28 11:13                     ` Dale
2010-08-28 11:17                       ` Alex Schuster
2010-08-28 12:08                       ` Daniel Pielmeier
2010-08-28 13:36                         ` Dale
2010-08-28 13:45                           ` Nikos Chantziaras
2010-08-28 19:45                             ` Dale
2010-08-27 10:06         ` Alex Schuster
2010-08-27 12:32           ` Dale
2010-08-28 18:25             ` Alex Schuster
2010-08-28 19:42               ` Dale
2010-08-29  1:24                 ` Nikos Chantziaras
2010-08-29  6:04                   ` J. Roeleveld
2010-08-27 10:10         ` Nikos Chantziaras
2010-08-27 10:23           ` Dale
2010-09-01  0:38           ` Dale
2010-09-01  6:13             ` Nikos Chantziaras
2010-09-01  7:12               ` Dale
2010-09-02  7:46                 ` Neil Bothwick
2010-09-02  8:46                   ` Dale
2010-09-02  9:08                     ` Nikos Chantziaras
2010-09-02  9:18                       ` Dale
2010-09-02  9:25                         ` Alex Schuster
2010-09-02  9:38                           ` Nikos Chantziaras
2010-09-02  9:47                             ` Dale
2010-09-02 22:10                             ` Peter Humphrey
2010-09-02 22:24                               ` Dale
2010-09-02 23:57                               ` Nikos Chantziaras
2010-09-03 15:54                                 ` Peter Humphrey
2010-09-03 16:01                                   ` Nikos Chantziaras
2010-09-03 16:24                                     ` Peter Humphrey
2010-09-03 16:19                                   ` Dale
2010-09-03 16:31                                     ` Peter Humphrey
2010-09-03 17:50                                       ` Dale
2010-09-03 21:19                                       ` Neil Bothwick
2010-09-03 22:31                                         ` Peter Humphrey
2010-09-04  7:23                                           ` Nikos Chantziaras
2010-09-05  9:08                                             ` Peter Humphrey
2010-09-03 16:25                               ` Thanasis
2010-08-27 10:15   ` Stefan G. Weichinger
2010-08-27 16:03   ` Bill Longman
2010-08-27 16:10     ` J. Roeleveld
2010-08-27 16:22       ` Bill Longman
2010-08-27 16:37         ` Dale

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201008271156.40997.joost@antarean.org \
    --to=joost@antarean.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox