disk enumeration


Recommended Posts

You can parse /var/local/emhttp/disks.ini

 

 

Or just keep testing if /mnt/disk1, /mnt/disk2, /mnt/disk3, ... exists as a directory.

 

OK, I'll take a look at the ini. My initial idea was your second suggestion. But come to think of it, I don't really need to know how many disks there are. I'm really just trying to find which disk a file is on and the simplest thing would probably be to just search disks 1 to 21 (or whatever the upward limit is) until it finds it.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.