 |
26-06-2007, 10:21 PM
|
#1 (permalink)
|
|
!FREEWARES!
Join Date: Aug 2004
Location: Mumbai
Posts: 1,077
|
Add Drive Shortcuts on Desktop in Ubuntu
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 =
Quote:
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
|
__________________
MBP 13.3";
PC: Core i-5 2400, Intel H67, GSkill 4GB DDR3, Sapphire 6850 Toxic, 1TB HDD, Samsung P2370
Steam (Cod-MW2 only) - akshay81
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
26-06-2007, 11:23 PM
|
#2 (permalink)
|
|
Commander in Chief
Join Date: Jul 2005
Posts: 6,658
|
Re: Add Drive Shortcuts on Desktop in Ubuntu
Lets do this the geeky way
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
__________________
Harsh J
www.harshj.com
|
|
|
27-06-2007, 01:21 PM
|
#3 (permalink)
|
|
MMO Addict
Join Date: Jul 2004
Location: Bangalore
Posts: 1,474
|
Re: Add Drive Shortcuts on Desktop in Ubuntu
I have easier way. 
go to applications > system tools > configuration editor
navigate through Apps > Nautilus > Desktop
check "volumes_visible"
Done
|
|
|
27-06-2007, 01:32 PM
|
#4 (permalink)
|
|
HELP AND SUPPORT
Join Date: Jun 2006
Posts: 1,603
|
Re: Add Drive Shortcuts on Desktop in Ubuntu
Too many Geeks around here
|
|
|
27-06-2007, 01:39 PM
|
#5 (permalink)
|
|
Rubik's Uncle!!
Join Date: Sep 2004
Location: ಬೆಂಗಳೂರು (Bengaluru)
Posts: 3,786
|
Re: Add Drive Shortcuts on Desktop in Ubuntu
^^^ thats why Digit is so famous
|
|
|
27-06-2007, 02:08 PM
|
#6 (permalink)
|
|
Commander in Chief
Join Date: Jul 2005
Posts: 6,658
|
Re: Add Drive Shortcuts on Desktop in Ubuntu
Quote:
|
Originally Posted by amitava82
I have easier way. 
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:
But that option's generally turned on by default for all, wonder how he wasn't getting the icons ..
__________________
Harsh J
www.harshj.com
|
|
|
27-06-2007, 05:21 PM
|
#7 (permalink)
|
|
!FREEWARES!
Join Date: Aug 2004
Location: Mumbai
Posts: 1,077
|
Re: Add Drive Shortcuts on Desktop in Ubuntu
@amitava
Quote:
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
returned dis -
Quote:
** (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
@qwerty
Quote:
cd ~/Desktop
ln -s /media/OS C
ln -s /media/LINUX D
ln -s /media/PROGRAMS E
ln -s /media/MISC F
|
returns -
Quote:
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.
__________________
MBP 13.3";
PC: Core i-5 2400, Intel H67, GSkill 4GB DDR3, Sapphire 6850 Toxic, 1TB HDD, Samsung P2370
Steam (Cod-MW2 only) - akshay81
Last edited by Akshay; 27-06-2007 at 05:21 PM.
Reason: Automerged Doublepost
|
|
|
27-06-2007, 06:17 PM
|
#8 (permalink)
|
|
UbuntuUser
Join Date: Sep 2006
Location: India
Posts: 746
|
Re: Add Drive Shortcuts on Desktop in Ubuntu
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.
__________________
Core 2 Quad Q6600 G0, XFX 650i ultra, XFX 8600GT 512MB, Seagate 320GB, Altec Lansing ATP3, 2x1GB 800MHz, 19" Viewsonic VA1912WB, LiteOn DVD burner, Logitech K/B, mouse, Amigo 500W PSU, Local Cabby.
|
|
|
27-06-2007, 09:14 PM
|
#9 (permalink)
|
|
Burning Bright
Join Date: May 2006
Location: NIT, Bhopal
Posts: 266
|
Re: Add Drive Shortcuts on Desktop in Ubuntu
@Akshay
No need of 'sudo' dear.. neither for 'gconf-editor' nor for 'ln'
__________________
..::Fedora ::.. Freedom + Infinity + Speech
Registered Linux User #447318
GNUger was here.... Grrr....
Maah! Blog
http://brightedges.blogspot.com/
|
|
|
27-06-2007, 11:50 PM
|
#10 (permalink)
|
|
Commander in Chief
Join Date: Jul 2005
Posts: 6,658
|
Re: Add Drive Shortcuts on Desktop in Ubuntu
Quote:
|
Originally Posted by cynosure
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.

|
No, it won't. It links to the device file instead!
And yes, anantkhaitan is right Akshay. No sudo!
__________________
Harsh J
www.harshj.com
|
|
|
28-06-2007, 10:12 AM
|
#11 (permalink)
|
|
!FREEWARES!
Join Date: Aug 2004
Location: Mumbai
Posts: 1,077
|
Re: Add Drive Shortcuts on Desktop in Ubuntu
Quote:
|
Originally Posted by cynosure
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.

|
Icon is created on d desktop. On clicking it, it returns -
Quote:
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...
__________________
MBP 13.3";
PC: Core i-5 2400, Intel H67, GSkill 4GB DDR3, Sapphire 6850 Toxic, 1TB HDD, Samsung P2370
Steam (Cod-MW2 only) - akshay81
|
|
|
28-06-2007, 10:36 AM
|
#12 (permalink)
|
|
Commander in Chief
Join Date: Jul 2005
Posts: 6,658
|
Re: Add Drive Shortcuts on Desktop in Ubuntu
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:\
__________________
Harsh J
www.harshj.com
|
|
|
29-06-2007, 07:36 PM
|
#13 (permalink)
|
|
!FREEWARES!
Join Date: Aug 2004
Location: Mumbai
Posts: 1,077
|
Re: Add Drive Shortcuts on Desktop in Ubuntu
@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
which returned -
Quote:
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 -
Quote:
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 -
Quote:
|
sudo cp /etc/fstab /etc/fstab_backup
|
Thr I added these lines -
Quote:
/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
I hav no exact idea wht these cmnds did 4 me bt I edited n used d commands frm this source
__________________
MBP 13.3";
PC: Core i-5 2400, Intel H67, GSkill 4GB DDR3, Sapphire 6850 Toxic, 1TB HDD, Samsung P2370
Steam (Cod-MW2 only) - akshay81
Last edited by Akshay; 29-06-2007 at 07:38 PM.
Reason: Automerged Doublepost
|
|
|
29-06-2007, 09:17 PM
|
#14 (permalink)
|
|
Commander in Chief
Join Date: Jul 2005
Posts: 6,658
|
Re: Add Drive Shortcuts on Desktop in Ubuntu
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
__________________
Harsh J
www.harshj.com
|
|
|
29-06-2007, 10:32 PM
|
#15 (permalink)
|
|
!FREEWARES!
Join Date: Aug 2004
Location: Mumbai
Posts: 1,077
|
Re: Add Drive Shortcuts on Desktop in Ubuntu
Oh well reboot made all d icons disappear! So den used ur instructions in post 12 but replaced /media wit /fat_files.
__________________
MBP 13.3";
PC: Core i-5 2400, Intel H67, GSkill 4GB DDR3, Sapphire 6850 Toxic, 1TB HDD, Samsung P2370
Steam (Cod-MW2 only) - akshay81
|
|
|
29-06-2007, 10:40 PM
|
#16 (permalink)
|
|
Commander in Chief
Join Date: Jul 2005
Posts: 6,658
|
Re: Add Drive Shortcuts on Desktop in Ubuntu
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?
__________________
Harsh J
www.harshj.com
|
|
|
30-06-2007, 09:58 AM
|
#17 (permalink)
|
|
!FREEWARES!
Join Date: Aug 2004
Location: Mumbai
Posts: 1,077
|
Re: Add Drive Shortcuts on Desktop in Ubuntu
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?
__________________
MBP 13.3";
PC: Core i-5 2400, Intel H67, GSkill 4GB DDR3, Sapphire 6850 Toxic, 1TB HDD, Samsung P2370
Steam (Cod-MW2 only) - akshay81
|
|
|
30-06-2007, 10:00 AM
|
#18 (permalink)
|
|
Commander in Chief
Join Date: Jul 2005
Posts: 6,658
|
Re: Add Drive Shortcuts on Desktop in Ubuntu
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
__________________
Harsh J
www.harshj.com
|
|
|
30-06-2007, 11:13 AM
|
#19 (permalink)
|
|
!FREEWARES!
Join Date: Aug 2004
Location: Mumbai
Posts: 1,077
|
Re: Add Drive Shortcuts on Desktop in Ubuntu
Thnx 4 ur help qwerty... It is coz of supporters like u, praka n odrs dat Ubuntu is easier for non-linux ppl...
__________________
MBP 13.3";
PC: Core i-5 2400, Intel H67, GSkill 4GB DDR3, Sapphire 6850 Toxic, 1TB HDD, Samsung P2370
Steam (Cod-MW2 only) - akshay81
|
|
|
02-07-2007, 03:24 PM
|
#20 (permalink)
|
|
In The Zone
Join Date: Jul 2006
Location: Cochin
Posts: 340
|
Re: Add Drive Shortcuts on Desktop in Ubuntu
oh boy so many replies..great
so using 'ln' command is the CLI solution?
|
|
|
02-07-2007, 04:53 PM
|
#21 (permalink)
|
|
!FREEWARES!
Join Date: Aug 2004
Location: Mumbai
Posts: 1,077
|
Re: Add Drive Shortcuts on Desktop in Ubuntu
@vivek
Post no.12 n 13 wrkd 4 me. But if u r facing d same prb., u rathr start wit post no.2
__________________
MBP 13.3";
PC: Core i-5 2400, Intel H67, GSkill 4GB DDR3, Sapphire 6850 Toxic, 1TB HDD, Samsung P2370
Steam (Cod-MW2 only) - akshay81
|
|
|
02-07-2007, 11:43 PM
|
#22 (permalink)
|
|
Commander in Chief
Join Date: Jul 2005
Posts: 6,658
|
Re: Add Drive Shortcuts on Desktop in Ubuntu
ln is the easiest way to me, than the gui launcher thing
__________________
Harsh J
www.harshj.com
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|