Menu ▾ ▴

#24 Hard disk discovery on linux

open
Engine (15)
7
2002-08-06
2002-07-31
Cody Batt
No

I just discovered that my new work machine's first hard
drive is /dev/hdc. Beeblebrox quits looking for valid
hard disks when it finds the first invalid disk, so it
quits after /dev/hda and doesn't find any valid disks.
There must be a better way to find all of the hard
disks than just by checking them all, but I don't know
what it is. It looks like we should go through the
first 30 or so possible disks and then just keep a map
from disk number to device name for each disk that
opens sucessfully. If you want me to fix it, just
assign it back to me.

Discussion

  • Jason Ivey

    Jason Ivey - 2002-08-06

    Logged In: YES
    user_id=79065

    From our discussion today it sounded like you were going to
    explore this one using sfdisk. I'll update it so it looks for 4 hd
    disks and then checks all the sd disks in order and stopping
    once it finds an invalid handle.

     
  • Jason Ivey

    Jason Ivey - 2002-08-06
    • assigned_to: jasonivey --> cody_batt
     

Log in to post a comment.