VMware Cloud Community
The-Kevster
Contributor
Contributor

ESX4 (linux in general) mounting / umounting USB drives

Hi,

I've plugged a USB drive into ESX4 and the service console adds it as sdd and sdd1. I mount sdd1 and add/remove files for backup. I then umount the directory I previously mounted and remove the device. But the folders sdd and sdd1 still appear in /dev. In fact I've done this so many times I have sdd, sde, sdf, sdg, sdh, and sdi. Is this normal behavior in Linux or am I missing a command which removes it from the /dev directory? If this is normal how many times can I remove/add the device before there's a problem?

Thanks for your help,

Kev

0 Kudos
2 Replies
AndreTheGiant
Immortal
Immortal

Is this normal behavior in Linux or am I missing a command which removes it from the /dev directory?

Probably is incorrect configuration of udev.

Usually Linux handle the add and remove correctly. But the Service Console is not a "real" Linux system (is works in a virtualized environment)...

Andre

**if you found this or any other answer useful please consider allocating points for helpful or correct answers

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
Texiwill
Leadership
Leadership

Hello,

This means there are probably persistent UDEV rules for the USB ports in use. Do an

ls /etc/udev/rules.d/*persistent*

. Then investigate any persistent file that looks to be 'disk' or 'usb' related. If you find one that contains 'sdd' then you can most likely remove that single file and next time the usb drive will be mounted as /dev/sdd.

However, this solely depends on udev and how the usb devices is actually mounted.


Best regards, Edward L. Haletky VMware Communities User Moderator, VMware vExpert 2009
Now Available on Rough-Cuts: 'VMware vSphere(TM) and Virtual Infrastructure Security: Securing ESX and the Virtual Environment'[/url]
Also available 'VMWare ESX Server in the Enterprise'[/url]
[url=http://www.astroarch.com/wiki/index.php/Blog_Roll]SearchVMware Pro[/url]|Blue Gears[/url]|Top Virtualization Security Links[/url]|Virtualization Security Round Table Podcast[/url]

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
0 Kudos