LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-15-2009, 01:57 PM   #1
ladybugmandy
LQ Newbie
 
Registered: Apr 2009
Posts: 14

Rep: Reputation: 0
Flash Drive Problem: Cannot Mount Volume


hello. i am an absolute beginner and am trying to use my SanDisk 2GB flashdrive in Ubuntu 8.04. it gives me an error message:

Cannot mount volume
Invalid mount option when attempting to mount the volume.

i have tried going to my main PC (which uses windows) and safely removing the flash drive but it still will not work on my linux PC.

any help would be greatly appreciated.
thank you
sue
 
Old 04-15-2009, 02:07 PM   #2
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
With the usb in your PC-open a terminal and enter "mount"
Then "df -h", also "dmesg | tail".
Please put the output of those in your next post.
 
Old 04-15-2009, 02:35 PM   #3
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Not sure about Ubuntu 8.04, but my Ubuntu 8.10 would only allow me to mount an external USB drive from command line. To allow my user access to external drives without command line I had to allow it as super user through System/Administration/Authorizations.
It's more than likely a permissions issue.
 
Old 04-15-2009, 03:22 PM   #4
ladybugmandy
LQ Newbie
 
Registered: Apr 2009
Posts: 14

Original Poster
Rep: Reputation: 0
thanks for the posts...

linus,

sue@sue-laptop:~$ mount
/dev/sda1 on / type ext3 (rw,relatime,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.24-23-generic/volatile type tmpfs (rw)
securityfs on /sys/kernel/security type securityfs (rw)
gvfs-fuse-daemon on /home/sue/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=sue)
sue@sue-laptop:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 3.3G 2.8G 334M 90% /
varrun 501M 96K 501M 1% /var/run
varlock 501M 0 501M 0% /var/lock
udev 501M 48K 501M 1% /dev
devshm 501M 12K 501M 1% /dev/shm
lrm 501M 39M 463M 8% /lib/modules/2.6.24-23-generic/volatile
gvfs-fuse-daemon 3.3G 2.8G 334M 90% /home/sue/.gvfs
sue@sue-laptop:~$ dmesg | tail
[ 84.091222] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 84.096041] sd 2:0:0:0: [sdb] 4013713 512-byte hardware sectors (2055 MB)
[ 84.097792] sd 2:0:0:0: [sdb] Write Protect is off
[ 84.097815] sd 2:0:0:0: [sdb] Mode Sense: 03 00 00 00
[ 84.097828] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[ 84.097848] sdb: sdb1
[ 84.100892] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[ 84.101079] sd 2:0:0:0: Attached scsi generic sg1 type 0
[ 86.724195] UDF-fs: No partition found (1)
[ 86.890825] ISOFS: Unable to identify CD-ROM format.
 
Old 04-15-2009, 03:32 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
The last two lines seem to be from inserting a CD later.
What does "sudo file -s /dev/sdb1" say about the filesystem?

Also look at "udevinfo -q env -n /dev/sdb1".

If you manually mount the disk, or use an /etc/fstab entry, using the UUID number instead of the device would be better.
Then if the device node is different, there is no problem. Using the "noauto" would be needed to prevent auto mounting during boot.
Using the uid, gid, fmask & dmask options you can change the permissions and ownership for a vfat or ntfs filesystem. Using "user" as well, you can mount it as a regular user. Please see the manpages for mount for details.
 
Old 04-15-2009, 04:04 PM   #6
ladybugmandy
LQ Newbie
 
Registered: Apr 2009
Posts: 14

Original Poster
Rep: Reputation: 0
jschiwal..thank you...but i am a total newbie and cannot understand how to do those things.

the computer with linux does not have a CD-ROM drive. its a mini.

thank you
sue
 
Old 04-15-2009, 04:18 PM   #7
ladybugmandy
LQ Newbie
 
Registered: Apr 2009
Posts: 14

Original Poster
Rep: Reputation: 0
jschiwal....when i typed "udevinfo -q env -n /dev/sdb1", i got:

DEVTYPE=partition
ID_VENDOR=SanDisk
ID_MODEL=Cruzer_Slide
ID_REVISION=4.04
ID_SERIAL=SanDisk_Cruzer_Slide_00001675C6754D8D-0:0
ID_SERIAL_SHORT=00001675C6754D8D
ID_TYPE=disk
ID_INSTANCE=0:0
ID_BUS=usb
ID_PATH=pci-0000:00:1d.7-usb-0:1:1.0-scsi-0:0:0:0
ID_FS_USAGE=filesystem
ID_FS_TYPE=vfat
ID_FS_VERSION=FAT16
ID_FS_UUID=65DF-0067
ID_FS_UUID_ENC=65DF-0067
ID_FS_LABEL=
ID_FS_LABEL_ENC=
ID_FS_LABEL_SAFE=


thanks!
sue
 
Old 04-15-2009, 05:26 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,716

Rep: Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751
Out of curiosity is this a U3 device? When you plug in the drive on a windows PC do you actually see two devices and did some launchpad program start automatically? Could be the reason for the "Unable to identify CD-ROM format" error. However the flash side should still be accessible in linux.

U3 functionality does not work with non windows operating systems and so I just end up removing it.

http://www.sandisk.com/Retail/Default.aspx?CatID=1450
 
Old 04-15-2009, 06:43 PM   #9
ladybugmandy
LQ Newbie
 
Registered: Apr 2009
Posts: 14

Original Poster
Rep: Reputation: 0
hmm..maybe it is a u3 device...are flash drives all different?
 
Old 04-15-2009, 06:57 PM   #10
ladybugmandy
LQ Newbie
 
Registered: Apr 2009
Posts: 14

Original Poster
Rep: Reputation: 0
ok i uninstalled the U3 launchpad from the flash drive....still doesn't work!

:-/
 
Old 04-15-2009, 09:49 PM   #11
ladybugmandy
LQ Newbie
 
Registered: Apr 2009
Posts: 14

Original Poster
Rep: Reputation: 0
junior hacker..thanks for the suggestion. i did what you said....granted permission to mount external drives...still doesn't work.

:-/
 
Old 04-16-2009, 12:14 AM   #12
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
If you're not concerned about the U3 launcher. Find which device the pen drive is by running command from within Ubuntu: sudo fdisk -l after plugging it in. If for example it is /dev/sdb, clean it off completely with command: dd if=/dev/zero of=/dev/sdb. After the prompt returns, unplug it and plug it into Windows and try to access it, Windows will say it is not formatted and will ask if you want to format it. Say yes, give it a name in the label field, and click OK to format it with default file system, click OK after the warning.
When it is done, try it in Ubuntu, it should now be visible.
Sandisk offers the LPInstaller for free if you want to reinstall the U3 launcher.

EDIT: Also, make sure the device in your dd command (/dev/sdx) is the same as the USB device, if you specify the wrong device, you may wipe out your system. Unless you are running Ubuntu in a live CD session where you won't harm Ubuntu, but may wipe out the Windows drive.

Last edited by Junior Hacker; 04-16-2009 at 12:18 AM. Reason: Added a warning
 
Old 04-16-2009, 02:05 AM   #13
ladybugmandy
LQ Newbie
 
Registered: Apr 2009
Posts: 14

Original Poster
Rep: Reputation: 0
junior hacker...this is what happened:

sue@sue-laptop:~$ sudo fdisk -1
[sudo] password for sue:
fdisk: invalid option -- 1

Usage: fdisk [-b SSZ] [-u] DISK Change partition table
fdisk -l [-b SSZ] [-u] DISK List partition table(s)
fdisk -s PARTITION Give partition size(s) in blocks
fdisk -v Give fdisk version
Here DISK is something like /dev/hdb or /dev/sda
and PARTITION is something like /dev/hda7
-u: give Start and End in sector (instead of cylinder) units
-b 2048: (for certain MO disks) use 2048-byte sectors
sue@sue-laptop:~$ dd if=/dev/zero of=/dev/sdb
dd: opening `/dev/sdb': Permission denied
 
Old 04-16-2009, 06:41 AM   #14
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Jessie Amd64
Posts: 1,477

Rep: Reputation: Disabled
Quote:
Originally Posted by ladybugmandy View Post
junior hacker...this is what happened:

sue@sue-laptop:~$ sudo fdisk -1
[sudo] password for sue:
fdisk: invalid option -- 1

Usage: fdisk [-b SSZ] [-u] DISK Change partition table
fdisk -l [-b SSZ] [-u] DISK List partition table(s)
fdisk -s PARTITION Give partition size(s) in blocks
fdisk -v Give fdisk version
Here DISK is something like /dev/hdb or /dev/sda
and PARTITION is something like /dev/hda7
-u: give Start and End in sector (instead of cylinder) units
-b 2048: (for certain MO disks) use 2048-byte sectors
sue@sue-laptop:~$ dd if=/dev/zero of=/dev/sdb
dd: opening `/dev/sdb': Permission denied
That should be fdisk -l.Thats an 'l' not a '1'.
 
Old 04-16-2009, 07:24 AM   #15
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,716

Rep: Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751Reputation: 1751
AFAIK U3 can not be uninstalled via the dd command.

U3s are special....

Last edited by michaelk; 04-16-2009 at 07:29 AM. Reason: Added comment U3
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Flash drive won’t mount after hibernate (HAL problem?) tux_addict Debian 1 05-13-2008 08:34 PM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 07:16 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 1 12-24-2005 04:25 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 02:15 AM
USB flash drive mount problem servnov Linux - General 4 10-10-2005 08:08 PM


All times are GMT -5. The time now is 07:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration