Mounted Hard Disk on the Destop

Forum rules
Before you post please read this

Mounted Hard Disk on the Destop

Postby alex00 on Tue Sep 13, 2011 4:51 am

I have two hard disks in my PC. The second one has been installed after the MINT 10 installation.
Unfortunately the second hard disk is always visible in form of a Icon on the desktop.
How can I do that this hard disk is not represented by an icon on the desktop. If I choose that no mounted medium is represented by a
icon i lose also mounted usb-stcik, which is not my intention.

The must be a method to choose which medium should be represented by a icon on the desktop and which not.

Thanks for your help,
Alex
alex00
Level 1
Level 1
 
Posts: 8
Joined: Fri Nov 13, 2009 4:03 am

Linux Mint is funded by ads and donations.
 

Re: Mounted Hard Disk on the Destop

Postby xenopeek on Tue Sep 13, 2011 5:07 am

Probably because you didn't configure the system to mount your second harddisk, it gets detected by the operating system and is then automatically mounted. Automatically mounted devices (like the USB stick) get shown on the desktop.

Solution is to configure in /etc/fstab this second harddisk to be mounted at boot time. If you don't know how, we can help. Please post the output of the following command from the terminal:
Code: Select all
sudo fdisk -l /dev/sdb

And can you share how you are using the second harddisk? Is this purely for Linux, or is their another operating system that also has access to it or something?
Image
Linux Mint 14 Nadia / 64-bit / Cinnamon
User avatar
xenopeek
Level 20
Level 20
 
Posts: 10523
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Mounted Hard Disk on the Destop

Postby alex00 on Tue Sep 13, 2011 5:14 am

Here my fstab. I am using Linux only. No other OS has to have access to the hard disk. the last entry is the important one.

Code: Select all
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    nodev,noexec,nosuid 0       0
# / was on /dev/sda1 during installation
UUID=b0e503de-763c-4bfd-85d8-aaef76c7a10c /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=f2e04a66-1f17-402d-abd5-a0b4b4d4f0a0 none            swap    sw              0       0

UUID=af432351-0767-4d16-b31c-f11c7005e036     /home/alex/Daten/Bilddatenbank   ext4    rw, user        0       2
alex00
Level 1
Level 1
 
Posts: 8
Joined: Fri Nov 13, 2009 4:03 am

Re: Mounted Hard Disk on the Destop

Postby altair4 on Tue Sep 13, 2011 6:49 am

UUID=af432351-0767-4d16-b31c-f11c7005e036 /home/alex/Daten/Bilddatenbank ext4 rw, user 0 2

Any partition mounted to /media or your home directory as you have done will show up on the desktop with a mount icon. If you mount it anywhere else it will not.

So create a mount point at say /mnt/Daten or even /Daten and the mount icon will go away:
Code: Select all
UUID=af432351-0767-4d16-b31c-f11c7005e036     /mnt/Daten   ext4    rw, user        0       2


The consequence of doing this however is that you lost easy access to the partition in Nautilus. It's there but you will have to go through extra steps ( File System > Daten ) to get to it. Some options:

* Bookmark /mnt/Daten so that it shows up under Places in Nautilus.
* Create a symbolic link from /mnt/Daten to your home directory.
* Bind /mnt/Daten to your home directory. This is the method I use. If you're interested here's how I did it:
Using Bind to Remount Part of a Partition: viewtopic.php?f=42&t=74321

The easiest method is the bookmark.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4656
Joined: Tue Feb 03, 2009 10:27 am

Re: Mounted Hard Disk on the Destop

Postby alex00 on Tue Sep 13, 2011 7:20 am

I have done the following:

Code: Select all
UUID=af432351-0767-4d16-b31c-f11c7005e036     /home/Bilddatenbank   ext4    auto,rw,user        0       2


Unfortunately I have a read only situation now. Whats happen?
alex00
Level 1
Level 1
 
Posts: 8
Joined: Fri Nov 13, 2009 4:03 am

Re: Mounted Hard Disk on the Destop

Postby altair4 on Tue Sep 13, 2011 7:25 am

You have read only on /home/Bilddatenbank ?

If so, then take possession of the mounted partition:
Code: Select all
sudo chown alex /home/Bilddatenbank
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
altair4
Level 13
Level 13
 
Posts: 4656
Joined: Tue Feb 03, 2009 10:27 am

Re: Mounted Hard Disk on the Destop

Postby alex00 on Tue Sep 13, 2011 7:29 am

Thanks....it works.
alex00
Level 1
Level 1
 
Posts: 8
Joined: Fri Nov 13, 2009 4:03 am

Linux Mint is funded by ads and donations.
 

Return to Gnome

Who is online

Users browsing this forum: No registered users and 0 guests