Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: How to hide partitions from the Places sidebar, even if mounted

  1. #1
    Join Date
    Feb 2008
    Beans
    162

    How to hide partitions from the Places sidebar, even if mounted

    Please, please, don't tell me to read the man page or google it. I already did for the past 2-3 days >_<;
    How do I...

    * Prevent the sdb1 + sdb2 ext4 partitions from being shown in Nautilus/Thunar Places sidebar.

    * Prevent the Western Digital SmartWare VirtualCD, sdr1, from being shown in Nautilus/Thunar Places sidebar. It is just a VCD that is part of the firmware of the external (sdb) hard drive. *GAG!*

    I don't care if they are mounted or not, though I prefer if they aren't.
    As long as they don't show up on the Places sidebar AT ALL, I'll be happy. I never use them, but keep mounting them by accident.


    Here's my fstab, can you tell me why it's not doing the above?

    Code:
    # /etc/fstab: static file system information.
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    
    proc                                       /proc              proc    defaults                            0  0  
    # Entry for /dev/sda3 :
    UUID=0371cefa-d0d1-4580-87e1-4ac4f23fd3b0  /                  ext3    errors=remount-ro                   0  1  
    # Entry for /dev/sda1 :
    UUID=2cac15e9-c4ee-44cf-ace9-fcc7333c8b50  /boot              ext3    defaults                            0  2  
    # Entry for /dev/sda4 :
    UUID=38822f83-963c-4c1a-806b-8933cf8d8587  /home              ext3    defaults                            0  2  
    # Entry for /dev/sda2 :
    UUID=f49e33ca-0718-4be4-9980-822ebabe5850  none               swap    sw                                  0  0  
    # I dont want to show these drives in Thunar
    /dev/sdb1                                  /media/sdb1        ignore  defaults,locale=en_US.UTF-8         0  0  
    /dev/sdb2                                  /media/sdb2        ignore  defaults,locale=en_US.UTF-8         0  0  
    /dev/sdb3                                  /media/sdb3        ignore  defaults,locale=en_US.UTF-8         0  0  
    # mount WD_BACKUP at boot
    /dev/sdb4 /media/WD_BACKUP ntfs-3g auto,users,locale=en_US.utf8 0 0
    Last edited by lifestream; January 24th, 2010 at 09:07 PM.

  2. #2
    Join Date
    Mar 2008
    Location
    Las Vegas
    Beans
    1,148

    Re: How to hide partitions from the Places sidebar, even if mounted

    The default action in the fstab file will automatically mount the devices at boot time. I'm sure there is a good fstab tutorial in this forum but I've got this explanation I discovered shortly after discovering linux. Alternatively you could comment out the lines and then explicitly mount when needed.

    Barrie
    Debian Stable
    FluxBox
    Mark Your Thread Solved

  3. #3
    Join Date
    Feb 2008
    Beans
    162

    Re: How to hide partitions from the Places sidebar, even if mounted

    Quote Originally Posted by Barriehie View Post
    The default action in the fstab file will automatically mount the devices at boot time.

    Hmm, the particular partition I'm interested in, is a NTFS-3g one, and I set it to autoboot, yet it won't.
    Code:
    /dev/sdb4 /media/WD_BACKUP ntfs-3g auto,users,locale=en_US.utf8 0 0
    It does mount OK, but I have to do it manually. In other words, like I said, it is NOT mounting at boot.
    (EDIT: Nevermind, it does work. I had posted an old copy-paste)

    Alternatively you could comment out the lines and then explicitly mount when needed.
    Yes, however, the issue is, like I said, even if the partitions aren't mounted, they STILL show up in the Places sidebar. I don't want them to show up, ever, in the Places sidebar.



    O______O !
    Last edited by lifestream; January 24th, 2010 at 09:06 PM.

  4. #4
    Join Date
    Mar 2008
    Location
    Las Vegas
    Beans
    1,148

    Re: How to hide partitions from the Places sidebar, even if mounted

    Quote Originally Posted by lifestream View Post
    Hmm, the particular partition I'm interested in, is a NTFS-3g one, and I set it to autoboot, yet it won't.
    Code:
    /dev/sdb4 /media/WD_BACKUP ntfs-3g auto,users,locale=en_US.utf8 0 0
    It does mount OK, but I have to do it manually. In other words, it is NOT mounting at boot.


    Yes, however, the issue is, like I said, even if the partitions aren't mounted they sadly, still show up in the Places sidebar.



    O______O !
    Try adding an rw somewhere in there where you've got auto,user,rw,<rest of the line>

    Hang on, I've just recently found the file on my machine where that data is stored. It is............ ~/.gtk-bookmarks I think you can delete the lines for the items you don't want to display, or alternatively try to comment them out. Whatever you do I'ld make a copy of the original file first.right off.

    Barrie
    Debian Stable
    FluxBox
    Mark Your Thread Solved

  5. #5
    Join Date
    Feb 2008
    Beans
    162

    Re: How to hide partitions from the Places sidebar, even if mounted

    Quote Originally Posted by Barriehie View Post
    Hang on, I've just recently found the file on my machine where that data is stored. It is............ ~/.gtk-bookmarks I think you can delete the lines for the items you don't want to display, or alternatively try to comment them out. Whatever you do I'ld make a copy of the original file first.right off.
    Barrie, unfortunately, the .gtk-bokmarks does not specify which drives to show. It is just for user-added folder bookmarks.

    The original file is blank, and your file-browser has the bookmarks it had when you first installed Ubuntu.

  6. #6
    Join Date
    Mar 2008
    Location
    Las Vegas
    Beans
    1,148

    Re: How to hide partitions from the Places sidebar, even if mounted

    Debian Stable
    FluxBox
    Mark Your Thread Solved

  7. #7
    Join Date
    Feb 2008
    Beans
    162

    Re: How to hide partitions from the Places sidebar, even if mounted

    Quote Originally Posted by Barriehie View Post

    Yes, I know I can remove the entries I do not want from fstab.
    That just causes them to unmount.
    I know how to unmount.


    My problem is, even if the partition is unmounted, I do not want it on the Places sidebar. Currently, even if it is unmounted, partitions show up on the Places sidebar. I don't want them there at all.

    I've done google search, I've done my homework, that's why I'm asking if anyone has been able to do this.

    The best result I got from my search, was...
    Quote Originally Posted by MoarningSun View Post
    The Windows partitions I wanted to hide were sda1 ans sda2, which initially didn't show in fstab. After I declared entries for the partitions in a specific manner the partitions were gone from the places menu!
    Code:
    # /etc/fstab: static file system information.
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    
    proc /proc proc defaults 0 0
    # Entry for /dev/sda5 :
    UUID=ac83da58-6e80-4602-bffa-9d6b4b30e34f / ext4 errors=remount-ro 0 1
    # Entry for /dev/sda6 :
    UUID=013e3395-57a2-4c4d-92ea-663f02043a14 none swap sw 0
    /dev/sda7 /media/DATA ntfs-3g defaults,locale=en_US.UTF-8 0 0
    in which sda7 is a mounted NTFS partition that I want to use with ubuntu, created it with 'ntfs-config'. I added two entries for ignoring the two partitions sda1 and sda2, with filesystem defined as 'ignore', so the /etc/fstab looked like this:

    Code:
    # /etc/fstab: static file system information.
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    
    proc /proc proc defaults 0 0
    # Entry for /dev/sda5 :
    UUID=ac83da58-6e80-4602-bffa-9d6b4b30e34f / ext4 errors=remount-ro 0 1
    # Entry for /dev/sda6 :
    UUID=013e3395-57a2-4c4d-92ea-663f02043a14 none swap sw 0 0
    /dev/sda1 /mnt/SDA1 ignore defaults,locale=en_US.UTF-8 0 0
    /dev/sda2 /mnt/SDA2 ignore defaults,locale=en_US.UTF-8 0 0
    /dev/sda7 /media/DATA ntfs-3g defaults,locale=en_US.UTF-8 0 0
    I'm not sure if the specified mount point or other options really matter and the directories /mnt/SDA1 and /mnt/SDA2 don't even exist.. but it seems to work this way. I think I did
    Code:
    sudo mount -a
    to update the places menu.

    Please note that this is kind of an 'empirical' solution, not based on real knowledge. I found the ignore option in the fstab manual (type 'man fstab' in terminal).
    ... but that's not working for me either.
    Last edited by lifestream; January 24th, 2010 at 11:01 PM.

  8. #8
    Join Date
    Feb 2008
    Beans
    162

    Re: How to hide partitions from the Places sidebar, even if mounted

    HA!
    For the 4th time, I did what post 2 here says to do:
    http://ubuntuforums.org/showthread.p...79#post8389479
    ...
    And it finally worked! My partitions are hidden! *bangs head*


    So now, there's 1 thing left! The VCD (sdr1) still stays, even though I "ignored" it too:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <deviceinfo version="0.2">
      <device>
        <match key="block.device" string="/dev/sdb1">
          <merge key="info.ignore" type="bool">true</merge>
        </match>
      </device>
      <device>
        <match key="block.device" string="/dev/sdb2">
          <merge key="info.ignore" type="bool">true</merge>
        </match>
      </device>
      <device>
        <match key="block.device" string="/dev/sdb3">
          <merge key="info.ignore" type="bool">true</merge>
        </match>
      </device>
      <device>
        <match key="block.device" string="/dev/sr1">
          <merge key="info.ignore" type="bool">true</merge>
        </match>
      </device>
    </deviceinfo>
    So the original question...
    How do I prevent the Western Digital SmartWare VirtualCD, sdr1, from being shown in Nautilus/Thunar Places sidebar. It is just a VCD that is part of the firmware of the external (sdb) hard drive. *GAG!*
    Last edited by lifestream; January 24th, 2010 at 11:21 PM.

  9. #9
    Join Date
    Jun 2008
    Location
    Ballard
    Beans
    2,399
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: How to hide partitions from the Places sidebar, even if mounted

    You could reformat your external to eliminate that silly partition and remove the entry from fstab. That's how I usually handle USB drives and such anyway. (Be forewarned that sometimes you have to use Windows to remove some dumb-asped bs software the manufacturer has included for your bereavement.)
    "We're all in this together, kid." --H. Tuttle (a.k.a. H. Buttle)
    "Maybe it's a layer 8 problem." --thatguruguy
    A High-Tech Blech!

  10. #10
    Join Date
    Feb 2008
    Beans
    162

    Re: How to hide partitions from the Places sidebar, even if mounted

    Quote Originally Posted by jamesisin View Post
    You could reformat your external to eliminate that silly partition
    Sadly, I can't. WD SmartWare if part of the MyPassport firmware, it isn't a partition. Not a hidden partition, even.
    The firmware takes it upon itself to be annoying and force a virtualCD image to mount, and there's no way to remove it, on Windows, Mac, whatever.

    See, even if I "eject" it, next time I open my file-browser, the VCD is there again!

    and remove the entry from fstab.
    There is no entry, because it's a "virtual" CD; it's not a partition.

    that's how I usually handle USB drives and such anyway.
    Lucky you. I'm steering away from WD USB drives from now on


    Quote Originally Posted by The Dumb People Who Made DumbWare
    "The Virtual CD is the build into the firmware of the drive. There is no option to remove the virtual CD."
    Amen.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •