Hello all,
In Configure Desktop - Behaviour, one can define what objects appear on the desktop. There is one catch however:
More machines today use sd or micro-sd cards as mass storage (Raspi is an example, but my notebooks also do). If I choose to show mounted removable media, I get my fstab mounted partitions on the desktop, and if I don't want these, I can't get the dynamicaly mounted USB stick to show.
I doubt there is a way to make a difference between an fstab mounted "removable media" and a dynamicaly mounted one?
Thierry
On Tuesday 31 August 2021 02:04:31 Thierry de Coulon wrote:
I doubt there is a way to make a difference between an fstab mounted "removable media" and a dynamicaly mounted one?
Thierry
First of all, I am running a desktop computer, not (as it seems) a laptop like yourself, so I have a different situation. And I use a kind of hodgepodge of different methods, to be sure that I can mount an external device whenever I want.
Somehow, unaccountably, a device that would mount automatically yesterday won't mount today, and this nearly always happens at the least convenient time, so I want something that will work NOW without a lot of fuss. This happens most often with flash drives and SD cards, though. My external drives usually are reliable, and mount without too much fuss.
For the most part, however, I solve the problem by creating custom mount points, with special user-friendly, human-readable names.
examples: /media/Fred ~ or ~ /media/<USER>/wd-1tb_mybook etc., etc.
You can name these special mount points like they were dogs, if you want, or get more creative, or give them boring technical-sounding names -- whatever. I put these mount points in fstab along with the other relevant lines, then I save my fstab file somewhere safe. Next time I must reinstall my system, I just copy the fstab file from my safe place, and overwrite the original. (I keep a copy of original settings, just in case.)
This takes care of most mounting issues. When SD cards or flash drives suddenly stop mounting like usual, I create a mount point using mkdir: /mnt/SD then use this mount command: sudo mount -t exfat /dev/sde1 /mnt/SD [sda1 > sdd1 are internal drives; sde1 is my first external mount point] and that usually does it. But I only mount an SD card in order to transfer files so that I can listen to music on my smartphone, or some such. I don't use an SD for actual storage, as one might with a laptop.
The only problem is when I want to mount BOTH my external hard drives AND my SD cards or flash drives. Then that mount point gets moved around, and sde1 may need to be changed to something else.
I have a couple other tricks, too, but I haven't needed them much since upgrading to Devuan Beowulf.
This ought to provide either a permanent solution (custom mount points in fstab) or at least a dependable workaround (mkdir /mnt/SD). Also the problem with mounting an SD card might be solved by formatting the SD card with a Linux file system like ext3 or ext4 -- I don't even know if that's possible! -- but then it would not be readable for my smartphone, so I haven't tried.
I hope that helps.
Bill
On Tuesday 31 August 2021 01:00:24 pm William Morder via tde-users wrote:
On Tuesday 31 August 2021 02:04:31 Thierry de Coulon wrote:
I doubt there is a way to make a difference between an fstab mounted "removable media" and a dynamicaly mounted one?
Thierry
First of all, I am running a desktop computer, not (as it seems) a laptop like yourself, so I have a different situation. And I use a kind of hodgepodge of different methods, to be sure that I can mount an external device whenever I want.
Somehow, unaccountably, a device that would mount automatically yesterday won't mount today, and this nearly always happens at the least convenient time, so I want something that will work NOW without a lot of fuss. This happens most often with flash drives and SD cards, though. My external drives usually are reliable, and mount without too much fuss.
For the most part, however, I solve the problem by creating custom mount points, with special user-friendly, human-readable names.
examples: /media/Fred ~ or ~ /media/<USER>/wd-1tb_mybook etc., etc.
You can name these special mount points like they were dogs, if you want, or get more creative, or give them boring technical-sounding names -- whatever. I put these mount points in fstab along with the other relevant lines, then I save my fstab file somewhere safe. Next time I must reinstall my system, I just copy the fstab file from my safe place, and overwrite the original. (I keep a copy of original settings, just in case.)
This takes care of most mounting issues. When SD cards or flash drives suddenly stop mounting like usual, I create a mount point using mkdir: /mnt/SD then use this mount command: sudo mount -t exfat /dev/sde1 /mnt/SD [sda1 > sdd1 are internal drives; sde1 is my first external mount point] and that usually does it. But I only mount an SD card in order to transfer files so that I can listen to music on my smartphone, or some such. I don't use an SD for actual storage, as one might with a laptop.
The only problem is when I want to mount BOTH my external hard drives AND my SD cards or flash drives. Then that mount point gets moved around, and sde1 may need to be changed to something else.
I have a couple other tricks, too, but I haven't needed them much since upgrading to Devuan Beowulf.
This ought to provide either a permanent solution (custom mount points in fstab) or at least a dependable workaround (mkdir /mnt/SD). Also the problem with mounting an SD card might be solved by formatting the SD card with a Linux file system like ext3 or ext4 -- I don't even know if that's possible! -- but then it would not be readable for my smartphone, so I haven't tried.
I hope that helps.
Bill ____________________________________________________
Made from the same old fashioned cloth.
I do the same, I use the UUID to setup function specific names. I also use costum names for partitions and removable drives.
As for formatting. As a rule of thumb I always reformat all drives, hds, ssd, usb etc. Especially usb drives because the formatting is done my imaging rather than an actual formatting. These are often flawed or broken. Plus the fact that MS dos doesn't actual properly format anything. Massive amounts of empty space before and after the partition. It's a mess.
I hope this helps as well.
Old Kate
On Tuesday 31 August 2021 21.05:48 Borg Labs wrote:
Made from the same old fashioned cloth.
I do the same, I use the UUID to setup function specific names. I also use costum names for partitions and removable drives.
UUID requires knowing it first, so that's fine if you always use the same removable drive(s)
My "point" (or rather remark and question) is this:
I usually set up the Desktop so that when I plug in a card or stick it is automatically mounted AND appears on the desktop. This works well on desktop computers.
As I said, Raspberry Pi, but also many Laptop I use use or can use some micro-SD card as mass storage. Typically my Toshiba Z20T uses the internal card for / and /home, but most data live on the SD card.
If I set the computer up as my desktop, I can plug in a USB stick and it will appear on the Desktop - but then so does my micro-SD card, which I would prefer not to see there.
If I untick "mounted removable media", then my micro-SD card no more appears, but then neither does my USB stick.
I know how to find where it has been mounted, it's just inconvenient...
I think there is no way to change that, I just wondered if anone had a way. For example, MacOS hides partitions with names starting with .
Thierry
On Tuesday 31 August 2021 02:41:40 pm Thierry de Coulon wrote:
If I untick "mounted removable media", then my micro-SD card no more appears, but then neither does my USB stick.
I know how to find where it has been mounted, it's just inconvenient...
I think there is no way to change that, I just wondered if anone had a way. For example, MacOS hides partitions with names starting with .
Hi Thierry,
I've had the same issue in the past. I never solved it either :(
If a mount doesn't show on the desktop if name "starting with ." then you should be able to do that and then symlink that to where you actually want to mount it. DuckDuck this the right syntax, but something like:
ln -s TARGET LINK_NAME
HTH, Michael
On Tuesday 31 August 2021 03:41:40 pm Thierry de Coulon wrote:
On Tuesday 31 August 2021 21.05:48 Borg Labs wrote:
Made from the same old fashioned cloth.
I do the same, I use the UUID to setup function specific names. I also use costum names for partitions and removable drives.
UUID requires knowing it first, so that's fine if you always use the same removable drive(s)
My "point" (or rather remark and question) is this:
I usually set up the Desktop so that when I plug in a card or stick it is automatically mounted AND appears on the desktop. This works well on desktop computers.
As I said, Raspberry Pi, but also many Laptop I use use or can use some micro-SD card as mass storage. Typically my Toshiba Z20T uses the internal card for / and /home, but most data live on the SD card.
If I set the computer up as my desktop, I can plug in a USB stick and it will appear on the Desktop - but then so does my micro-SD card, which I would prefer not to see there.
If I untick "mounted removable media", then my micro-SD card no more appears, but then neither does my USB stick.
I know how to find where it has been mounted, it's just inconvenient...
I think there is no way to change that, I just wondered if anone had a way. For example, MacOS hides partitions with names starting with .
Thierry ____________________________________________________
ok I think I get what you're saying. You don't want the MSD card to show up on the desktop.
If that's the case, you can do this..
Add the storage media applet to kicker, then to go to configure, then media tab and choose which ones you want to show up on the desktop. In medium type you can choose what type is chosen, when mounted or not etc.
Sending images...
As you can see from image 1, I don't have any of the SSD partitions (there are 3) showing up on the desktop. Everything else will automatically show up.
Let me know if this is what you're talking about. We are hitting a language barrier. English is me second language, Gaelic is me first.
Kate
On 2021-08-31 16:08:11 Borg Labs wrote:
On Tuesday 31 August 2021 03:41:40 pm Thierry de Coulon wrote:
On Tuesday 31 August 2021 21.05:48 Borg Labs wrote:
Made from the same old fashioned cloth.
I do the same, I use the UUID to setup function specific names. I also use costum names for partitions and removable drives.
UUID requires knowing it first, so that's fine if you always use the same removable drive(s)
My "point" (or rather remark and question) is this:
I usually set up the Desktop so that when I plug in a card or stick it is automatically mounted AND appears on the desktop. This works well on desktop computers.
As I said, Raspberry Pi, but also many Laptop I use use or can use some micro-SD card as mass storage. Typically my Toshiba Z20T uses the internal card for / and /home, but most data live on the SD card.
If I set the computer up as my desktop, I can plug in a USB stick and it will appear on the Desktop - but then so does my micro-SD card, which I would prefer not to see there.
If I untick "mounted removable media", then my micro-SD card no more appears, but then neither does my USB stick.
I know how to find where it has been mounted, it's just inconvenient...
I think there is no way to change that, I just wondered if anone had a way. For example, MacOS hides partitions with names starting with .
Thierry ____________________________________________________
ok I think I get what you're saying. You don't want the MSD card to show up on the desktop.
If that's the case, you can do this..
Add the storage media applet to kicker, then to go to configure, then media tab and choose which ones you want to show up on the desktop. In medium type you can choose what type is chosen, when mounted or not etc.
Sending images...
As you can see from image 1, I don't have any of the SSD partitions (there are 3) showing up on the desktop. Everything else will automatically show up.
Let me know if this is what you're talking about. We are hitting a language barrier. English is me second language, Gaelic is me first.
Kate
Notice that there are no entries in the list that differentiate SD from USB storage. Can the system actually see this distinction? If it can, can a user add entries to this list that will allow specification of different mounting/displaying behaviour for the two types, or is that something that the devels would have to add?
Leslie -- Operating System: Linux Distribution: openSUSE Leap 15.3 x86_64 Desktop Environment: Trinity Qt: 3.5.0 TDE: R14.0.10 tde-config: 1.0
On Wednesday 01 September 2021 03:06:36 am you wrote:
On 2021-08-31 16:08:11 Borg Labs wrote:
On Tuesday 31 August 2021 03:41:40 pm Thierry de Coulon wrote:
On Tuesday 31 August 2021 21.05:48 Borg Labs wrote:
Made from the same old fashioned cloth.
I do the same, I use the UUID to setup function specific names. I also use costum names for partitions and removable drives.
UUID requires knowing it first, so that's fine if you always use the same removable drive(s)
My "point" (or rather remark and question) is this:
I usually set up the Desktop so that when I plug in a card or stick it is automatically mounted AND appears on the desktop. This works well on desktop computers.
As I said, Raspberry Pi, but also many Laptop I use use or can use some micro-SD card as mass storage. Typically my Toshiba Z20T uses the internal card for / and /home, but most data live on the SD card.
If I set the computer up as my desktop, I can plug in a USB stick and it will appear on the Desktop - but then so does my micro-SD card, which I would prefer not to see there.
If I untick "mounted removable media", then my micro-SD card no more appears, but then neither does my USB stick.
I know how to find where it has been mounted, it's just inconvenient...
I think there is no way to change that, I just wondered if anone had a way. For example, MacOS hides partitions with names starting with .
Thierry ____________________________________________________
ok I think I get what you're saying. You don't want the MSD card to show up on the desktop.
If that's the case, you can do this..
Add the storage media applet to kicker, then to go to configure, then media tab and choose which ones you want to show up on the desktop. In medium type you can choose what type is chosen, when mounted or not etc.
Sending images...
As you can see from image 1, I don't have any of the SSD partitions (there are 3) showing up on the desktop. Everything else will automatically show up.
Let me know if this is what you're talking about. We are hitting a language barrier. English is me second language, Gaelic is me first.
Kate
Notice that there are no entries in the list that differentiate SD from USB storage. Can the system actually see this distinction? If it can, can a user add entries to this list that will allow specification of different mounting/displaying behaviour for the two types, or is that something that the devels would have to add?
Leslie
This is a great question. I hope someone has the answer. A net search for one is going very slowly. 10MHz / 286 slow.
Kate
Thierry de Coulon composed on 2021-08-31 05:04 (UTC-0400):
In Configure Desktop - Behaviour, one can define what objects appear on the desktop. There is one catch however:
More machines today use sd or micro-sd cards as mass storage (Raspi is an example, but my notebooks also do). If I choose to show mounted removable media, I get my fstab mounted partitions on the desktop, and if I don't want these, I can't get the dynamicaly mounted USB stick to show.
I doubt there is a way to make a difference between an fstab mounted "removable media" and a dynamicaly mounted one?
noauto
or not.
Give every removable (and non-removable) device a LABEL. For those LABELs found in fstab, fstab will control the mounting behavior.
LABELs are much easier for the brain to manage than are UUIDs - LABELs are readily remembered, and flexible in length. For each LABEL on a removable device, create a mount point where you wish to access it, and a corresponding fstab entry. Any without fstab entries are left to be handled same as non-LABELed, automatically mounted in /run/media/username/*, or as otherwise directed by Configure Desktop → Behaviour.
You can have multiple devices with the same LABEL, as long as you never try to have twins/triplets/etc mounted at the same time by LABEL. Those with duplicates can still be mounted, just not by LABEL. LABELs are readily changeable as long as not mounted, or not mounted by LABEL. LABELs can be changed as often as circumstances suggest, meaning if you want to create a clone of one to another, one can be changed, then restored after unmounting the other, or using other than by LABEL for mounting.
I have hundreds of installations. None of their fstabs have contained UUIDs for Linux native filesystems since more than a decade ago.