You are not logged in.

#1 2011-07-11 13:44:08

agkbill
Member
Registered: 2011-06-13
Posts: 85

[SOLVED] HD devices named diferently at reboot.

Hi,

I am experience something most confusing.

The naming of my hard drive devices are different from boot to boot, using archlinux CD.


In BIOS it looks like this.

IDE Channel 0 Master      WDC WD10EADS-00L5B1
IDE Channel 0 Slave       WDC WD10EADS-00L5B1
IDE Channel 1 Master
IDE Channel 1 Slave
IDE Channel 2 Master
IDE Channel 2 Slave
IDE Channel 3 Master
IDE Channel 3 Slavev
IDE Channel 4 Master      WDC WD2500SB-01KBC0
IDE Channel 4 Slave       DVD

IDE 0-3 are eSATA and 4 IDE.

It is the disk at IDE Channel 4 Master that sometime become /dev/sda.

It alters from:

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0001670f

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          60      481918+  83  Linux
/dev/sda2           90145      121602   252678144    5  Extended
/dev/sda3           77987       90145    97654784   83  Linux
/dev/sda4              61       77987   625940480   83  Linux
/dev/sda5           90145       90522     3032064   82  Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/sdc: 250.1 GB, 250058268160 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0006c7f3

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1       30401   244196001   83  Linux

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000cd207

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          13      102400    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sdb2              13      121601   976656384    7  HPFS/NTFS

Disk /dev/sdd: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x4158f602

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1   *           1       60802   488383488    7  HPFS/NTFS

To

Disk /dev/sda: 250.1 GB, 250058268160 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0006c7f3

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1       30401   244196001   83  Linux

Disk /dev/sdc: 1000.2 GB, 1000203804160 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000cd207

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1          13      102400    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sdc2              13      121601   976656384    7  HPFS/NTFS

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0001670f

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          60      481918+  83  Linux
/dev/sdb2           90145      121602   252678144    5  Extended
/dev/sdb3           77987       90145    97654784   83  Linux
/dev/sdb4              61       77987   625940480   83  Linux
/dev/sdb5           90145       90522     3032064   82  Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/sdd: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x4158f602

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1   *           1       60802   488383488    7  HPFS/NTFS

My Kubuntu that I used for some time and planing to replace with Arch look like this.

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0001670f

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          60      481918+  83  Linux
/dev/sda2           90145      121602   252678144    5  Extended
/dev/sda3           77987       90145    97654784   83  Linux
/dev/sda4              61       77987   625940480   83  Linux
/dev/sda5           90145       90522     3032064   82  Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000cd207

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1          13      102400    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sdb2              13      121601   976656384    7  HPFS/NTFS

Disk /dev/sdc: 250.1 GB, 250058268160 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0006c7f3

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1       30401   244196001   83  Linux

Disk /dev/sdd: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x4158f602

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1   *           1       60802   488383488    7  HPFS/NTFS

Consequently after installation and when GRUB2 have detected arch ok, I run into problem when /dev/sda is different from boot to boot.

I do not know if it is related but I noticed that auto partition from arch install CD do not work.

Any ide way /dev/sda for example is a different hard drive from boot to boot?

Thank you.

Best regards,
/Christer

Last edited by agkbill (2011-07-13 09:10:23)

Offline

#2 2011-07-11 13:45:12

SS4
Member
From: !Rochford, Essex
Registered: 2010-12-05
Posts: 699

Re: [SOLVED] HD devices named diferently at reboot.


Rauchen verboten

Offline

#3 2011-07-11 16:58:40

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] HD devices named diferently at reboot.

I always use UUIDs. Makes it fool-proof. Follow the wiki link that SS4 provided to use UUIDs


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#4 2011-07-11 19:47:11

agkbill
Member
Registered: 2011-06-13
Posts: 85

Re: [SOLVED] HD devices named diferently at reboot.

SS4, Inxsible,

Great, exactly what I was looking for!

I must say that I have never learned so much about GNU/LINUX since I dived into Archlinux.
The documentation is fantastic, but sometimes you don't know what to look for.

Thanks!
/Christer

Offline

#5 2011-07-11 20:12:32

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] HD devices named diferently at reboot.

Great. please mark thread as solved.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB