DIGIT-ARC read-only archive · snapshot: July 23, 2026

Add Drive Shortcuts on Desktop in Ubuntu

22 posts · originally from https://geek.digit.in/community/threads/add-drive-shortcuts-on-desktop-in-ubuntu.61433/

Akshay
Akshay Original post #1
Jun 26, 2007 at 10:21 PM
I dont c icons of windows partition (c:\, d:\, e:\, f:\) on my Ubuntu desktop unless I open dem once thru Places-Computer. How do I permanently make my drive icons to appear on my Ubuntu desktop?

My df -h =

Filesystem Size Used Avail Use% Mounted on
/dev/sda7 4.4G 2.2G 2.0G 53% /
varrun 375M 228K 375M 1% /var/run
varlock 375M 4.0K 375M 1% /var/lock
procbususb 375M 120K 375M 1% /proc/bus/usb
udev 375M 120K 375M 1% /dev
devshm 375M 0 375M 0% /dev/shm
lrm 375M 33M 342M 9% /lib/modules/2.6.20-15-generic/volatile
/dev/scd0 676M 676M 0 100% /media/cdrom0
/dev/sda3 8.6G 5.1G 3.6G 59% /media/LINUX
/dev/sda6 4.6G 18M 4.6G 1% /media/MISC
/dev/sda1 9.8G 7.5G 2.4G 77% /media/OS
/dev/sda5 5.1G 1.7G 3.4G 34% /media/PROGRAMS
QwertyManiac
Jun 26, 2007 at 11:23 PM
Lets do this the geeky way :D

Code:
cd ~/Desktop
ln -s /media/OS C
ln -s /media/LINUX D
ln -s /media/PROGRAMS E
ln -s /media/MISC F
Paste this in your terminal and you must have 4 Links waiting for you on the Desktop
amitava82
Jun 27, 2007 at 1:21 PM
I have easier way. :grin:
go to applications > system tools > configuration editor
navigate through Apps > Nautilus > Desktop
check "volumes_visible"
Done
rakeshishere
Jun 27, 2007 at 1:32 PM
Too many Geeks around here :D :)
RCuber
RCuber #5
Jun 27, 2007 at 1:39 PM
^^^ thats why Digit is so famous :D
QwertyManiac
Jun 27, 2007 at 2:08 PM
amitava82 said:
I have easier way. :grin:
go to applications > system tools > configuration editor
navigate through Apps > Nautilus > Desktop
check "volumes_visible"
Done

Nice way, can be accessed via the terminal by:
Code:
gconf-editor

But that option's generally turned on by default for all, wonder how he wasn't getting the icons .. :confused:
Akshay
Akshay #7
Jun 27, 2007 at 5:21 PM
@amitava

I have easier way.
go to applications > system tools > configuration editor
navigate through Apps > Nautilus > Desktop
check "volumes_visible"
Done

I dont hav dat option - applications > system tools > configuration editor

@qwerty

gconf-editor
returned dis -

** (yelp:6196): WARNING **: AT_SPI_REGISTRY was not started at session startup.

** (yelp:6196): WARNING **: IOR not set.

** (yelp:6196): WARNING **: Could not locate registry

On trying again wit sudo gconf-editor, Configuration Editor opened & I navigated to -

/desktop/gnome/volume_manager. The autodrive option was already selected but my drives r not displayed unless I access dem once thru Places.

SCREENSHOT

*img222.imageshack.us/img222/6049/screenshotconfigurationnx8.png

@qwerty

cd ~/Desktop
ln -s /media/OS C
ln -s /media/LINUX D
ln -s /media/PROGRAMS E
ln -s /media/MISC F

returns -

akshay@AAG:~$ sudo ln -s /media/LINUX D
Password:
ln: creating symbolic link `D/LINUX' to `/media/LINUX': Operation not permitted
akshay@AAG:~$ sudo ln -s /media/OS C
ln: creating symbolic link `C' to `/media/OS': File exists
akshay@AAG:~$ sudo ln -s /media/MISC F
ln: creating symbolic link `F' to `/media/MISC': File exists
akshay@AAG:~$ sudo ln -s /media/PROGRAMS E
ln: creating symbolic link `E' to `/media/PROGRAMS': File exists

Rite now my desktop has only LINUX link.
cynosure
Jun 27, 2007 at 6:17 PM
cd ~/Desktop
ln -s /dev/sda3 C
ln -s /dev/sda6 D
ln -s /dev/sda1 E
ln -s /dev/sda5 F

This should do the job.
:D
anantkhaitan
Jun 27, 2007 at 9:14 PM
@Akshay
No need of 'sudo' dear.. neither for 'gconf-editor' nor for 'ln'
QwertyManiac
Jun 27, 2007 at 11:50 PM
cynosure said:
cd ~/Desktop
ln -s /dev/sda3 C
ln -s /dev/sda6 D
ln -s /dev/sda1 E
ln -s /dev/sda5 F

This should do the job.
:D
No, it won't. It links to the device file instead!

And yes, anantkhaitan is right Akshay. No sudo!
Akshay
Akshay #11
Jun 28, 2007 at 10:12 AM
cynosure said:
cd ~/Desktop
ln -s /dev/sda3 C
ln -s /dev/sda6 D
ln -s /dev/sda1 E
ln -s /dev/sda5 F

This should do the job.
:D

Icon is created on d desktop. On clicking it, it returns -

Cannot open /home/akshay/Desktop/E:
No application is known for this kind of file.

Still not able to get drive shortcuts on d desktop...
QwertyManiac
Jun 28, 2007 at 10:36 AM
Sigh, lets do it the normal way :(

Right click on desktop, select Create Launcher...

In the dialog box that appears, choose File from the drop-down menu.

In Name, give anything you like, like C or D or whatever.

In Location, enter the /media/* mount point, like /media/OS and so on..

Comment is optional .. Enter whatever you like.

Screenshot for your C:\

*img215.imageshack.us/img215/38/screenshotcreatelauncheot0.png
Akshay
Akshay #13
Jun 29, 2007 at 7:36 PM
@Qwerty

The link appears n wrks only if I access my C: once from Places. I tried d same wit My Documents on C: but dat didnt wrk at all.

Phew! Finally got a way 2 do it - Let me knw if it is a rite thing to do coz its wrkg 4 me rite now -

1. I entered

sudo fdisk -l

which returned -

Disk /dev/sda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1275 10241406 c W95 FAT32 (LBA)
/dev/sda2 1276 3142 14996677+ f W95 Ext'd (LBA)
/dev/sda3 3750 4863 8948205 c W95 FAT32 (LBA)
/dev/sda5 1276 1936 5309451 b W95 FAT32
/dev/sda6 2551 3142 4755208+ b W95 FAT32
/dev/sda7 * 1937 2516 4658818+ 83 Linux
/dev/sda8 2517 2550 273073+ 82 Linux swap / Solaris

Then I entered -

sudo umount /dev/sda1
sudo umount /dev/sda3
sudo umount /dev/sda5
sudo umount /dev/sda6
sudo mkdir /fat_files
sudo mkdir /fat_files1
sudo mkdir /fat_files2
sudo mkdir /fat_files3

then -
sudo cp /etc/fstab /etc/fstab_backup

sudo nano /etc/fstab

Thr I added these lines -

/dev/sda1 /fat_files vfat iocharset=utf8,umask=000 00
/dev/sda3 /fat_files1 vfat iocharset=utf8,umask=000 00
/dev/sda5 /fat_files2 vfat iocharset=utf8,umask=000 00
/dev/sda6 /fat_files3 vfat iocharset=utf8,umask=000 00

Finally

sudo mount -a

I hav no exact idea wht these cmnds did 4 me bt I edited n used d commands frm this source
QwertyManiac
Jun 29, 2007 at 9:17 PM
Oh, usually Ubuntu adds entries to the FSTAB by themselves. I was wondering what went wrong at your end. What you've done is actually, enable auto mounting at every boot up. Now your drive volume icons would show up automatically. It might be because you are still using Fat32. Bug probably. Anyway, good to know its fixed :)
Akshay
Akshay #15
Jun 29, 2007 at 10:32 PM
Oh well reboot made all d icons disappear! So den used ur instructions in post 12 but replaced /media wit /fat_files.
QwertyManiac
Jun 29, 2007 at 10:40 PM
Hmm, the gconf-editor's trick must have worked here! I don't understand why it isn't showing the mounted volumes if the options' turned on. Are your icons fine now? Works fine right? :)
Akshay
Akshay #17
Jun 30, 2007 at 9:58 AM
I rebooted my laptop n all d icons do appear properly. Evn managed to get My Documents on Desktop.. Aftr formating n reinstallation of Ubuntu, wil I hav to go thru all dis again?
QwertyManiac
Jun 30, 2007 at 10:00 AM
Hopefully not! Ubuntu auto-mounts your Windows Partitions and even while installing it shows you how Windows partitions will be mounted and where. Be sure you don't un-check them off there, else yeah you'll have to add it manually to the FSTAB
Akshay
Akshay #19
Jun 30, 2007 at 11:13 AM
Thnx 4 ur help qwerty... It is coz of supporters like u, praka n odrs dat Ubuntu is easier for non-linux ppl...
Vivek788
Vivek788 #20
Jul 2, 2007 at 3:24 PM
oh boy so many replies..great

so using 'ln' command is the CLI solution?
Akshay
Akshay #21
Jul 2, 2007 at 4:53 PM
@vivek

Post no.12 n 13 wrkd 4 me. But if u r facing d same prb., u rathr start wit post no.2
QwertyManiac
Jul 2, 2007 at 11:43 PM
ln is the easiest way to me, than the gui launcher thing :)