Author Topic: Disk mounting phantom entries etc  (Read 220 times)

Offline veronicathecow

  • Full Member
  • ***
  • Posts: 185
Disk mounting phantom entries etc
« on: February 05, 2013, 03:50:50 AM »
For a while now I have had problems with drives (internal and usb ) doing strange things.
An good example is I currently have an entry in Dolphin (same in PCManFM) called
/media/storage1000-1/
it should be (and was in the past) /media/storage1000/
In the panel on the left it is just marked as storage1000 (the disk label is storage1000)
I have had to change my music directories in Clementine to /media/storage1000-1/allmusic

fstab is shown below
# Entry for /dev/sda2 :
UUID=306df11a-95de-4e29-8596-eee6f584fcf1 / ext4 defaults 1 1
none /proc proc defaults 0 0
# Entry for /dev/sdc2 :
UUID=9ad965f9-6066-4923-a4db-6e49f787c274 swap swap defaults 0 0
none /dev/pts devpts defaults 0 0

I am running KDE 2012 fully updated
Any ideas much appreciated
Tony

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10640
  • MLUs Forever!
Re: Disk mounting phantom entries etc
« Reply #1 on: February 05, 2013, 04:02:05 AM »
This usually happens because its preferred mount point (/media/storage1000) is already present and so cannot be used.

Deleting the unwanted mount point usually allows the newly attached media mount under its preferred mount point.

***

Close all apps.

In a terminal as root

umount -a

That should unmount all partitions that are not in use or needed .....  such as / & /home.

Issue

mount

to see what is now mounted, ensuring that none of the partitions are mounted under  /media.

(If there are some mounts that refuse to be unmounted stop here and post back)

Navigate in Dolphin to  /media

Check if you have /media/storage1000 there, and that it has no contents.

If it is empty delete it ....  you *might* need to be root to do so .....  so be careful.

Now attach the storage1000 device to the PC and check that it mounts under  /media/storage1000

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline veronicathecow

  • Full Member
  • ***
  • Posts: 185
Re: Disk mounting phantom entries etc
« Reply #2 on: February 05, 2013, 06:44:26 AM »
Hi again Just17, thanks for reply
My apologies I should have mentioned that storage1000 is a permanently connected sata drive.
I am guessing that I should not delete the entry in dolphin with it being plugged in?

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10640
  • MLUs Forever!
Re: Disk mounting phantom entries etc
« Reply #3 on: February 05, 2013, 07:17:52 AM »
Hi again Just17, thanks for reply
My apologies I should have mentioned that storage1000 is a permanently connected sata drive.
I am guessing that I should not delete the entry in dolphin with it being plugged in?


OK, the drive is permanently connected, but you are mounting it as user under /media, it appears.

I do something similar myself with a number of partitions.

Yes - IF the entry /media/storage1000 is unused (after umount -a) you can delete the entry.

Then clicking on the Storage1000 in Dolphin side panel should create a new mount point called storage1000 .......

storage1000-1  would be used if  storage1000 already existed. If the existing one is unused it can be deleted allowing the name free for use.


You also mentioned USB drives in the OP .......  have you set up the partitions in Device Notifier for mounting (or not) as you prefer?

It is there that I manage the internal partitions .....  some automount as they are required immediately, while others do not as they are used intermittently.

If I seem to be misunderstanding your situation please post a longer explanation of your set up  ;)

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline veronicathecow

  • Full Member
  • ***
  • Posts: 185
Re: Disk mounting phantom entries etc
« Reply #4 on: February 05, 2013, 11:14:24 AM »
Hi Just17
I have SSD60Gb split into 2 30gb.
/dev/sda1  Mounted on /media/disk  LABEL = sda130gb
/dev/sda2 Mounted on /   LABEL = sda2

I have a 1000Gb Sata
/dev/sdb1  Mounted on /media/storage1000-1  LABEL = storage1000

I have a 500g#Gb drive split into an ext and a small swap
/dev/sdc1  Mounted on /media/sdc1-1   LABEL = sdc1

On drive notifier I have set set
All these drives to Automount on login but also automount on attach which now strikes me as possibly a problem?

I also have set Allow automatic mounting of removable media
Mount all removable media at login and
Automatically mount removable media when attached.

USBs are not plugged in all the time.
Cheers

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10640
  • MLUs Forever!
Re: Disk mounting phantom entries etc
« Reply #5 on: February 05, 2013, 12:42:03 PM »
I don't allow removable media to be mounted on install ......  if I want access clicking on the entry in Dolphin both mounts it automatically and allows me access.

I have Device Notifier Settings set to "All Devices"

Removable Devices .....  Enable automatic mounting is ticked and the other three boxes unticked

I then individually tick those boxes for the partitions I want to automount on start up.

***

Whatever settings you use to suit your way of working, deleting the unused directory under /media will allow that name to be used when required.

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline veronicathecow

  • Full Member
  • ***
  • Posts: 185
Re: Disk mounting phantom entries etc
« Reply #6 on: February 07, 2013, 05:15:55 PM »
Hi Just17, been caught up with work last few days. Years ago I lost all my data when a RH install went belly up so I am now paranoid
I unplugged my HDDs and booted but PClinuxos would not load. So I'm going to backup my drives before risking anything else. Will post what happens,
thanks Tony