I believe that should work, I always suggested adding the line, then trying a mount all, and check error before rebooting.  That way you can adjust any errors without needing emergency mode.

The nofail prevents errors if the drive is not present, or can not be mounted

Regards,

Luke Attard
Rapid IT Group Pty Ltd

Phone: (03) 7064 9950
Email:[email protected]

On 25/09/2022 4:24 pm, Andrew Greig via luv-main wrote:

Hi Luke,

I was a bit rusty and I copied that line you sent at the bottom of fstab, and then rebooted into emergency mode, so i used Emergency mode to comment out the line.

Now I have inserted a card and run df to see how it is named

/dev/mmcblk0p1           15549952       32  15549920   1% /media/andrewlg/disk

(/dev/multimediacardblock0p1 16Gb)

So should my line in fstab now look like this?

/dev/mmcblk0p1 /media/andrewlg/disk auto defaults,nofail  0  2


Many thanks

Andrew

On 25/9/22 13:35, Luke Attard wrote:

Andrew,

One more thing, make sure in the fstab entry, you have nofail listed in the options, otherwise you will have to wait on boot each time for the timeout.

|/dev/sdc /mnt/SDCard auto defaults,nofail 0 2|


Regards,

Luke Attard
Rapid IT Group Pty Ltd

Phone: (03) 7064 9950
Email:[email protected]
On 25/09/2022 11:01 am, Luke Attard wrote:
Sorry Andrew I just noticed your reply.

I see what you are wanting now, sorry for the misread.  In the same section " file manager, and edit the preferences, under behaviour" is there a default setting at all?

To confirm Dolphin is just a file manager?  so what you need is for the SDcard to auto mount when it is inserted?  Do you have an entry in your /etc/fstab for the SDcard using the predictable name of the port (using the predictable name ensures that the mount will work for any SDcard inserted), or if it is always the same SDCard that you want to automount you can add the entry to fstab using the UUID of the sdcard.

If you already have an entry in fstab, you can use udev rules to automount.

Regards,

Luke Attard
Rapid IT Group Pty Ltd

Phone: (03) 7064 9950
Email: [email protected]

On 23/09/2022 9:15 pm, Andrew Greig wrote:
Hi Luke,

Thanks for your reply but:

"Open that file manager, and edit the preferences, under behaviour, and set darktable to auto run when removable media is inserted." is exactly what I am trying to stop. The removable media does not open in Dolphin at all, but the removable media Icon in the quick launch bar (using Nautilus by default) appears not to be responsive to the settings, which is why I am trying to find what else is interfering.

Thanks

Andrew

On 23/9/22 00:11, Luke Attard wrote:
In the settings manager there should be something along the lines of default application, check what the default "File Manager" is.

Open that file manager, and edit the preferences, under behaviour, and set darktable to auto run when removable media is inserted.


Alternatively you can use udev rules to start the application when an SD card is inserted,

https://linuxconfig.org/tutorial-on-how-to-write-basic-udev-rules-in-linux

gives a basic overview of udev rules.

Regards,

Luke Attard
Rapid IT Group Pty Ltd

Phone: (03) 7064 9950
Email: [email protected]

On 22/09/2022 5:17 pm, Andrew Greig via luv-main wrote:
Hi All,

I have recently updated my Laptop to Ubuntu 22.04.

In the previous version 20.04 I had an issue with Ubuntu wanting to start darktable automatically when an SD card was inserted . That problem was fixed when I had some advice from the list and checked a box in Settings>Removable Media>"Never prompt or start programs on media insertion.

Now I have the same problem but the previous solution no longer works. I would like an SD card to show up as another drive in Dolphin (my desktop experience for both versions of Ubuntu). To be fair, I use a card reader (USB) on my desktop and the SD card slot in my laptop.

Where can I look for a way to alter this behaviour, please?


Andrew Greig

_______________________________________________
luv-main mailing list -- [email protected]
To unsubscribe send an email to [email protected]

_______________________________________________
luv-main mailing list [email protected]
To unsubscribe send an email [email protected]
_______________________________________________
luv-main mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to