LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-20-2013, 11:52 AM   #1
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 351

Rep: Reputation: 30
Question xfce USB automounting problem


Hi

Have weird behavior of XFCE
Habe 2 USB sticks:
A: Transcend JetFlash 4Gb udev creates /dev/sdb & /dev/sdb1 nodes
B: Transcend JetFlash 8Gb udev creates /dev/sdb nodes

Both formated as FAT32, work good.
Starting Xfce
Plugin USB A - xfce mounts it into /run/media/<username>/<disklabel>
Plugin USB B - no reaction

What to do? How to fix it?

UPD:
it is very weird. I did umount -a in root terminal and now thunar can see all disk partitions including NTFS partitions(which previously was atuomounted during system startup since they registered in /etc/fstab).

EDIT: Terminology fix(my bad): here and below, when I said "mount" or "automount" I meant not mounting itself(if it cannot be deducted from text) but creation proper label on navigation panel in Thunar, so one can click on that entry and it automatically will be mounted as FS. Sorry for misleading.

Last edited by FeyFre; 01-25-2013 at 03:48 AM. Reason: terminology fix
 
Old 01-20-2013, 12:53 PM   #2
bobzilla
Member
 
Registered: Nov 2005
Location: Serbia
Distribution: Slackware
Posts: 231

Rep: Reputation: Disabled
Do you use a desktop manager (boot in init level 4)? If not, did you, by any chance mount USB B before starting X?

Quote:
it is very weird. I did umount -a in root terminal and now thunar can see all disk partitions including NTFS partitions(which previously was atuomounted during system startup since they registered in /etc/fstab).
Thunar-volman won't manage any partitions already mounted during the boot (/etc/fstab). It might be (not really sure) also the case with any media mounted before starting X (if you boot in init level 3).

Last edited by bobzilla; 01-20-2013 at 12:54 PM. Reason: Accidentally used code instead of quote.
 
Old 01-20-2013, 01:38 PM   #3
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 351

Original Poster
Rep: Reputation: 30
I boot into 3-runlevel only.
Then I do startx - xfce starts
Then I plug USB A - thunar show its label, and I use it immediately.
Unplug USB A, plug USB B - thunar does not shows its label, I forced to open terminal and do "mount /dev/sdb /media/flash -o rw,iocharset=utf8,sync" manually.
I do not care about media mounted during boot(since it mounted permanently into stale path). I want thunar(or xfce, or whoever responds for it) to detect all my(and foreign) USB Mass Storage Devices. But it seems it understand only HDD-like partioned USBs(i.e likes to have /dev/sdX and /dev/sdX1 rather then /dev/sdX only).
How to cure it?
 
Old 01-20-2013, 03:13 PM   #4
bobzilla
Member
 
Registered: Nov 2005
Location: Serbia
Distribution: Slackware
Posts: 231

Rep: Reputation: Disabled
Sorry, haven't had a similar problem before. I remember seeing it before and think it might be related to udev rules. But I can't help any further without searching LQ and Googling (and you don't need me for that ).

Maybe there's someone with more direct knowledge/experience with this who can help.
 
Old 01-20-2013, 04:54 PM   #5
cfdisk
Member
 
Registered: May 2011
Location: Philadelphia, PA
Distribution: Slackware 13.37
Posts: 89

Rep: Reputation: 16
Just in case, I have solve my problem after editing /etc/fstab

This line was added:

Code:
/dev/sdb1  /mnt/memstick  auto noauto,owner,users 0  0
and

Code:
mkdir /mnt/memstick
 
Old 01-20-2013, 05:12 PM   #6
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 351

Original Poster
Rep: Reputation: 30
@cfdisk, yes, this probably will solve some problems, but not in my case(I think). It is possible to plug a number of USB sticks into PC(up to 6-8) simultaneously. Should I fill my /etc/fstab with 6-8 additional lines? I do not think it is proper solution.
 
Old 01-20-2013, 06:14 PM   #7
cfdisk
Member
 
Registered: May 2011
Location: Philadelphia, PA
Distribution: Slackware 13.37
Posts: 89

Rep: Reputation: 16
Yes, you are right. I just plugged two USB sticks and the second stick gave me an error message.

Wait, what else did I expect? I was mounting two sticks on the same /mnt/memstick

You can create

/mnt/memstick1
/mnt/memstick2

and so on.


Now it's your turn to try!

Last edited by cfdisk; 01-20-2013 at 06:23 PM.
 
Old 01-23-2013, 12:40 AM   #8
bobzilla
Member
 
Registered: Nov 2005
Location: Serbia
Distribution: Slackware
Posts: 231

Rep: Reputation: Disabled
Well, I see you haven't got any answer and I stumbled at something that might help. But first some diag.

Start the udisksctl with "monitor" option:
Code:
udisksctl monitor
Plugin the USB B stick and copy all messages dumped by udisksctl.

Last edited by bobzilla; 01-23-2013 at 12:42 AM. Reason: clarification
 
Old 01-24-2013, 04:52 PM   #9
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 351

Original Poster
Rep: Reputation: 30
Here attached log you asked:

I have played some time with different removable devices and got next results:
0. First of all, I have entry in my /etc/fstab: /dev/sdb /mnt/flash auto user,fmask=111,noauto 0 0
1. I tried to insert SD card(the same partition configuration as USB B has - only /dev/sdb devnode created by udev) into cardreader (built-in into notebook card-reader) - thunar still does not recognizes storage.
2. Than I inserted USB A - thunar recognized it as I said earlier, and THEN I inserted USB B(it became /dev/sdc), It is miracle! Thunar recognized it. Unpluged it(B), and inserted SD card(again /dev/sdc) - miracle again!
3. THEN I hashed out /dev/sdb. Another miracle! Each and every USB stick and SD card now visible by thunar, no mater of kind of partitioning!

My conclusion:
USB A was visible by thunar(or whoever responds for that) only because it was accidentally formated in flopp-like manner(i.e. no partition table, FS located directly on /dev/sdb device) and because it /etc/fstab there was entry for /dev/sdb.
Other storages was revoked by thunar because entry /dev/sdb blocked hdd-like storage-device partitioning.

So actual question sound a bit differently now: where to setup thunar(or whoever responds for disk automounting features) in order to force it to ignore entries in /etc/fstab? (I shall not remove any entries from /etc/fstab)
Attached Files
File Type: txt udisksctl-monitor-B.txt (2.6 KB, 16 views)
 
Old 01-24-2013, 08:37 PM   #10
bobzilla
Member
 
Registered: Nov 2005
Location: Serbia
Distribution: Slackware
Posts: 231

Rep: Reputation: Disabled
Quote:
Originally Posted by FeyFre View Post
So actual question sound a bit differently now: where to setup thunar(or whoever responds for disk automounting features) in order to force it to ignore entries in /etc/fstab? (I shall not remove any entries from /etc/fstab)
I don't think that's possible. At least not in that fashion. Why would you need that entry anyway? What is it supposed to achieve?
 
Old 01-24-2013, 11:55 PM   #11
Mark Pettit
Member
 
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 15.0
Posts: 619

Rep: Reputation: 299Reputation: 299Reputation: 299
This is quite interesting. I too have some flash disks that automount, and some that don't. Even more interesting, I have a 500 GB hard disk in a USB case that never automounts at work, but sometimes (say 40-50% of time), when my laptop is at home , it does automount. I run XFCE under Slack14. To be honest, I haven't worried too much about this - it's no great effort to right click on the icon and choose 'mount'.
 
Old 01-25-2013, 03:36 AM   #12
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 351

Original Poster
Rep: Reputation: 30
Quote:
Why would you need that entry anyway?
Because most of time I spend in tty1-tty4 without X started, and I want to be able to use simple "mount /dev/sdb" instead of "mount /dev/sdb /mnt/flash -o rw,fmask=111,..." and so on.
 
Old 01-25-2013, 03:42 AM   #13
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 351

Original Poster
Rep: Reputation: 30
Quote:
To be honest, I haven't worried too much about this - it's no great effort to right click on the icon and choose 'mount'.
Problem is not on automount(this my bad, I called it "automount" instead of "autodetect" or similar) it never automounts for me(and I do not need it really), but creates entry in Thunars navigation panel. Problem is in some cases it does not create that entry in Thunar! I have nothing to right click on.
 
Old 01-26-2013, 12:27 PM   #14
bobzilla
Member
 
Registered: Nov 2005
Location: Serbia
Distribution: Slackware
Posts: 231

Rep: Reputation: Disabled
Quote:
Originally Posted by FeyFre View Post
Because most of time I spend in tty1-tty4 without X started, and I want to be able to use simple "mount /dev/sdb" instead of "mount /dev/sdb /mnt/flash -o rw,fmask=111,..." and so on.
Ok, understood. Maybe you could try something else (instead of fstab entry). Take a peek here:
https://wiki.archlinux.org/index.php...disks_wrappers

Not sure how those play with Thunar, but maybe you'll get something out of it.
 
  


Reply

Tags
mount, usb, xfce



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB Stick and Keyboard problem on Lenny+xfce ibkoxls Linux - Software 0 07-06-2009 05:23 PM
Problem automounting cd and USB wufo Slackware 7 01-16-2009 07:58 PM
Automounting fails on xfce esters Slackware 14 01-03-2009 04:34 PM
automounting usb devices with usbmount works well but i have one problem mechmg93 Debian 9 10-23-2005 07:24 AM
usb automounting wi_slacker Slackware 6 05-05-2004 12:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration