LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
LinkBack Search this Thread
Old 02-15-2008, 07:56 AM   #1
sinister1
Member
 
Registered: Jul 2007
Posts: 70

Rep: Reputation: 15
/dev/sda & /dev/sdb keeps swapping name


Hi,

I have a problem with my raid config.

I have a storage of 367 GB which it is mounted as /dev/sdb but this is different after every boot.

It starts as /dev/sdb.

Reboot

it starts as /dev/sda

Reboot

it start as /dev/sdb

etc...

THE CONFIG of FDISK -L

Disk /dev/sda: 9180 MB, 9180515328 bytes
255 heads, 63 sectors/track, 1116 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0009000d

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1062 8530483+ 83 Linux
/dev/sda2 1063 1116 433755 5 Extended
/dev/sda5 1063 1116 433723+ 82 Linux swap / Solaris

Disk /dev/sdb: 367.0 GB, 367033057280 bytes
255 heads, 63 sectors/track, 44622 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdb1 1 44622 358426183+ 83 Linux





What have i done so far:

changed the cables
changed the raid card
changed the raid config
cleared the config and configed it again
deleted the partition and made a partition again

any ideas?
 
Old 02-15-2008, 11:05 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,547

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
What type of drives are these? SATA, SCSI etc.
What linux distribution/version are you running?
 
Old 02-15-2008, 11:08 AM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946Reputation: 1946
In /dev/disk/* you'll find links to each disk device on your system, named according to things like the drive's serial number or label. Use these in your configuration files instead of /dev/sd* and you'll always get the same devices regardless of the order in which the system detects them.
 
Old 02-15-2008, 11:26 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,547

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
To elaborate on David the H's post google and read the mount man pages for UUID and volume labels.
 
Old 02-18-2008, 01:44 AM   #5
sinister1
Member
 
Registered: Jul 2007
Posts: 70

Original Poster
Rep: Reputation: 15
Oke thanks.

There is only one thing i dont get:

my fstab:

# /dev/sda1
UUID=9940c6fc-b36a-4ef5-9e36-e959aa20eb51 / ext3 defaults,errors=remount-ro 0 1
# /dev/sda5
UUID=3703e4c5-c189-4892-a0f7-b230dd941797 none swap sw 0 0

But sometimes sda1 becomes sdb1 after reboot. If i look at my fstab and see that i use the uuid to mount the main disk shouldn't it always become sda?

Thanks for the reply!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
device order (dev/sdb,dev/sdd) changes why ? comtmr Linux - Enterprise 5 06-26-2012 04:28 AM
RHEL4U5 install changes /dev/sda to /dev/sdb bhoch Red Hat 8 12-05-2007 06:33 AM
Copying from /dev/sda to /dev/sdb fof3 Linux - Newbie 8 07-04-2006 06:19 AM
forcing the order of /dev/sda /dev/sdb etc.. jdaniel Linux - Software 5 05-23-2006 07:41 AM
Sandisk USB card Reader not linking /dev/sg0 to /dev/sda acidraven Linux - Hardware 1 06-19-2004 03:56 PM


All times are GMT -5. The time now is 08:09 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration