LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-18-2009, 10:35 AM   #1
jehojakim
LQ Newbie
 
Registered: Sep 2009
Posts: 1

Rep: Reputation: 0
Questions about naming sata-disks


Hi

I am wondering how the naming scheme om SATA-disks is made. At this moment, I have 4 SATA-slots on my MB, SATA1 trough SATA4. SATA1 has /dev/sda, SATA 4 has sdb.

/dev/sda is boot disk.

How is this naming scheme accomplished?

And, related to that, will it still boot from this disk if I attach the disk to another SATA-port on the MB?

One step further, if I set up a RAID-5 with four disks, will I get in trouble if for some reason I swap disks in the RAID-5 configuration?

Thanks for your answers, or for putting me on the track for further searching.

regards, jehojakim

Last edited by jehojakim; 09-18-2009 at 10:36 AM.
 
Old 09-19-2009, 09:00 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Hi,

Welcome to LQ!

Quote:
Originally Posted by jehojakim View Post
Hi

I am wondering how the naming scheme om SATA-disks is made. At this moment, I have 4 SATA-slots on my MB, SATA1 trough SATA4. SATA1 has /dev/sda, SATA 4 has sdb.

/dev/sda is boot disk.

How is this naming scheme accomplished?

And, related to that, will it still boot from this disk if I attach the disk to another SATA-port on the MB?

One step further, if I set up a RAID-5 with four disks, will I get in trouble if for some reason I swap disks in the RAID-5 configuration?

Thanks for your answers, or for putting me on the track for further searching.

regards, jehojakim
Your boot device is set by selection with your 'BIOS'. Most current distributions use 'udev' to recognize devices for the kernel via defined rules.

Code:
 excertp from 'man udev';

udev - dynamic device management

DESCRIPTION
       udev provides a dynamic device directory containing only the files for
       actually present devices. It creates or removes device node files in
       the /dev directory, or it renames network interfaces.

       Usually udev runs as udevd(8) and receives uevents directly from the
       kernel if a device is added or removed from the system.

       If udev receives a device event, it matches its configured rules
       against the available device attributes provided in sysfs to identify
       the device. Rules that match may provide additional device information
       or specify a device node name and multiple symlink names and instruct
       udev to run additional programs as part of the device event handling.

CONFIGURATION
       udev configuration files are placed in /etc/udev/ and /lib/udev/. All
       empty lines, or lines beginning with '#' will be ignored.

   Configuration file
       udev expects its main configuration file at /etc/udev/udev.conf. It
       consists of a set of variables allowing the user to override default
       udev values. The following variables can be set:

       udev_root
           Specifies where to place the device nodes in the filesystem. The
           default value is /dev.

       udev_log
           The logging priority. Valid values are the numerical syslog
           priorities or their textual representations: err, info and debug.

   Rules files
       The udev rules are read from the files located in the default rules
       directory /lib/udev/rules.d/, the custom rules directory
       /etc/udev/rules.d/ and the temporary rules directory
       /dev/.udev/rules.d/. All rule files are sorted and processed in lexical
       order, regardless in which of these directories they live.

       Rule files are required to have a unique name, duplicate file names are
       ignored. Files in /etc/udev/rules.d/ have precedence over files with
       the same name in /lib/udev/rules.d/. This can be used to ignore a
       default rules file if needed.

       Every line in the rules file contains at least one key value pair.
       There are two kind of keys, match and assignment keys. If all match
       keys are matching against its value, the rule gets applied and the
       assign keys get the specified value assigned.

       A matching rule may specify the name of the device node, add a symlink
       pointing to the node, or run a specified program as part of the event
       handling. If no matching rule is found, the default device node name is
       used.
I suggest that you read the 'man udev'. You can also look at 'Linux Kernel in a Nutshell' to get some insight.

These links and others can be found at 'Slackware-Links' . More than just SlackwareŽ links!
 
  


Reply

Tags
disk usage



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SATA disks heikkil Slackware 21 09-05-2007 11:38 AM
Is there a way to have grub translate its own naming to naming scheme under Linux zhjim Linux - Software 6 05-28-2006 08:09 AM
SATA device naming on Red Hat 3 rlinuxr Linux - Hardware 4 03-11-2006 02:33 PM
mail server the naming naming convention problem kashan Linux - Newbie 0 07-16-2004 02:08 PM
Two questions: Old hardware(486) and partition-naming. Megamieuwsel *BSD 2 04-27-2004 04:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration