Bug 6140 - 2: User is unable to mount usb stick in runlevel 3
Summary: 2: User is unable to mount usb stick in runlevel 3
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 2
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-29 01:43 CEST by Bit Twister
Modified: 2013-04-03 04:32 CEST (History)
2 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Bit Twister 2012-05-29 01:43:31 CEST
Description of problem:

User is unable to mount usb memory device/stick/drive

Version-Release number of selected component (if applicable):


How reproducible: Always


Steps to Reproduce:
1. click up 2  terminals
2. sudo root on both terminals
3. on one terminal run
   tail -f /var/log/messages
4. insert usb stick (assuming device shows up on sdg, see log/messages terminal)
5. on the other root terminal, erase the device by running
    dd bs=1M if=/dev/zero of=/dev/sdg count=1
6. /usr/sbin/diskdrake
   click the sdg tab and toggel to Expert and
   format/label sdg as extent 4 with no test for bad blocks
   click Done
7. remove usb memory device/stick.
8. insert usb stick
9. click Open with File Manager icon in the Notifications pop up and
    note the message you can not mount (your label found here)
10. Verify system sees new device, in a root terminal
     blkid | grep sdg

My setup in runlevel 3.
$  cat /etc/sysconfig/desktop
DISPLAYMANAGER=gdm
DESKTOP=KDE4
Comment 1 Bit Twister 2012-05-29 01:48:51 CEST
Forgot to show groups I belong to:
$ id
uid=1500(bittwister) gid=1500(bittwister) groups=1500(bittwister),6(disk),7(lp),19(floppy),20(games),22(cdrom),43(usb),
80(cdwriter),81(audio),82(video),83(dialout),413(saned),482(ctools),483(ntools),
1599(vboxusers)
Comment 2 Magnus Rasche 2012-05-29 21:43:48 CEST
Cannot confirm.
My full MGA2 KDE (based on a Live-CD) mounts my stick.

Do you use a vbox install?

CC: (none) => magnus.mud

Comment 3 Bit Twister 2012-05-29 22:13:20 CEST
(In reply to comment #2)
> Cannot confirm.
> My full MGA2 KDE (based on a Live-CD) mounts my stick.

Well, first difference would be you are at runlevel 5 and I am in runlevel 3.

Mine is a Mageia-2-x86_64-DVD.iso clean install. All package groups except LSB and Other graphical desktop managers were selected.

> Do you use a vbox install?

Hmmmm, I have installed VirtualBox-4.1.16-78094-Linux_amd64.run and Extension Pack from https://www.virtualbox.org/.

I am running on the host. Not in a VB guest.

If you look over on http://news.gmane.org/gmane.linux.mageia.user
you will find the thread "mounting removeable media on Mageia 2 Gnome 2?"
indicating other people which appears to be the same problem.
Comment 4 Magnus Rasche 2012-05-29 22:18:31 CEST
Pardon, I didn't saw runlevel 3
Comment 5 Bit Twister 2012-05-29 22:25:59 CEST
(In reply to comment #4)
> Pardon, I didn't saw runlevel 3

That is ok, I went ahead and set up runlevel 5 and it works.

That indicates a runlevel 3 specific problem which may not be related to a desktop manager.
Comment 6 Peter D 2012-05-30 03:44:34 CEST
Confirmed for an i586 system with Gnome 3 in fallback mode.  

runlevel 3, login as a user, startx, plug in USB stick -> not allowed.  

runlevel 5, login as a user, plug in a USB stick -> opens a window.  

Can I make it mount at /media/8G instead of /run/media/psd/8G ?

CC: (none) => 0123peter

Comment 7 Bit Twister 2012-05-30 06:40:09 CEST
(In reply to comment #6)

> Can I make it mount at /media/8G instead of /run/media/psd/8G ?

Guessing that must be a Gnome thing. In runlevel 5 kde, it mounts 
$ mount | grep usb | grep sdg
/dev/sdg1 on /media/usb type ext4 (rw,nosuid,nodev,relatime,user_xattr,barrier=1,data=ordered)

I know I can su -l root, mkdir /usb, mount -t auto LABEL=usb /usb
or mount -t auto /dev/sdg1 /usb

LABEL= works since I labeled it usb while formatting it.
$ blkid | grep sdg
/dev/sdg1: LABEL="usb" UUID="6c37f057-c41a-4414-96c4-d0428b1b" TYPE="ext4"

Hardware: x86_64 => All
Summary: 2: User is unable to mount usb memory device/stick/drive => 2: User is unable to mount usb stick in runlevel 3

Comment 8 Bit Twister 2013-04-03 04:32:17 CEST
clean install  Mageia-3-beta4-x86_64-DVD.iso
 does not have the problem.

That assumes you have enabled automatic mounting of removable media in
systemsettings->Removable Devices->
Configure automatic handling of removable storage media

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.