Force consistent device naming on Debian Linux

I have a Debian (lenny) server with 9 sata disks. One disk is connected to the motherboard's sata controller. The others are connected to two PCI sata controllers (four disks each). The disk connected to the motherboard is the boot disk.

Before this has worked fine and the boot disk has always been /dev/sda. But after upgrading the kernel to 2.6.26 this changed. The boot disk is now randomly called sda, sde or sdi. Obviously it depends on what order the kernel happens to evaluate the sata controllers.

How can I force the boot disk to always be called sda?


I think you need to use persistent block device naming, I would use the "by-uuid" version, I think that'll solve your problem.

I haven't found anything about 2.6.26, but there is a similar issue noted here referring to 2.6.19, maybe the problem propagated and their solution will help.

Category: linux Time: 2009-03-29 Views: 2
Tags: linux debian

Related post

  • How to force debian linux apt-get installer to install unstable/specific version of packages? 2009-12-15

    I want to force the install system on debian linux, apt-get, to install unstable (i.e. a later version) of a package, later than the stable one recognised by the debian package maintainer. This because I want to take advantage of new features in the

  • Creating eth0 with consistent network device naming 2013-04-29

    From my understanding, Arch Linux uses Consistent Network Device Naming where the network devices are no longer named eth0, eth1, etc. I use the proprietary MATLAB software which requires a device eth0 for activation. As a work around they suggest tu

  • Hard drive/device partition naming convention in Linux 2010-10-15

    What is the hard disk drive/device partition naming convention in Linux? For example, [hd0,0], sd0, etc. What does it actually mean? What is the significance of this when i need to install multiple OSes on the same machine? How can we relate it to wi

  • How to swap out the driver of a network device on a running Debian Linux box? 2015-11-12

    I've got an embedded/headless Debian Linux box which boots from a read-only filesystem image. The configuration is set up so that I can (seemingly) write to the filesystem, but any changes to the filesystem do not actually get written to the flash de

  • Linux: find force feedback device for joystick device 2011-04-23

    Because SDL 1.3 is still a long way coming I implemented native force feedback (rumble) support for Aquaria: However, I could not find a way to find the according event device (force feedback device) for any given

  • New NIC device naming in 12.10? 2013-03-13

    I've just discovered after installing Ubuntu 12.10 that there seems to be new device names for eth0...ethX. However, I haven't managed to find any documentation that explains the new naming convention in Ubuntu. Can someone explain what p25p1 actuall

  • Network device naming problems and aliases for p2p1 and p3p1 back to eth0 and eth1 2015-12-23

    I'm having a heck of a time getting the networking stack up and running on a Ubuntu Server 14.04.3 installation. (Its personal for the house and I'm not a SA, so I can't ask on SF because its a violation of the site's policies). The problem is the ne

  • Boot Debian Linux from image on external USB drive 2009-05-31

    I have an external USB hard drive with one big VFAT partition. In order to run Linux occasionally on a Windows system, I'd like to maintain a Debian Linux installation in one big file (say debianroot.img) on the VFAT partition of the external hard dr

  • Debian Linux: Find Application that generates lots of Incoming Traffic 2009-09-04

    Is there any way to find out which application on a server is responsible for incoming traffic? I have a debian linux server that has a lot of incoming traffic and would like to know if someone managed to hack his way into it or if there's a faulty w

  • P2V solution for moving live Debian Linux server to Virtual? 2009-11-10

    I have a two live Debian linux servers that I would like to move to virtual just for testing usage. It seems that there are many solutions to do this, but I am looking for something that is free, and will be able to create a VM of the server while it

  • Hard drive partition naming convention in Linux 2010-10-15

    What is the hard disk drive partition naming convention in Linux (for example : [hd0,0] etc...)? What does it actually mean? What is the significance of this when I need to install multiple operating systems on the same machine? How can we relate it

  • What utilities could I use to create/manage the Intel SRCU31L RAID volumes in Debian Linux? 2010-11-08

    I've got an old box that I don't want to scrap yet because it's got a nice working 5-disk RAID assembly. I want to create 2 arrays: RAID 1 with 2 disks and RAID 5 with the other 3 disks. The RAID card is Intel SRCU31L. I can create the RAID 1 volume

  • Debian linux installation cannot play sound 2011-09-06

    I am trying to get my Linux installation to play musix. I have debian linux. The contents of /etc/debian_version are: 6.0.2 I cannot seem to get any sound to play from my speakers and after looking through forum postings, I have hit a brick wall. lsp

  • Force block device (NBD) to bypass the buffer cache 2011-09-20

    I'd like to know if there is a way to force a block device to bypass the linux buffer cache (ie direct IO) and pass the requests directly to the underlying layer. I know one can open a file using O_DIRECT flag to achieve this, but my program is not t

  • Mounting NFSv4 share from Debian Linux 6 to Freebsd 9-RC3 "server requires stronger authentication" 2012-01-06

    I've run into a strange problem while trying to mount from FreeBSD 9.0-RC3 to a Debian Linux box. The command I'm using is: sudo mount -v gorkon:/dustbin /tmp/test This returns the following immediate information: mount: no type was given - I'll assu

  • Debian Linux cron stubbornly refuses to run at right time 2012-03-10

    I have a Debian Linux server, recent install. It has this cron job: 7 1 * * * /do/something/ As I read that, it should run at 1:07am. Instead, it runs at 5:07pm. So, wrong timezone, right? No...I'm in US/Pacific and: # ls -l /etc/localtim

  • Debian Linux Server - Size of L1 and L2 cache 2012-05-01

    Possible Duplicate: finding L2 cache size in Linux I am using Debian Linux Server and want to know the size of L1 and L2 cache. Can anybody help me, how to get that ? --------------Solutions------------- dmidecode should give you this info. For my CP

  • Can Debian linux find automaticaly drivers for USB ethernet NIC? 2013-01-18

    Can Debian linux find automaticaly drivers for USB ethernet NIC? Which would you recommend me? My problem is, on my datastore, there is only 100mbps network, no free PCI slots, so last chance how to speedup my datastore is to add next USB NIC. Is it

  • Install debian linux: no driver for CD/DVD 2013-09-12

    Just yesterday (sort of out of the blue) I was given a new machine on which to install Debian Linux. I used the single CD technique I've use for years, make a single iso image, boot it, then proceed with the rest of the installation from the internet

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C), All Rights Reserved.

processed in 0.722 (s). 13 q(s)