LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   A question about Ubuntu 7.04 (https://www.linuxquestions.org/questions/linux-desktop-74/a-question-about-ubuntu-7-04-a-562397/)

Xstar 06-17-2007 06:00 AM

A question about Ubuntu 7.04
 
How can I hide the Windows partition icons in the nautilus!Which file shoud I edit?My system is Ubuntu 7.04!
THX!

Simon Bridge 06-17-2007 06:12 AM

Quote:

How can I hide the Windows partition icons in the nautilus!
Excuse me? Nautilus will only display the windows partition if you browsed to it's parent directory. This is normal, and desirable, behavior. Otherwise it wouldn't be much good as a file browser. (You could rt-click the icon, select rename, back-arrow, type a dot, enter. This will turn it into a hidden file.)

The desktop (metacity) may display an icon for mounted filesystems, which may include your windows file system. In which case, you could edit /etc/fstab and add "noauto" to the options section. (...and remove its file from ~/Desktop.)

But I don't actually know what you mean.

Lux Perpetua 06-18-2007 12:40 AM

I would guess Xstar means the desktop icons in the root window. It should be possible to hide the icons and still have the partitions mounted...right?

sagar.1986 06-18-2007 02:06 AM

If the windows partitions are mounted,(which by default happens if there are entries in /etc/fstab), u can see them on ur Desktop. (Like CDROM). If u need to remove them in GNOME, (In KDE it is simple, u need to uncheck show mounted disks on Desktop),
U need to use gconf-editor
sudo gconf-editor
APPS > NAUTILUS > DESKTOP > VOLUMES_VISABLE (check)

Hope this helps.

Xstar 06-18-2007 03:19 AM

Quote:

Originally Posted by Lux Perpetua
I would guess Xstar means the desktop icons in the root window. It should be possible to hide the icons and still have the partitions mounted...right?

Yes,this is my means!But I hope hide icons in nautilus. That icons in nautilus isn't had mount point,but When I click the icons,it will be mounted to /media.This isn't I hoped.

Lux Perpetua 06-18-2007 05:12 PM

So you don't want them mounted at all? They're mounted because they're mentioned in the file /etc/fstab. To prevent them from being mounted, you can comment out the appropriate lines in that file by prepending a '#' character. Example:

Code:

...
/dev/sda1      /media/sda1    ntfs    defaults,nls=utf8,umask=007,gid=46 0      1
...

To comment out:
Code:

...
# /dev/sda1      /media/sda1    ntfs    defaults,nls=utf8,umask=007,gid=46 0      1
...


Xstar 06-18-2007 07:59 PM

Quote:

Originally Posted by Lux Perpetua
So you don't want them mounted at all? They're mounted because they're mentioned in the file /etc/fstab. To prevent them from being mounted, you can comment out the appropriate lines in that file by prepending a '#' character. Example:

Code:

...
/dev/sda1      /media/sda1    ntfs    defaults,nls=utf8,umask=007,gid=46 0      1
...

To comment out:
Code:

...
# /dev/sda1      /media/sda1    ntfs    defaults,nls=utf8,umask=007,gid=46 0      1
...


No,No,No.There isn't the lines in my /etc/fstab!But,if I click the icons in nautilus then it will be auto mounted to /media.

Simon Bridge 06-19-2007 08:47 AM

Quote:

Originally Posted by Xstar
Yes,this is my means!But I hope hide icons in nautilus. That icons in nautilus isn't had mount point,but When I click the icons,it will be mounted to /media.This isn't I hoped.

To got rid of a desktop icon, right-click it, select "delete" or "move to trash", and it is gone.

What are you trying to achieve?

Before clicking on an icon, enter this in terminal:

ls /media

then again after clicking on the icon

... in each case, copy the result to the forum. Thank you.


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