can you re-mount a drive after accidentally deleting it?

Asked by mozingeaux

Yesterday I put an SD card from my parent's camera into the printer and Ubuntu recognized it automatically. But after playing around a little while I tried to delete a photo I imported, and instead deleted the "drive". The pictures are still on the camera card, but the drive no longer shows up on the desktop. Is there some way I can re-mount the drive?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Tom (tom6) said :
#1

Pull the card out and plug it in again?

Revision history for this message
Tom (tom6) said :
#2

If there's still an icon for the drive in

Places - Computer

then right-click on it and choose "Mount", if "Mount" is greyed out then try right-click and "Eject" - same as previous post really ...

Revision history for this message
mozingeaux (mozingeaux) said :
#3

I've tried that again and again. I restarted the computer, I installed all available updates, I switched to a different user account...it's not helping.

Revision history for this message
mozingeaux (mozingeaux) said :
#4

i checked "computer" too. it's not there.

Revision history for this message
Tom (tom6) said :
#5

Ok i've got an answer that's a bit like trying to crack a walnut with a sledge-hammer

Revision history for this message
Tom (tom6) said :
#6

Go up to the top taskbar and click on

System - Administration - Partition Editor

It will ask for your normal user password, not the SuperUser/Root one. Now in the top right hand corner of the gui there should be a button that works a bit like a drop-down list and says something like "/dev/sda (40Gb)" click on it and change to any different drive you see until you find one that look about right. Then in the coloured block, probably green, right click and choose "Mount". Be careful with this gui because it can be a fast way to completely wipe your whole machine! If this way hasn't helped then just close the gui with the normal little cross at the top right

Good luck and take care !

Revision history for this message
Tom (tom6) said :
#7

The "Administration" menu is alphabetical (by default but you may have changed it round a bit). If "Partition Editor" isn't there we can download it through Synaptic Package Manager - it's really called "gparted"

Revision history for this message
Tom (tom6) said :
#8

There is a much more elegant way to do this from the command line that's a lot less risky, but i don't know it so you might have to wait a day or so for someone else to pop in with the answer - or hunt around for someone else who's done something similar.

Don't worry, we all do things like this from time to time.

Good luck and regards from
Tom :)

Revision history for this message
Tom (tom6) said :
#9

Please let us know how it's going. I'm trying to find something about "force mount"

Revision history for this message
mozingeaux (mozingeaux) said :
#10

Tom - I downloaded the partition editor and looked, but there aren't any 2.0gb drives - there's a 2.96gb drive, but i don't think that's it. However, I really appreciate your taking time to assist me. thank you.

Revision history for this message
Tom (tom6) said :
#11

It might well be the 2.96 one. If it has an icon that looks like a key in the lines of text below the oblong block of green/blue(?) then it's probably already mounted but check from the right-click menu to see if it allows you to mount it.

You're welcome
Good luck with this :)

Revision history for this message
Craig Huffstetler (xq) said :
#12

I have a few things for you to do to help us troubleshoot this.

1) Open up a terminal window (Applications > Utilities > Terminal) and type in:

sudo fdisk -l

Come back here and copy and paste the resulting information. If you can't paste it all here feel free to use http://www.pastebin.ca or an equivalent site. This will help us see your partition table(s). Are you getting an error when you try to mount the drive? We can tell which drive you are trying to mount by the size of the drive, so keep it plugged in during all of this.

2) Go to the terminal window again and type:

lsusb

Let us know the pasted results. Remember to have the SD drive plugged in.

3) Last, but not least, leave the terminal open and type this:

tail -f /var/log/messages

WHILE you try to mount the drive using your usual method (whatever it is). You should see some messages start scrolling in the terminal. Paste those here too. I'd like to see those.

All of this will help me/us troubleshoot your problem further. Really, I think it's a formatting issue or your computer is not seeing the mount point properly. We'll find out soon.

Regards,

Craig H.

Revision history for this message
mozingeaux (mozingeaux) said :
#13

After typing "sudo fdisk -l" I get this:

Disk /dev/sda: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8c253c48

   Device Boot Start End Blocks Id System
/dev/sda1 * 1 31 248976 83 Linux
/dev/sda2 32 12161 97434225 5 Extended
/dev/sda5 32 12161 97434193+ 8e Linux LVM

Disk /dev/sdb: 203.9 GB, 203928109056 bytes
255 heads, 63 sectors/track, 24792 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe27b0d95

   Device Boot Start End Blocks Id System
/dev/sdb1 1 24793 199148512+ b W95 FAT32

_____________________________________________________________

After typing "lsusb" I get this:

Bus 005 Device 002: ID 0d49:3210 Maxtor
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 002: ID 03f0:3b11 Hewlett-Packard
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

_____________________________________________________________

I typed "tail -f /var/log/messages" in terminal after taking the camera card out, then i put the camera card in but nothing happened. I tried typing it again while the camera card was in but I got the same result:

Mar 22 15:02:55 ubuntu -- MARK --
Mar 22 15:22:55 ubuntu -- MARK --
Mar 22 15:42:55 ubuntu -- MARK --
Mar 22 16:02:55 ubuntu -- MARK --
Mar 22 16:22:55 ubuntu -- MARK --
Mar 22 16:42:55 ubuntu -- MARK --
Mar 22 17:02:55 ubuntu -- MARK --
Mar 22 17:22:55 ubuntu -- MARK --
Mar 22 17:30:39 ubuntu kernel: [72491.526543] [drm] Loading R300 Microcode
Mar 22 17:42:55 ubuntu -- MARK --

Revision history for this message
Craig Huffstetler (xq) said :
#14

This shows that the kernel automatically loads the drive and does not unload it or cause any errors.

The:
Mar 22 17:30:39 ubuntu kernel: [72491.526543] [drm] Loading R300 Microcode

Would be the camera card y ou are inserting, I am assuming.

For you it does not show up as a drive and does not function as a separate drive (as referenced above)? It should -- and from there you should be able to treat it just like a drive.

Revision history for this message
Tom (tom6) said :
#15

Ok, another 'waggle the wires' effort from me ...

Take the card out and reboot to the boot menu that has a lot of options for booting into Ubuntu. One of them should have "Recovery Mode" at the end. It's worth running through these options about once a month. The "x-server" one might reset your display settings and lose all your tweaks so maybe not that one and the "Drop to root command-line" probably wont help much either - just type "reboot" if that happens.

The top option lets you continue with a normal boot but should freshen your Ubuntu up a bit :)

Try looking in the "Places" menu and from places try "Computer". Also try opening the Documents folder and use the file-browsers up-arrow to get right back to the / root of the filesystem - then look in /mnt and /media

Good luck with this
Regards from
Tom :)

Revision history for this message
Tom (tom6) said :
#16

Hi :)

Have you been able to test the new Ubuntu 10.04 before it gets officially released?
http://www.ubuntulinux.org/testing/lucid/beta1
Trying it as a LiveCd or as an extra dual/multi-boot would be ideal. Developers and everyone are keen to try to iron out any problems before 10.04 gets officially released so you might find faster & more effective answers to your bug reports which would make 10.04 work better on your system for you

Thanks and regards from
Tom :)

Can you help with this problem?

Provide an answer of your own, or ask mozingeaux for more information if necessary.

To post a message you must log in.