Monday, 9 February 2015

[lubuntu] start-up script mounting parts requires sudo topic






Hi,
Trouble auto mounting partitions on drive at stat-up.
I open a ticket close to this and closed it, however; I ran into new problem.
I use gawk script which parses "udisks --dump" and with given options will generate:
sudo mkdir /media/keith/WinXp ; sudo mount /dev/sda1 /media/keith/WinXp
sudo mkdir /media/keith/Win7 ; sudo mount /dev/sda5 /media/keith/Win7
sudo mkdir /media/keith/Vault ; sudo mount /dev/sda3 /media/keith/Vault

The script is good, or works once boot-up occurs but adding this script to Menu-Preferences-System Settings
fails to mount the 3 partitions. script: getdrv -ma -np (mounts all mountable drives w/o print status, generating the "sudo" lines above

I don't get prompted for sudo password, is this what I need to address?
Is this script being run as a su when placing it in start-up scripts?

want to selectively mount various partitions at start-up.
thanks,
keith






No comments:

Post a Comment