View Single Post

   
  #6 (permalink)  
Old 01-18-2008, 04:34 PM
Nico Kadel-Garcia
 
Posts: n/a
Default Re: how can I automount a external hard drive on startup?

kermit wrote:
> news2003@wanadoo.es wrote:
>
>> I try to mount it on FC4.
>>

>
> it should have HAL. Nowadays autmounting is (usually) done by
> combination of kernel + udev + HAL + user agent that does actual
> mount. I am surprised it did not "just work".
>
> Are you using GUI? Which one (KDE or Gnome and which version)? Do you
> have HAL installed? Do you use udev?


I had problems myself with external USB drives and FC4, at least out of the
box. I'd certainly update to the latest kernel: I was trying to use an
external 300 Gig drive as a mirror drive for a source code repository, and
it would hang with the default FC4 kernel. It got a lot better with 2.6.14
based recent kernels, but I never got a chance to really test it again under
serious load.

I wound up giving up on USB for the moment and switching to a firewire card
and the firewire port on the machine, which worked flawlessly.

>> I didn't manage to make it work using the firewire port. I tried the
>> drive in another machine using the Firewire port and works.
>>

>
> That sounds like hardware issue unless another machine is using
> another distribution.


Really: which kernel? And does a Knoppix boot CD or DVD detect it and mount
it properly?

>> There is another question that comes to my mind.
>>
>> this is the result of df -h
>>
>> $ df -h
>> Filesystem Size Used Avail Use% Mounted on
>> /dev/mapper/VolGroup00-LogVol00
>> 11G 8.9G 1.3G 88% /
>> /dev/hda1 99M 9.8M 84M 11% /boot
>> /dev/shm 252M 0 252M 0% /dev/shm
>> /dev/sda 276G 217M 261G 1% /mnt/external
>>
>> When I come to fdisk I get quite confuse. Originally it was set the
>> mount as /dev/sda1. I don't know if this changed will make a big
>> change for futures update of the machine. Or in case I plug a second
>> USB drive.

>
> This implies that either partition table on your hard drive was
> changed or a bug in HAL or whatever software is used to setup mount
> points. HAL did have some issues with FAT detection (are you using
> FAT BTW?)


It looks to me like someone set up the hard drive as a single filesystem
without ever setting up a parttion, this it mounts as /dev/sda instead of as
/dev/sda1. That.... could cause adventures. Can you type "fdisk -l /dev/sda"
and see what is reported?

>> Also the information about "mount and unmount it when I plug it in"
>> will be helpful as I won't need to reboot the system.
>>

>
> http://freedesktop.org/ then got to Software and look for HAL.


Also looks like a good idea.


Reply With Quote