Announcement

Collapse
No announcement yet.

Way to force a drive to use the same /dev?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Way to force a drive to use the same /dev?

    That title might not have made much sense, but here's the situation:

    I have an external Seagate 750G HDD that I keep plugged in pretty much all the time. However, I also have quite a few USB flashdrives, and whenever I reboot the computer with the Seagate and one or more flashdrives the Seagate seems to get a more-or-less random /dev/sd*1 So, sometimes it gets mounted fro fstab, and most the time I have to find and mount it manually.
    Is there any way to make the Seagate always get assigned like /dev/sdd1?

    #2
    Re: Way to force a drive to use the same /dev?

    Good question.

    That's a reason for the use of UUIds--
    you'll note that the UUID for that drive is always the same ...

    An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

    Comment


      #3
      Re: Way to force a drive to use the same /dev?

      Yes. Identify it by it's UUID, which is (generally) a unique identifier assigned to each drive device.

      With it connected, open a console and type:
      Code:
      sudo blkid
      Identify the drives you are concerned about. Then, in your /etc/fstab file, if the device is already listed, change it's /dev/* identity to UUID= instead.
      Windows no longer obstructs my view.
      Using Kubuntu Linux since March 23, 2007.
      "It is a capital mistake to theorize before one has data." - Sherlock Holmes

      Comment


        #4
        Re: Way to force a drive to use the same /dev?

        OIC!

        Thank you very much. I had noticed the entries in the /etc/fstab weren't what I was used to seeing, but I hadn't gotten up to speed on UUIDs yet. Thank you both for letting me know. I think I've fixed the problem. I guess when I reboot I'll find out.

        Thanks again.

        Comment


          #5
          Re: Way to force a drive to use the same /dev?

          But ...
          that will not make a specific sdx stick to a specific drive ...
          An intellectual says a simple thing in a hard way. An artist says a hard thing in a simple way. Charles Bukowski

          Comment


            #6
            Re: Way to force a drive to use the same /dev?

            It's possible to make specific sdx for specific hardware, but tricky - relates to 'udev rules' but I don't know much more.

            However, if you're after device nodes, there exist /dev/disk/by-uuid/ and /dev/disk/by-id/ directories (the latter gives some more human friendly names like ata-Hitachi_HDP725050GLAT80_GE1530RE1ETNJE-part1
            I am running Ubuntu 8.10 (yes Gnome) with upgrades applied daily about 0900 UK time. Hardware is Dell Precision 420, 2x 800 MHz PIII, 512 MB RDRAM, nVidia GeForce 6800 128 MB AGP graphics, 18GB SCSI and 500GB IDE HDDs, DVD burner, Hauppage TV card.

            Comment

            Working...
            X