Re: [newbie] Automatically mount a USB drive

2004-04-23 Thread Adolfo Bello
On Thu, 2004-04-22 at 07:03, Alexandre Aractingi wrote:
 Le jeu 22/04/2004 à 12:47, Adolfo Bello a écrit :
  Out of curiosity, I just plugged the USB pen and went to a cli without
  clicking the desktop icon. It was automatically mounted.
 
 Argl, that's what I'd like to have!!
 
  This is the line in my fstab.
  
  none /mnt/removable supermount
  dev=/dev/scsi/host1/bus0/target0/lun0/part1,fs=ext2:vfat,--
  
  MDK 10 kernel 2.6.3.8
 
 I use 2.6.3-7, maybe that's related...
 Do you have any additional running dameons that could be related?

I had the same problem until I activated hotplug. I didn't mentioned
anything because I saw you mentioned it in your original post. Is
supermount enabled?

I also have magicedev enabled. However, I read that it only works with
CD drives. Not sure.

Adolfo



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Automatically mount a USB drive

2004-04-23 Thread Adolfo Bello
On Thu, 2004-04-22 at 06:47, Adolfo Bello wrote:

In my previous post the /etc/fstab line was wrong.

The line that is created in my /etc/fstab is:

none /mnt/removable supermount
dev=/dev/scsi/host2/bus0/target0/lun0/part1,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,kudzu,codepage=850
 0 0

I just made myself sure that the USB pen is mounted automatically. I
rebooted to runlevel 3, plugged the thing and there it was nicely
mounted.

Adolfo



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Automatically mount a USB drive

2004-04-22 Thread Alexandre Aractingi
Le mer 21/04/2004 à 23:20, Ian Urie a écrit :
 I'm afraid I use KDE..and the icon only appears when the drive (memory 
 stick) is inserted. The drive must mount automatically , or the icon wouldn't 
 appear as far as I can see.

I don't think that's true...
When the icon appears on your desktop, don't click on it. Open a shell
and cd to the dir, you'll see it's empty, because it hasn't been mounted
yet.
It is mounted on the fly by KDE, when you click on that icon. So it's
not available until the icon has been clicked, which can be an issue if
we want to automate things.
Besides, if you get this icon on your desktop, it won't be removed when
your USB device is unmounted. If it were automatically mounted you could
untick unmounted hard drive partition and then the icon would
disappear when the drive is unmounted, which would be more elegant...
Anyway, thanks again for the hints,

-- 
Alexandre Aractingi [EMAIL PROTECTED]



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Automatically mount a USB drive

2004-04-22 Thread Adolfo Bello
On Thu, 2004-04-22 at 02:09, Alexandre Aractingi wrote:
 Le mer 21/04/2004 à 23:20, Ian Urie a écrit :
  I'm afraid I use KDE..and the icon only appears when the drive (memory 
  stick) is inserted. The drive must mount automatically , or the icon wouldn't 
  appear as far as I can see.
 
 I don't think that's true...
 When the icon appears on your desktop, don't click on it. Open a shell
 and cd to the dir, you'll see it's empty, because it hasn't been mounted
 yet.
 It is mounted on the fly by KDE, when you click on that icon. So it's
 not available until the icon has been clicked, which can be an issue if
 we want to automate things.
 Besides, if you get this icon on your desktop, it won't be removed when
 your USB device is unmounted. If it were automatically mounted you could
 untick unmounted hard drive partition and then the icon would
 disappear when the drive is unmounted, which would be more elegant...
 Anyway, thanks again for the hints,

Out of curiosity, I just plugged the USB pen and went to a cli without
clicking the desktop icon. It was automatically mounted.

This is the line in my fstab.

none /mnt/removable supermount
dev=/dev/scsi/host1/bus0/target0/lun0/part1,fs=ext2:vfat,--

MDK 10 kernel 2.6.3.8

Adolfo.



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Automatically mount a USB drive

2004-04-22 Thread Alexandre Aractingi
Le jeu 22/04/2004 à 12:47, Adolfo Bello a écrit :
 Out of curiosity, I just plugged the USB pen and went to a cli without
 clicking the desktop icon. It was automatically mounted.

Argl, that's what I'd like to have!!

 This is the line in my fstab.
 
 none /mnt/removable supermount
 dev=/dev/scsi/host1/bus0/target0/lun0/part1,fs=ext2:vfat,--
 
 MDK 10 kernel 2.6.3.8

I use 2.6.3-7, maybe that's related...
Do you have any additional running dameons that could be related?

-- 
Alexandre Aractingi [EMAIL PROTECTED]



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Automatically mount a USB drive

2004-04-22 Thread Adolfo Bello
On Thu, 2004-04-22 at 06:47, Adolfo Bello wrote:

In my previous post the /etc/fstab line was wrong.

The line that is created in my /etc/fstab is:

none /mnt/removable supermount
dev=/dev/scsi/host2/bus0/target0/lun0/part1,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,kudzu,codepage=850
 0 0

I just made myself sure that the USB pen is mounted automatically. I
rebooted to runlevel 3, plugged the thing and there it was nicely
mounted.

Adolfo



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Automatically mount a USB drive

2004-04-22 Thread Adolfo Bello
On Thu, 2004-04-22 at 07:03, Alexandre Aractingi wrote:
 Le jeu 22/04/2004 à 12:47, Adolfo Bello a écrit :
  Out of curiosity, I just plugged the USB pen and went to a cli without
  clicking the desktop icon. It was automatically mounted.
 
 Argl, that's what I'd like to have!!
 
  This is the line in my fstab.
  
  none /mnt/removable supermount
  dev=/dev/scsi/host1/bus0/target0/lun0/part1,fs=ext2:vfat,--
  
  MDK 10 kernel 2.6.3.8
 
 I use 2.6.3-7, maybe that's related...
 Do you have any additional running dameons that could be related?

I had the same problem until I activated hotplug. I didn't mentioned
anything because I saw you mentioned it in your original post. Is
supermount enabled?

I also have magicedev enabled. However, I read that it only works with
CD drives. Not sure.

Adolfo



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Automatically mount a USB drive

2004-04-22 Thread Alexandre Aractingi
Le jeu 22/04/2004 à 13:52, Adolfo Bello a écrit :
 I had the same problem until I activated hotplug. I didn't mentioned
 anything because I saw you mentioned it in your original post. Is
 supermount enabled?

I have supermount enabled yes, and I can see the additional line in
/etc/fstab, so I guess hotplug was responsible for that. I'll restart it
tonight (I'm not in front of the PC right now) and let you know if it
changed anything.
Thanks for your answers!

-- 
Alexandre Aractingi [EMAIL PROTECTED]



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Automatically mount a USB drive

2004-04-21 Thread Ian Urie
On Wednesday 21 Apr 2004 14:06, Alexandre Aractingi wrote:
 Hi all,
 I'm using Mdk 10.0 and I have a USB2 drive which is detected ok by
 hotplug (/etc/fstab gets updated when I plug the drive), but I still
 have to mount /mnt/removable to have it mounted.
 Is there a way to have it automatically mounted?
 Thanks,
In KDE...go to behaviour , tick the mounted hard drive partition.
-- 
[EMAIL PROTECTED]
Broadband for Doon Valley
It's a reality!!!
Now going penguin hunting!!


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Automatically mount a USB drive

2004-04-21 Thread Kaj Haulrich
On Wednesday 21 April 2004 21:40, Ron Hunter-Duvar wrote:

snip
 Is there a Mandrake equivalent to Ctrl-Alt-Del, which on Windoze
 2K usually at least allows me to gain enough control to do a
 clean shutdown (I'm not a Windoze fan, my employer makes me use
 it, I just like to have that particular feature available).
/snip

Depending on your setting in /etc/inittab the Windows-salute 
should initiate a clean shutdown or reboot. But, honestly, this is 
hardly ever needed in linux.

In case of a hanging application (in KDE) you
can hit Ctrl + Alt + Esc then move your cursor (now a skull) to 
the offending application and left-click. That's a kill.

In case of a hanging GUI (X-server), you can hit Ctrl + Alt + 
Backspace. This kills X and gets you to a new login.

In case of nothing (exept the keyboard) working, and right before 
you consider a hard reset, you have to play a little piano-sonata :

Alt + SysRq + r + s + e + i + u + b

(Mnemotech : Raising Skinny Elephants Is Utterly Boring)

This sequence performs a clean reboot, including sync.

HTH
Kaj Haulrich.
-- 
* Sent from a 100 % Microsoft-free computer *
* running Linux kernel 2.6.4 on Mandrake 10.0 *


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Automatically mount a USB drive

2004-04-21 Thread Alexandre Aractingi
Le mer 21/04/2004 à 19:27, Ian Urie a écrit :
 In KDE...go to behaviour , tick the mounted hard drive partition.

Hi, thanks for the tip. Actually this was already ticked, I also ticked
unmounted hard drive partition and it appeared when I plugged my USB
device, so it's kinda working.

But I don't use KDE that often (XFCE4 is my desktop), and there is no
desktop icons. Would there be a way to tell the system to mount the
drives as soon as they are created by hotplug? Then it shouldn't be
configured at the desktop level...

Again, thanks for your help,

-- 
Alexandre Aractingi [EMAIL PROTECTED]



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Automatically mount a USB drive

2004-04-21 Thread Richard Urwin
On Wednesday 21 Apr 2004 9:24 pm, Kaj Haulrich wrote:
 In case of nothing (exept the keyboard) working, and right before
 you consider a hard reset, you have to play a little piano-sonata :

 Alt + SysRq + r + s + e + i + u + b

 (Mnemotech : Raising Skinny Elephants Is Utterly Boring)

 This sequence performs a clean reboot, including sync.

There are one or two people who have recently said they had no option 
but a hard reset. I would say it was absolutely vital to do this 
sequence, even if you think the keyboard is dead.

I would suggest that Raising Skinny Elephants Is Sometimes Utterly 
'Orrible, because

It's probably a good idea to sync after killing all the tasks.

A soft reboot doesn't send a bus reset to the peripherals, so it might 
leave them in a bad state. Given the choice it's better to switch the 
machine off.

But either version is a lot better than nothing.

-- 
Richard Urwin


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com



Re: [newbie] Automatically mount a USB drive

2004-04-21 Thread Ron Hunter-Duvar
On April 21, 2004 14:24, Kaj Haulrich wrote:
 On Wednesday 21 April 2004 21:40, Ron Hunter-Duvar wrote:

 snip

  Is there a Mandrake equivalent to Ctrl-Alt-Del, which on Windoze
  2K usually at least allows me to gain enough control to do a
  clean shutdown (I'm not a Windoze fan, my employer makes me use
  it, I just like to have that particular feature available).

 /snip

 Depending on your setting in /etc/inittab the Windows-salute
 should initiate a clean shutdown or reboot. But, honestly, this is
 hardly ever needed in linux.

I haven't touched my inittab, just whatever 10.0 CE has by default. I see 
these lines in there:

# Trap CTRL-ALT-DELETE
ca::ctrlaltdel:/sbin/shutdown -t3 -r now

Looks like what you're talking about. But I tried it before (out of habit), 
and it did nothing. Just tried it again, and all it did was log me out.


 In case of a hanging application (in KDE) you
 can hit Ctrl + Alt + Esc then move your cursor (now a skull) to
 the offending application and left-click. That's a kill.

Sweet.

 In case of a hanging GUI (X-server), you can hit Ctrl + Alt +
 Backspace. This kills X and gets you to a new login.

 In case of nothing (exept the keyboard) working, and right before
 you consider a hard reset, you have to play a little piano-sonata :

 Alt + SysRq + r + s + e + i + u + b

 (Mnemotech : Raising Skinny Elephants Is Utterly Boring)

 This sequence performs a clean reboot, including sync.

Interesting. I thought I saw the alt+sysrq somewhere. It didn't do 
anything for me. I didn't know the rest of the incantation.

 HTH
 Kaj Haulrich.

Problem is I won't remember these the rare times I need them (I'm kind of like 
Dory in Finding Nemo). I could just hold down ctrl and alt and hammer 
randomly on the keyboard :^). I suppose I should write it down.

Anyway, thanks for the tips.

-- 
Ron Hunter-Duvar

ronhd at users dot sourceforge dot net


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com