Thanks Roger I'll test out and report back to mailinglist -- MortenB |-----Original Message----- |From: Roger Oberholtzer [mailto:roger@opq.se] |Sent: 7. desember 2007 10:32 |To: opensuse@opensuse.org |Subject: RE: [opensuse] ESATA | |On Fri, 2007-12-07 at 09:54 +0100, Morten Bjørnsvik wrote: |> |-----Original Message----- |> |From: Roger Oberholtzer [mailto:roger@opq.se] My system has 4 |> |removable SATA disks. So I have a udev rule to mount them in a |> |predictable way, no matter which of the 4 are really present. |> |> I little question on the side: |> |> My problem is If I leave the esata connected drives on during a |> reboot, they come up as sda,sdb forcing the internals to become |> sdc,sdd. How can this be avoided, On redhat we earlier used |mount labels, but I've not been using it for years. | |Hard to tell. I have my SATA controller in AHCI mode (set in |the BIOS on my supermicro computer). Then the disks get an |address based on the SATA connector they are attached to. This |address does not change if a disk is or is not present. Of |course, if you play with this BIOS setting, your disks may |initially move. So you may need to change the boot info. |But that should only happen when you go to AHCI mode. The |libata folk imply that they like AHCI mode. I bet (just a |guess) they test with that setup. | |This allows me to use udev rules for my removable disks. I |would also think it would keep your boot disks from moving around. | |My rules for the four removable disks I have are: | |SUBSYSTEM=="block", BUS=="scsi", KERNEL=="sd*1", |ID=="0:0:0:0", SYMLINK="cameraA 0:0:0:0" |SUBSYSTEM=="block", BUS=="scsi", KERNEL=="sd*[2-9]", |ID=="0:0:0:0", SYMLINK="cameraA_p%n" | |SUBSYSTEM=="block", BUS=="scsi", KERNEL=="sd*1", |ID=="1:0:0:0", SYMLINK="cameraB 1:0:0:0" |SUBSYSTEM=="block", BUS=="scsi", KERNEL=="sd*[2-9]", |ID=="1:0:0:0", SYMLINK="cameraB_p%n" | |SUBSYSTEM=="block", BUS=="scsi", KERNEL=="sd*1", |ID=="2:0:0:0", SYMLINK="cameraC 2:0:0:0" |SUBSYSTEM=="block", BUS=="scsi", KERNEL=="sd*[2-9]", |ID=="2:0:0:0", SYMLINK="cameraC_p%n" | |SUBSYSTEM=="block", BUS=="scsi", KERNEL=="sd*1", |ID=="3:0:0:0", SYMLINK="cameraD 3:0:0:0" |SUBSYSTEM=="block", BUS=="scsi", KERNEL=="sd*[2-9]", |ID=="3:0:0:0", SYMLINK="cameraD_p%n" | | |(Note that SATA disks are part of the 'SCSI' system in Linux, |so the BUS is 'scsi'.) What this does is, for each bay, make a |sym link that refers to the drive bay. So, no matter which |disks are or are not present, if a disk is in a certain bay, |it can have a consistent name based on the bay it is in. In my |case, names like /dev/cameraA. My naming deals with all |partitions on the disk. Then, I use these symbolic names in |mount tables and all. I do not care if they are really sdb1 or sdc4. | |I hope some of this helps. | |> |> -- |> Morten Bjoernsvik, Oslo, Norway |> |> Nry隊Z)z{.ﮞ˛m)z{.+Z+ib*'jW(fvǦj)hǾi |-- |Roger Oberholtzer | |OPQ Systems / Ramböll RST | |Ramböll Sverige AB |Kapellgränd 7 |P.O. Box 4205 |SE-102 65 Stockholm, Sweden | |Office: Int +46 8-615 60 20 |Mobile: Int +46 70-815 1696 | |-- |To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For |additional commands, e-mail: opensuse+help@opensuse.org | | |