* [gentoo-user] Changes in the way USB devices are mounted
@ 2008-07-22 18:03 Mick
2008-07-22 18:13 ` [gentoo-user] " Nikos Chantziaras
` (2 more replies)
0 siblings, 3 replies; 13+ messages in thread
From: Mick @ 2008-07-22 18:03 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2296 bytes --]
Hi All,
I suspect that something changed recently on the way that USB devices are
mounted. I noticed that mounting a USB flash drive has stopped working as
follows:
==================================
$ dmesg
[snip...]
usb 2-1: new full speed USB device using uhci_hcd and address 2
usb 2-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
usb 2-1: New USB device found, idVendor=1516, idProduct=8628
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-1: Product: Gizmo! overdrive1492632974
usb 2-1: Manufacturer: Crucial
usb 2-1: SerialNumber: 1492632974
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
scsi 0:0:0:0: Direct-Access Crucial Gizmo! overdrive 1.00 PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 1997312 512-byte hardware sectors (1023 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] 1997312 512-byte hardware sectors (1023 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: unknown partition table
sd 0:0:0:0: [sda] Attached SCSI removable disk
sd 0:0:0:0: Attached scsi generic sg0 type 0
usb-storage: device scan complete
$ pmount /dev/sda
Error: device /dev/sda is not removable
==================================
However, clicking on the device in Konqueror under media:/ mounts it happily
under /media/disk. Previously it would mount it under /media/sda and the
pmount command would not error out as shown above.
==================================
$ mount
[snip...]
/dev/sda on /media/disk type vfat
(rw,nosuid,nodev,noatime,flush,uid=1000,utf8,shortname=lower)
==================================
I also noticed that "shortname=lower" is set as the default, which is annoying
because the file/folder names are forced to display in lower case.
I am using dbus and hald with a Fluxbox WM so the default KDE behaviour with
the automounting pop up dialog does not work here (unless I have launched the
full KDE DE).
Any ideas what has caused these changes? Are they reversible/configurable?
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* [gentoo-user] Re: Changes in the way USB devices are mounted
2008-07-22 18:03 [gentoo-user] Changes in the way USB devices are mounted Mick
@ 2008-07-22 18:13 ` Nikos Chantziaras
2008-07-22 19:04 ` Mick
2008-07-22 21:07 ` [gentoo-user] " Sebastian Günther
2008-08-10 16:41 ` Robert Cernansky
2 siblings, 1 reply; 13+ messages in thread
From: Nikos Chantziaras @ 2008-07-22 18:13 UTC (permalink / raw
To: gentoo-user
Mick wrote:
> [...]
> I am using dbus and hald with a Fluxbox WM so the default KDE behaviour with
> the automounting pop up dialog does not work here (unless I have launched the
> full KDE DE).
>
> Any ideas what has caused these changes? Are they reversible/configurable?
The DE is responsible for the mount options. Are you sure Fluxbox
doesn't provide a config tool to set up the mount parameters of hot-plug
USB devices?
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Re: Changes in the way USB devices are mounted
2008-07-22 18:13 ` [gentoo-user] " Nikos Chantziaras
@ 2008-07-22 19:04 ` Mick
0 siblings, 0 replies; 13+ messages in thread
From: Mick @ 2008-07-22 19:04 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 663 bytes --]
On Tuesday 22 July 2008, Nikos Chantziaras wrote:
> Mick wrote:
> > [...]
> > I am using dbus and hald with a Fluxbox WM so the default KDE behaviour
> > with the automounting pop up dialog does not work here (unless I have
> > launched the full KDE DE).
> >
> > Any ideas what has caused these changes? Are they
> > reversible/configurable?
>
> The DE is responsible for the mount options. Are you sure Fluxbox
> doesn't provide a config tool to set up the mount parameters of hot-plug
> USB devices?
Not from what I know (which ain't much . . .)
I have always had something like pmount /dev/sda in my FB menu script.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Changes in the way USB devices are mounted
2008-07-22 18:03 [gentoo-user] Changes in the way USB devices are mounted Mick
2008-07-22 18:13 ` [gentoo-user] " Nikos Chantziaras
@ 2008-07-22 21:07 ` Sebastian Günther
2008-07-22 22:22 ` Mick
2008-08-10 16:41 ` Robert Cernansky
2 siblings, 1 reply; 13+ messages in thread
From: Sebastian Günther @ 2008-07-22 21:07 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1618 bytes --]
* Mick (michaelkintzios@gmail.com) [22.07.08 20:08]:
> Hi All,
>
> I suspect that something changed recently on the way that USB devices are
> mounted. I noticed that mounting a USB flash drive has stopped working as
> follows:
No, I think pmount behavior changed:
it now honors entries in the fstab.
> $ pmount /dev/sda
> Error: device /dev/sda is not removable
> ==================================
>
Normally you should mount by mountpoint not device node.
> However, clicking on the device in Konqueror under media:/ mounts it happily
> under /media/disk. Previously it would mount it under /media/sda and the
> pmount command would not error out as shown above.
> ==================================
I think, there is an apropiate entry in the fstab, so pmount has not to
create an new mountpoint.
> $ mount
> [snip...]
> /dev/sda on /media/disk type vfat
> (rw,nosuid,nodev,noatime,flush,uid=1000,utf8,shortname=lower)
> ==================================
>
> I also noticed that "shortname=lower" is set as the default, which is annoying
> because the file/folder names are forced to display in lower case.
>
OK what's in /etc/fstab?
> I am using dbus and hald with a Fluxbox WM so the default KDE behaviour with
> the automounting pop up dialog does not work here (unless I have launched the
> full KDE DE).
>
Then you should think about ivman if you want automounter support. And
Fluxbox rocks :-)
HTH
Sebastian
--
" Religion ist das Opium des Volkes. " Karl Marx
SEB@STI@N GÜNTHER mailto:samson@guenther-roetgen.de
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Changes in the way USB devices are mounted
2008-07-22 21:07 ` [gentoo-user] " Sebastian Günther
@ 2008-07-22 22:22 ` Mick
2008-07-22 22:41 ` [gentoo-user] " Nikos Chantziaras
2008-07-23 0:52 ` [gentoo-user] " Neil Bothwick
0 siblings, 2 replies; 13+ messages in thread
From: Mick @ 2008-07-22 22:22 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2278 bytes --]
On Tuesday 22 July 2008, Sebastian Günther wrote:
> * Mick (michaelkintzios@gmail.com) [22.07.08 20:08]:
> > Hi All,
> >
> > I suspect that something changed recently on the way that USB devices are
> > mounted. I noticed that mounting a USB flash drive has stopped working
> > as follows:
>
> No, I think pmount behavior changed:
>
> it now honors entries in the fstab.
I do not have entries in my fstab of USB devices - dbus daemon and hald are
looking for removable devices by scanning the MoBo's buses (as I understand
it).
> > $ pmount /dev/sda
> > Error: device /dev/sda is not removable
> > ==================================
>
> Normally you should mount by mountpoint not device node.
Well, pmount would normally create a corresponding
mountpoint /media/<device_name>, if called upon as:
$ pmount /dev/<device_name>
> > However, clicking on the device in Konqueror under media:/ mounts it
> > happily under /media/disk. Previously it would mount it under /media/sda
> > and the pmount command would not error out as shown above.
> > ==================================
>
> I think, there is an apropiate entry in the fstab, so pmount has not to
> create an new mountpoint.
No, there's no /dev/sda entry in my fstab:
==================================
$ mount /dev/sda
mount: can't find /dev/sda in /etc/fstab or /etc/mtab
==================================
> > $ mount
> > [snip...]
> > /dev/sda on /media/disk type vfat
> > (rw,nosuid,nodev,noatime,flush,uid=1000,utf8,shortname=lower)
> > ==================================
> >
> > I also noticed that "shortname=lower" is set as the default, which is
> > annoying because the file/folder names are forced to display in lower
> > case.
>
> OK what's in /etc/fstab?
Nothing.
> > I am using dbus and hald with a Fluxbox WM so the default KDE behaviour
> > with the automounting pop up dialog does not work here (unless I have
> > launched the full KDE DE).
>
> Then you should think about ivman if you want automounter support. And
> Fluxbox rocks :-)
Yes, Fluxbox flies even on a PIII, ;-)
I am not bothered about automounting and probably would get on my nerves. I
prefer how pmount used to work until recently.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* [gentoo-user] Re: Changes in the way USB devices are mounted
2008-07-22 22:22 ` Mick
@ 2008-07-22 22:41 ` Nikos Chantziaras
2008-07-23 0:52 ` [gentoo-user] " Neil Bothwick
1 sibling, 0 replies; 13+ messages in thread
From: Nikos Chantziaras @ 2008-07-22 22:41 UTC (permalink / raw
To: gentoo-user
Mick wrote:
> I am not bothered about automounting and probably would get on my nerves. I
> prefer how pmount used to work until recently.
Ask around the Fluxbox mailing lists/forums how to tweak auto-mounting;
maybe it just lacks a GUI for those options and you'll have to tweak
some *.rc file. For example, in KDE I've set it up so the USB drive
does *not* get auto-mounted at all if I don't open it in a filemanager
or right-click its icon on the desktop and selecting "Mount". It's the
same as pmount, except with a mouse.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Changes in the way USB devices are mounted
2008-07-22 22:22 ` Mick
2008-07-22 22:41 ` [gentoo-user] " Nikos Chantziaras
@ 2008-07-23 0:52 ` Neil Bothwick
2008-07-23 7:40 ` Mick
1 sibling, 1 reply; 13+ messages in thread
From: Neil Bothwick @ 2008-07-23 0:52 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 473 bytes --]
On Tue, 22 Jul 2008 23:22:49 +0100, Mick wrote:
> I am not bothered about automounting and probably would get on my
> nerves. I prefer how pmount used to work until recently.
pmount thinks your drive is not removable, so refuses to allow mounting
for security reasons. The fix is to add it to /etc/pmount.allow.
--
Neil Bothwick
Q: Why do PCs - even modern ones - have reset buttons on the front?
A: Because they come with Microsoft operating systems.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Changes in the way USB devices are mounted
2008-07-23 0:52 ` [gentoo-user] " Neil Bothwick
@ 2008-07-23 7:40 ` Mick
2008-07-23 20:05 ` Neil Bothwick
0 siblings, 1 reply; 13+ messages in thread
From: Mick @ 2008-07-23 7:40 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 562 bytes --]
On Wednesday 23 July 2008, Neil Bothwick wrote:
> On Tue, 22 Jul 2008 23:22:49 +0100, Mick wrote:
> > I am not bothered about automounting and probably would get on my
> > nerves. I prefer how pmount used to work until recently.
>
> pmount thinks your drive is not removable, so refuses to allow mounting
> for security reasons. The fix is to add it to /etc/pmount.allow.
Thanks. Is this a new feature? Unless my memory fails me I never had to
edit /etc/pmount.allow previously to be able to pmount/pumount this same
device.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Changes in the way USB devices are mounted
2008-07-23 7:40 ` Mick
@ 2008-07-23 20:05 ` Neil Bothwick
2008-07-23 20:52 ` Mick
0 siblings, 1 reply; 13+ messages in thread
From: Neil Bothwick @ 2008-07-23 20:05 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 570 bytes --]
On Wed, 23 Jul 2008 08:40:37 +0100, Mick wrote:
> > pmount thinks your drive is not removable, so refuses to allow
> > mounting for security reasons. The fix is to add it
> > to /etc/pmount.allow.
>
> Thanks. Is this a new feature? Unless my memory fails me I never had
> to edit /etc/pmount.allow previously to be able to pmount/pumount this
> same device.
It's been around for ages. This is more likely a HAL change that now
causes this device to be considered non-removable.
--
Neil Bothwick
"Bother," said Pooh, when his spliff went out.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Changes in the way USB devices are mounted
2008-07-23 20:05 ` Neil Bothwick
@ 2008-07-23 20:52 ` Mick
2008-07-23 22:27 ` Neil Bothwick
0 siblings, 1 reply; 13+ messages in thread
From: Mick @ 2008-07-23 20:52 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1034 bytes --]
On Wednesday 23 July 2008, Neil Bothwick wrote:
> On Wed, 23 Jul 2008 08:40:37 +0100, Mick wrote:
> > > pmount thinks your drive is not removable, so refuses to allow
> > > mounting for security reasons. The fix is to add it
> > > to /etc/pmount.allow.
> >
> > Thanks. Is this a new feature? Unless my memory fails me I never had
> > to edit /etc/pmount.allow previously to be able to pmount/pumount this
> > same device.
>
> It's been around for ages. This is more likely a HAL change that now
> causes this device to be considered non-removable.
I haven't updated hal for some time now. But . . . not sure how to explain
this - genlop shows that the last time I updated hal was:
Tue Nov 13 20:43:45 2007 >>> sys-apps/hal-0.5.9.1-r3
However, eix -l has a different idea:
Installed versions: 0.5.9.1-r3(06:39:10 04/15/08)(acpi crypt kernel_linux
pcmcia -debug -dell -disk-partition -doc -kernel_FreeBSD -selinux)
Will it be easier if I also blame kernel 2.6.25-r6 instead? :p
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Changes in the way USB devices are mounted
2008-07-23 20:52 ` Mick
@ 2008-07-23 22:27 ` Neil Bothwick
2008-07-24 6:25 ` Mick
0 siblings, 1 reply; 13+ messages in thread
From: Neil Bothwick @ 2008-07-23 22:27 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 644 bytes --]
On Wed, 23 Jul 2008 21:52:01 +0100, Mick wrote:
> I haven't updated hal for some time now.
What about hal-info?
> But . . . not sure how to
> explain this - genlop shows that the last time I updated hal was:
>
> Tue Nov 13 20:43:45 2007 >>> sys-apps/hal-0.5.9.1-r3
>
> However, eix -l has a different idea:
>
> Installed versions: 0.5.9.1-r3(06:39:10 04/15/08)(acpi crypt
> kernel_linux pcmcia -debug -dell -disk-partition -doc -kernel_FreeBSD
> -selinux)
Curious.
> Will it be easier if I also blame kernel 2.6.25-r6 instead? :p
:-|
--
Neil Bothwick
Please rotate your phone 90 degrees and try again.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Changes in the way USB devices are mounted
2008-07-23 22:27 ` Neil Bothwick
@ 2008-07-24 6:25 ` Mick
0 siblings, 0 replies; 13+ messages in thread
From: Mick @ 2008-07-24 6:25 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 343 bytes --]
On Wednesday 23 July 2008, Neil Bothwick wrote:
> On Wed, 23 Jul 2008 21:52:01 +0100, Mick wrote:
> > I haven't updated hal for some time now.
>
> What about hal-info?
Not since 2007 . . . I will be updating my kernel as 2.6.5-gentoo-r7 just came
out and see if this makes any odds (doubt it, but just in case).
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] Changes in the way USB devices are mounted
2008-07-22 18:03 [gentoo-user] Changes in the way USB devices are mounted Mick
2008-07-22 18:13 ` [gentoo-user] " Nikos Chantziaras
2008-07-22 21:07 ` [gentoo-user] " Sebastian Günther
@ 2008-08-10 16:41 ` Robert Cernansky
2 siblings, 0 replies; 13+ messages in thread
From: Robert Cernansky @ 2008-08-10 16:41 UTC (permalink / raw
To: gentoo-user
On Tue, 22 Jul 2008 19:03:34 +0100 Mick <michaelkintzios@gmail.com> wrote:
> I suspect that something changed recently on the way that USB devices are
> mounted. I noticed that mounting a USB flash drive has stopped working as
> follows:
[snip]
> $ pmount /dev/sda
> Error: device /dev/sda is not removable
Same problem here after upgrade to 2.6.25-r7. It seems that there is
a bug in sysfsutils: http://bugs.gentoo.org/show_bug.cgi?id=220347.
Robert
--
Robert Cernansky
E-mail: hslists2@zoznam.sk
Jabber: hs@jabber.sk
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2008-08-10 16:41 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-22 18:03 [gentoo-user] Changes in the way USB devices are mounted Mick
2008-07-22 18:13 ` [gentoo-user] " Nikos Chantziaras
2008-07-22 19:04 ` Mick
2008-07-22 21:07 ` [gentoo-user] " Sebastian Günther
2008-07-22 22:22 ` Mick
2008-07-22 22:41 ` [gentoo-user] " Nikos Chantziaras
2008-07-23 0:52 ` [gentoo-user] " Neil Bothwick
2008-07-23 7:40 ` Mick
2008-07-23 20:05 ` Neil Bothwick
2008-07-23 20:52 ` Mick
2008-07-23 22:27 ` Neil Bothwick
2008-07-24 6:25 ` Mick
2008-08-10 16:41 ` Robert Cernansky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox