Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for mounts of disks without partition tables #1

Open
raleeper opened this issue Feb 2, 2019 · 0 comments
Open

Check for mounts of disks without partition tables #1

raleeper opened this issue Feb 2, 2019 · 0 comments

Comments

@raleeper
Copy link

raleeper commented Feb 2, 2019

When a disk that does not have a partition table is mounted it shows up in /etc/mtab without a numeric suffix. The current code requires the suffix and misses the mount. I found that changing this

# make sure it is not mounted
    if (( $(awk -v dev="^${HDD_LIST[i]}[0-9]+" \

to

# make sure it is not mounted
    if (( $(awk -v dev="^${HDD_LIST[i]}[0-9]*" \

helped me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant