PDA

View Full Version : [ubuntu] desktop contents got deleted



daudiam
February 26th, 2010, 06:04 PM
I typed the following in the terminal to mount my pendrive onto the desktop

sudo mount /dev/sdb1 /home/waqas/Desktop/when I went into my desktop again there was nothing but the pen drive. Even after umounting the pen drive, the contents of the desktop did not return. Where are they ?

Kakers
February 26th, 2010, 06:05 PM
Type the following to see if they are still there:


cd ~/Desktop
ls -l

daudiam
February 26th, 2010, 06:11 PM
Yes, thankfully they are. But, how to get them to show on the desktop ?

Kakers
February 26th, 2010, 06:19 PM
I've had this kind of problem before with stuff not showing up on the desktop, I can't remember how I fixed it... may have been just a restart, but you should be able to move them out of your desktop to something like ~/ then see if they show up... if they do then move them back to ~/Desktop

daudiam
February 26th, 2010, 07:47 PM
Thanks. It worked when I restarted but why didn't it show when I mounted the pendrive on the Desktop. When I went into the Desktop folder via the GUI, it didn't show anything. But by typing to cd ~/Desktop, the contents were shown. Why was that ?

Kakers
February 26th, 2010, 11:00 PM
Maybe because it opens up the USB stick onto the desktop rather then putting into a folder you could probably do:



cd ~/Desktop
mkdir /usb
mount /dev/sdb1 ~/Desktop/usb

That should then mount it to the folder USB. also I may be wrong but I think usb sticks are hda ? to confirm you could type 'sudo fdisk -l'