Author Topic: new external usb harddrive does not automount  (Read 2468 times)

Offline gilado

  • Hero Member
  • *****
  • Posts: 530
new external usb harddrive does not automount
« on: January 22, 2010, 01:11:31 AM »
I have been using an old WD 80GB external USB harddrive for 5 years now.

When I plug it in the first time after reboot it auto mounts, shows up on the desktop., etc. If I now safely remove, then replug it, won't show up. Manually mounting it works. It is formatted as FAT32 (bought it this way) and mounts as VFAT.

I just got a new 320GB seagate.  When I plugged it for the first time it did not show up.  I tried to mount manually and found out its an NTFS drive, mounts readonly.

I went ahead and reformatted it as ext3 (first redid its partition table using fdisk, one big Linux partition) This worked beautifully: i now can mount, umount, write files to it, etc. However, it still won't mount automatically.

What service is PCLOS is responsible for auto mounting? is it autofs? udev? why won't it auto mount, why doesn't the old drive auto remounts after the first time?

I poked around a bit and writing an automounter as a bash script does not seem complicated. However, before reinventing the wheel, I think I should attempt to fix the broken one I probably have :)

Online Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6395
  • I'm going South
Re: new external usb harddrive does not automount
« Reply #1 on: January 22, 2010, 05:20:24 AM »
KDE3 or KDE4?
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline gilado

  • Hero Member
  • *****
  • Posts: 530
Re: new external usb harddrive does not automount
« Reply #2 on: January 22, 2010, 06:39:06 AM »
3.5.10

Online Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6395
  • I'm going South
Re: new external usb harddrive does not automount
« Reply #3 on: January 22, 2010, 11:57:50 AM »
3.5.10

I've been on KDE4 for a few months by now and I'm fast forgetting everything related to KDE3.

Nevertheless I vaguely remember using the panel applet "Storage Media" to easily mount and unmount removable media.

Incidentally, your removable drives are probably mounted by hal-mount when udev first has created the device nodes for them.
 
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6254
Re: new external usb harddrive does not automount
« Reply #4 on: January 22, 2010, 12:18:23 PM »

like blackbird, kde3 only exist in memory here. After you plug in your external mass storage device, type "media:/" in konqueror address bar and you should see an icon of your mass storage device. Right click it-> properties and somewhere there is an option to automount the device, select it and that should do it ..i think  :D
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline gilado

  • Hero Member
  • *****
  • Posts: 530
Re: new external usb harddrive does not automount
« Reply #5 on: January 22, 2010, 02:23:51 PM »
it's not kde related

it does not show up in media:// had it showed up i would not have the problem

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6254
Re: new external usb harddrive does not automount
« Reply #6 on: January 22, 2010, 02:51:36 PM »

what does this command give you? "cat /etc/fstab"
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Online Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6395
  • I'm going South
Re: new external usb harddrive does not automount
« Reply #7 on: January 22, 2010, 03:07:41 PM »
Quote from: gilado
it does not show up in media:// had it showed up i would not have the problem

So the problem isn't really mounting the drives but that the system doesn't see them when you plug them back in.

Are the haldaemon and the KDED Media Manager running?

If they aren't you can check the box for haldaemon in "PCC -> System -> Manage system services" and for the KDED Media Manager in "kcontrol -> KDE Components -> Service Manager".

But start by posting the info muungwana asked for. (If your drives have lines in /etc/fstab they won't need HAL.)
« Last Edit: January 22, 2010, 03:12:55 PM by blackbird »
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline gilado

  • Hero Member
  • *****
  • Posts: 530
Re: new external usb harddrive does not automount
« Reply #8 on: January 22, 2010, 04:35:19 PM »
cat /etc/fstab gives nothing

however ls /dev/disk/by-uuid reliably show when they are connected


Offline coffeetime

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3426
  • Send me an Angel
Re: new external usb harddrive does not automount
« Reply #9 on: January 22, 2010, 04:45:06 PM »
it's not kde related

it does not show up in media:// had it showed up i would not have the problem

AFAIR it should be media:/

PCLinuxOS e17 Club member/e17 video/Wifi problems?
those who complain rarely read. those who read rarely complain
 

Offline gilado

  • Hero Member
  • *****
  • Posts: 530
Re: new external usb harddrive does not automount
« Reply #10 on: January 22, 2010, 04:47:51 PM »
folks had it showed up in fstab i wouldn't be bugging you

Offline gilado

  • Hero Member
  • *****
  • Posts: 530
Re: new external usb harddrive does not automount
« Reply #11 on: January 22, 2010, 04:55:08 PM »
>>> Are the haldaemon and the KDED Media Manager running?

Both are checked




Offline muungwana

  • Hero Member
  • *****
  • Posts: 6254
Re: new external usb harddrive does not automount
« Reply #12 on: January 22, 2010, 05:01:21 PM »

this is the first time i am hearing "cat /etc/fstab" doesnt give any output. How does your system boot up without fstab and its entries?

can you browse with your file manager to /etc folder and look for the text file named "fstab" and open it with a text editor?

maybe its permissions are wrong?

what output do this command give you? "ls -l /etc/fstab"
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline gilado

  • Hero Member
  • *****
  • Posts: 530
Re: new external usb harddrive does not automount
« Reply #13 on: January 22, 2010, 06:37:35 PM »
i meant regarding these two external drives

they do show up in /etc/mtab after i manually mount them

anyway i wrote a little script that runs in /etc/init.d watches for the drives and mounts them

i think what's going on is that haldaemon crashes after a while but i have not been able to catch red handed

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6254
Re: new external usb harddrive does not automount
« Reply #14 on: January 22, 2010, 07:01:34 PM »

any reason why you dont want to show us your fstab?  :D :D ..there could be a number of reasons why things dont work as expected, sometimes people ask questions to rule out possibilities you may not have considered .. you said they show up in mtab after you mount them but didnt say how they show up in mtab and what options you passed to the mount command .. we cant rule out anything without knowing how stuff are on your system and the only way we can know that is by you answering questions that are asked or giving outputs of command you are asked
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..