Mint 12: Hide unwanted devices in Nautilus
Friday, February 10th, 2012 | Linux, Tech-savvy
My laptop consists of quite a few partitions, different OSs and file systems. Nautilus displays everything that will be mounted to /media as a device in the places sidebar. This became an annoyance, because I really don’t need to see my Win7 system partition and my old Mint 10 partitions on a regular basis. I tried the easy way: right-click on an item and say “remove” or something – naaat!
I was looking for an easy solution and came across some pretty old forum posts and workarounds that simply don’t work (any more). Here is how I managed to get rid of the unwanted device entries fairly easily: you simply have to explicitly mount the unwanted volumes and use a folder other than /media – basically /mnt will do. This way you don’t have the unwanted file systems listed in Nautilus directly yet can access them easily by navigating to /mnt/mountpoint.
Step by step:
- open nautilus
- mount all unwanted files systems by selecting them one after another
- open a terminal
- list mounted devices
nick@mintbox ~ $ mount
- look for the entries that resemble the unwanted files systems
- write down the /dev/sdx and type attributes
- create mountpoints for each device in in /mnt
nick@mintbox ~ $ sudo mkdir /mnt/exampleMountPoint1 nick@mintbox ~ $ sudo mkdir /mnt/exampleMountPoint2
- open fstab
nick@mintbox ~ $ sudo gedit /etc/fstab
- add a fstab entry for each device (first is a Win NTFS partition, second a ext4 Linux one)
/dev/sda6 /mnt/exampleMountPoint1 ntfs-3g defaults 0 0 /dev/sda7 /mnt/exampleMountPoint2 ext4 defaults 0 0
That should do the trick.
No comments yet.
Leave a comment
Search
Categories
- (X)HTML/CSS (5)
- Activities (30)
- Gadgets (35)
- Insights (2)
- Java (22)
- Certification (1)
- IDE (10)
- JSP (1)
- Language (16)
- Quirks (9)
- Vocabulary (10)
- Linux (16)
- Misc (58)
- Photography (16)
- Reviews (70)
- Tech-savvy (81)
Tag Cloud
Archives
- May 2013 (4)
- April 2013 (1)
- March 2013 (1)
- February 2013 (1)
- January 2013 (1)
- December 2012 (3)
- November 2012 (1)
- October 2012 (3)
- September 2012 (3)
- July 2012 (1)
- May 2012 (1)
- April 2012 (1)
- February 2012 (7)
- January 2012 (1)
- December 2011 (2)
- November 2011 (4)
- October 2011 (5)
- September 2011 (3)
- August 2011 (3)
- July 2011 (2)
- June 2011 (4)
- May 2011 (1)
- April 2011 (2)
- March 2011 (2)
- February 2011 (2)
- January 2011 (6)
- December 2010 (2)
- November 2010 (5)
- October 2010 (7)
- September 2010 (13)
- August 2010 (6)
- July 2010 (4)
- June 2010 (3)
- May 2010 (3)
- April 2010 (2)
- March 2010 (2)
- February 2010 (1)
- January 2010 (1)
- December 2009 (1)
- November 2009 (2)
- October 2009 (5)
- September 2009 (1)
- August 2009 (3)
- July 2009 (5)
- June 2009 (5)
- May 2009 (6)
- April 2009 (3)
- March 2009 (3)
- February 2009 (2)
- January 2009 (1)
- December 2008 (9)
- November 2008 (15)
- October 2008 (15)
- September 2008 (13)