Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I've added a fibrechannel disk to a RHEL 5.5 server. The disk is present and shows under /dev/sdxx - But I need to give udev a kick and have it refresh the /dev/disk/by-label/LABEL links; this is where I do my mount points.

I do not want to reboot the system.

Any help is appreciated.

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Try udevtrigger. That should replay all outstanding udev-tasks.

share|improve this answer

Did you label the filesystem when you created it? If not, it won't appear under /dev/disk/by-label as it doesn't have one!

You don't mention which filesystem you're using, so I'll assume ext3 as that's the default in RHEL 5. You can use tune2fs to examine the device:

$ sudo tune2fs -l /dev/sda1 | grep name
Filesystem volume name:   home

If this says <none> then you can use tune2fs again to add a label:

$ sudo tune2fs -L mylabel /dev/sda1

This should populate /dev/disk/by-label.

You can also use -L label with mkfs.ext3 when creating the filesystem.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.