LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-12-2012, 10:09 AM   #1
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Xfce vs. disk partitions vs. CD-Rom


Hi,

I'm running Slackware 13.37 with Robby Workman's Xfce 4.8, and I'm encountering a curious problem. Two curious problems in fact.

1) I have a multiboot PC with four (Slackware) Linux systems on it. It's partitioned from sda1 to sda10, every system has its own root and /boot partition, and they all share a common swap partition. (If you are wondering what this is good for: this is my dedicated build box.) Now what's very curious is that Thunar, Xfce's file manager, displays all these partitions in the side pane as well as on the desktop. See attached screenshot.

2) What's even more curious: when I edit /etc/fstab and define the static mount point /mnt/cdrom for /dev/cdrom (with the relevant options), I reboot the PC, launch Xfce, insert a CD-Rom or a DVD and... nothing happens. the CD-Rom or the DVD does not appear in Thunar's side pane.

Now is there any way I can switch these two behaviors to something more usable, e. g. show the CD-Rom, but not the whole load of disk partitions?
Attached Thumbnails
Click image for larger version

Name:	disks.jpg
Views:	31
Size:	110.8 KB
ID:	10666  

Last edited by kikinovak; 09-12-2012 at 10:10 AM.
 
Old 09-12-2012, 10:41 AM   #2
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Original Poster
Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
OK, after some more googling and experimenting around, I found the answer to the first of the two problems. I created the file /etc/udev/rules.d/hide-partitions.rules and edited it like this:

Code:
KERNEL=="sda5",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sda6",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sda7",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sda8",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sda9",ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sda10",ENV{UDISKS_PRESENTATION_HIDE}="1"
Rebooted and... worked like a charm. Thunar now only displays the actual "system partition" /dev/sda3, and that's it.
 
  


Reply

Tags
disk, mount, 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
Mint 9 xfce CD-ROM Errors HaroldWho Linux Mint 3 01-20-2011 01:38 PM
how to create CD-ROM boot disk parkarnoor Linux - Newbie 5 01-10-2011 09:48 AM
No partitions mounted in /media when using Xfce terry-duell Fedora 5 04-02-2008 12:22 AM
removed disk partitions - disk is now too small jordanthompson Linux - Software 18 12-09-2004 03:07 PM
how to add cd-rom, dvd-rom, floppy, hard disk icons on gnome desktop? spyghost Linux - Software 6 09-21-2003 05:44 PM

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

All times are GMT -5. The time now is 04:31 PM.

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