Mounting on startup in 12.04

Sajan Parikh sajan at parikh.io
Mon Mar 17 19:51:37 UTC 2014


On 03/17/2014 02:43 PM, TopBot . wrote:
> With regards to this question:
>
> http://askubuntu.com/questions/45241/mount-drive-through-command-line-as-if-i-clicked-on-it-in-nautilus/435595#435595
>
> Is there any way to use this command in the rc.local or otherwise at
> startup without editing fstab?
>
> udisks --mount /dev/disk/by-label/Data
>
> It works great as a manual command in terminal but when i try to mount
> the drive "Data" using the same command on startup by using the command
> via rc.local, the data drive disappears from the side panel and when I
> try to open it from /media/Data it says I do not have the permissions to
> access content from the drive (which is not the issue if i do it on
> normal basis).. the point was to mount the drive without any other
> hassle on startup. Is it being mounted by root and I need permissions to
> access too? Is there any modification of the command that will enable
> mounting the drive just as if it was manually entered at the start?
>
> I posted on that thread but then found out that it was a very old thread
> so posting here. I'll like to mount the drive by label "Data" on start
> up but not by editing fstab rather by some start up script preferably
> rc.local minus the issue being faced.
>
> --
> TopBot.
>
>

Could write a quick bash script, throw it in a directory like ~/scripts, 
make it executable and add it to the list of "Startup Applications".

Sajan Parikh




More information about the ubuntu-users mailing list