LinuxQuestions.org
Register a domain and help support LQ
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, 11:09 AM   #1
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,946

Rep: Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968
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 Images
File Type: jpg disks.jpg (110.8 KB, 18 views)

Last edited by kikinovak; 09-12-2012 at 11:10 AM.
 
Old 09-12-2012, 11:41 AM   #2
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,946

Original Poster
Rep: Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 03:45 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration