It's a device file, meaning, its name is autogenerated by udev and has nothing to do with the contents of the disk. Unless you coerce udev into naming it what you want somehow, it will just come back as its old name next reboot.
Messing with existing udev rules, particularly the important ones which create disk names, can be dicey. udev also has rules to create symlinks for more convenient names in /dev/disk/. If there's not ones suiting you in there already, perhaps you could add a rule to add more symlinks more to your purpose. That way, if your naming rule messes up, you haven't cut yourself off from all your disks...
Hmm, I hadn't considered using a link but that would definitely do the trick.
Ok, so I copied an existing rule on /etc/udev/rules.d/ and modified it a bit just to test the behavior, then I ran udevcontrol reload_rules but I don't see the link getting created under /dev/disk/by-id (which is the path I used for my rule).
getting udev rules to properly reload without rebooting can be a pain, I'm not sure if that's the correct method. 'udevcontrol' looks like a distribution-specific thing, too.
What do you need from the new rule that the old ones don't provide?
[edit] I see a lower-case $env vs an upper-case ENV. Ditch the $ and make them uppercase.
getting udev rules to properly reload without rebooting can be a pain, I'm not sure if that's the correct method. 'udevcontrol' looks like a distribution-specific thing, too.
---------- Post updated at 12:49 PM ---------- Previous update was at 12:48 PM ----------
If applicable, another thing you could do is remove the module for that device and reload it, which will cause whatever rules are there to be re-applied. Just reloading the rules may not be enough to actually get udev to use those rules, that happens when the kernel tells it a new device has arrived...
Hello All,
I have a Red Hat Linux 5.9 Server installed with one hard disk & 2 Partitions created on it as follows,
/boot - Linux Partition & another is
LVM - One VG & under that 5-6 Logical volumes(var,opt,home etc).
Here my requirement is to take out 1GB of space from LVM ( Any logical... (5 Replies)
Hi Experts
I would like to know different between soft partition concept and hard partition concept on solaris.
Here is little explanation between soft partition concept and hard partition concept on solaris.
Soft Partition:
1TB total space available in storage in all mapped to the OS to... (2 Replies)
hi all
while formatting hard disk i am getting following error.
Partition 1 ends at 266338338
It must be between 34 and 143374704.
label error: EFI Labels do not support overlapping partitions
Partition 8 overlaps partition 1.
Warning: error writing EFI.
Label failed.
I have formatted the... (2 Replies)
Hi folks,
is there any possibility how to rename soft partitions??
Here I found that this is not possible (I know that it is) but I need do it in some supported way.
http://dlc.sun.com/osol/docs/content/LOGVOLMGRADMIN/tasks-basics-5.html
This is production system it is why I need do it... (0 Replies)
Gentleman,
Please move if I have chose the incorrect forum section. I am trying to move data that is not backed up from partition 1 to partition 2 on a SAN that has a GFS2 filesystem. Since the data is not backed up I am rsyncing this data and once verified I will delete from the source... (6 Replies)
Hi all
i got this filesystem
Filesystem size used avail capacity Mounted on
/dev/dsk/c0t600A0B80001F350A000033404A5D29D9d0s2
492G 64M 487G 1% /u10
How do i change the name for /dev/dsk/c0t600A0B80001F350A000033404A5D29D9d0s2 to the... (3 Replies)
I've created a partition with GNU Parted, how do I mount the partition?
The manual information at http://www.gnu.org/software/parted/manual/parted.html is good, but I am sure about how I mount the partition afterwards.
Thanks,
--Todd (1 Reply)
hi,
1) is logical partition the same as physical partition except that one is physical and the other is logical?
2) then it must a one to one ratio? (3 Replies)