[SOLVED] Hard Drive Icon

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
kromaz
Level 2
Level 2
Posts: 83
Joined: Sat Oct 26, 2013 10:52 pm

[SOLVED] Hard Drive Icon

Post by kromaz »

Hello,

When mounting USB hard drives I'd like to get the icon just like the file system. When I plug in a flash drive I get that icon in Thunar with the eject button next to it. Why is this different when attaching a USB hard drive? Only way i can access the drive is to go to the folder I set the mount (/media). Is there some setting I'm missing, are USB hard drives consider removable media in Linux? Would be nice to have icon placed on desktop too. Hope I explained this right... Thanks
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Linux Mint 21.1 Vera Xfce
Debian 11.6 Bullseye Xfce
jaderiver
Level 3
Level 3
Posts: 109
Joined: Wed Jun 27, 2012 1:43 pm
Location: Oregon Coast

Re: Hard Drive Icon

Post by jaderiver »

Go to MintMenu > Applications > Preferences > Desktop Settings > then, click on Mounted Volumes.

Hope these steps work for you.

jaderiver
ASUS U56E 64-bit Mint 21.2 MATE Victoria No longer dualbooting WIN 7 and surviving
T-Mobile 5G or 4GLTE hotspot
; WiFi/Tether to Android hotspot
User avatar
kromaz
Level 2
Level 2
Posts: 83
Joined: Sat Oct 26, 2013 10:52 pm

Re: Hard Drive Icon

Post by kromaz »

jaderiver wrote:Go to MintMenu > Applications > Preferences > Desktop Settings > then, click on Mounted Volumes.

Hope these steps work for you.

jaderiver
These are my settings. Still no hard drive icon when mounting USB hard drives. I do get the removable media icon with USB flash drives. Wonder if it's something to do with Xfce and Thunar. Anymore suggestions?
Linux Mint 21.1 Vera Xfce
Debian 11.6 Bullseye Xfce
User avatar
kromaz
Level 2
Level 2
Posts: 83
Joined: Sat Oct 26, 2013 10:52 pm

Re: Hard Drive Icon

Post by kromaz »

I figured out the problem. I setup the partitions for the USB drives using Disk Utility that came with mint install. Looks like it didn't label the filesystem type (ID). 83 is the ID of the native Linux partitions which I was missing. I will always partition my disks in terminal using fdisk. Now I get all my icons on the desktop and in the file manager. I hope this will be helpful for anyone who has had the same issues. :D

First, I deleted the existing partition and created a new Linux partition using fdisk:

Code: Select all

sudo fdisk /dev/sdb
Assuming /dev/sdb is the external hard disk. Use d to delete the partition and use n to create a new partition. 83 is the ID of the native Linux partition.

Then, I use mkfs.ext4 to format the partition with ext4:

Code: Select all

sudo mkfs.ext4 /dev/sdb1
Note that mkfs.ext4 expects a partition as its argument.

Finally, I use tune2fs to adjust some parameters:

Code: Select all

sudo tune2fs -m 0 /dev/sdb1

Code: Select all

sudo tune2fs -L bakap01 /dev/sdb1
The -m option is for adjusting the percentage of reserved blocks. The reserved blocks are used by privileged processes which is by default 5% of the hard disk size. Since I’m using the external hard disk solely as a storage, I set this to 0 so I can also use those 5% for storage. The -L option is for labeling the filesystem.
Linux Mint 21.1 Vera Xfce
Debian 11.6 Bullseye Xfce
jaderiver
Level 3
Level 3
Posts: 109
Joined: Wed Jun 27, 2012 1:43 pm
Location: Oregon Coast

Re: [SOLVED] Hard Drive Icon

Post by jaderiver »

kromaz:

Kudos to your due diligence and figuring out a solution... I learned something by reading your solution, although some aspects of your terminal commands are still over my head.
ASUS U56E 64-bit Mint 21.2 MATE Victoria No longer dualbooting WIN 7 and surviving
T-Mobile 5G or 4GLTE hotspot
; WiFi/Tether to Android hotspot
Locked

Return to “Xfce”