PDA

View Full Version : [SOLVED] partitions at desktop disappear at restart



rebrov
September 4th, 2010, 02:30 AM
when i open partition from the menu like Mp3 or software partition it appear on desktop to make it easier to access it again

i like that however when i restart my pc it disappear again

can't i make all my partitions on desktop and never disappear ??

tom4everitt
September 4th, 2010, 10:31 AM
What I think you want is called auto mounting. Normally when you plug in a mp3 player for instance, Ubuntu will automatically mount it. It will also be mounted when you click on it in the Nautilus menu. Once mounted, it will stay mounted until you unmount it or restart your computer.

To have external devices automatically mount during boot, you can either manually edit the file /etc/fstab which controls the mount settings. (There are lot of guides on how to do that if you google it.) If you don't want to get into that, you can also try a program called pysdm, which is available in the software center.

Here's a blog post related to what you want to do:
http://sathyasays.com/2008/10/08/how-to-automount-hard-drive-partitions-everytime-you-login-in-linux/

rebrov
September 4th, 2010, 02:10 PM
What I think you want is called auto mounting. Normally when you plug in a mp3 player for instance, Ubuntu will automatically mount it. It will also be mounted when you click on it in the Nautilus menu. Once mounted, it will stay mounted until you unmount it or restart your computer.

To have external devices automatically mount during boot, you can either manually edit the file /etc/fstab which controls the mount settings. (There are lot of guides on how to do that if you google it.) If you don't want to get into that, you can also try a program called pysdm, which is available in the software center.

Here's a blog post related to what you want to do:
http://sathyasays.com/2008/10/08/how-to-automount-hard-drive-partitions-everytime-you-login-in-linux/

ooh i got it ..lol i was doin it all the time in backtrack 4 :) but never knew that its the same in ubuntu :) thanks alot buddy for guiding me :)

rebrov
September 4th, 2010, 03:12 PM
i tried it but didn't work

when i press places menu and then choose computer ...

then open the software partition the wallpaper that i've choosen shows up at desktop and the software partition shows up also

but thats all happend once i double click the partition from computer menu

i tried the fstab think but didn't work and it disappear from the computer menu i can't find it there

i think ubuntu using some mounting script when i double click on it to appear on desktop

any idea ?

tom4everitt
September 4th, 2010, 08:09 PM
The thing that decides whether a mounted partition shows up on the desktop is whether it is mounted in /media or not.

For example:

If I mount /dev/sda3 to /mnt, it will not show up on the desktop.
But if I mount /dev/sda3 to /media/some_folder it will show on the desktop.



So what you have to do is to create some folders in /media (some_folder in my case) and then tell fstab to mount them on these folders.

So there is actually no script involved, it's just whether it is mounted in /media or not.

rebrov
September 5th, 2010, 02:38 AM
The thing that decides whether a mounted partition shows up on the desktop is whether it is mounted in /media or not.

For example:

If I mount /dev/sda3 to /mnt, it will not show up on the desktop.
But if I mount /dev/sda3 to /media/some_folder it will show on the desktop.



So what you have to do is to create some folders in /media (some_folder in my case) and then tell fstab to mount them on these folders.

So there is actually no script involved, it's just whether it is mounted in /media or not.


ya i forgot to reply i tried that and it worked :) thanks

just put at the fstab this commands

/dev/sda3 /media/Software ntfs-3g

and create directory with the name

mkdir /media/Software

and thats it :)

SOLVED

tom4everitt
September 5th, 2010, 07:56 AM
Excellent