LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Thread Tools
Old 04-25-2007, 01:59 AM   #1
distortedstar
Member
 
Registered: Jan 2004
Location: West Texas
Distribution: Ubuntu 7.04/MythDora 4/PuppyLinux
Posts: 75
Thanked: 0
"Failed to Mount 1GB Volume" in SAM LInux (PCLinuxOS)


[Log in to get rid of this advertisement]
So...never had this happen before, but I can't mount my 1gb SD card when in drive-mode on my Palm handheld.

I get the following error:
Code:
"Failed to Mount 1GB Volume"
Given device "/org/freedesktop/Hal/devices/volume_part1_size_1015775744" is not a volume or drive.
Dmesg:
Code:
usb 2-1: new full speed USB device using uhci_hcd and address 8
usb 2-1: configuration #1 chosen from 1 choice
scsi4 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 8
usb-storage: waiting for device to settle before scanning
  Vendor: Sandisk   Model: SD01G             Rev: 1.0 
  Type:   Direct-Access                      ANSI SCSI revision: 00
SCSI device sda: 1984000 512-byte hdwr sectors (1016 MB)
sda: Write Protect is off
sda: Mode Sense: 1c 0a 00 00
sda: assuming drive cache: write through
SCSI device sda: 1984000 512-byte hdwr sectors (1016 MB)
sda: Write Protect is off
sda: Mode Sense: 1c 0a 00 00
sda: assuming drive cache: write through
 sda: sda1
sd 4:0:0:0: Attached scsi removable disk sda
sd 4:0:0:0: Attached scsi generic sg0 type 0
usb-storage: device scan complete
Any ideas? I would love to install this distro permanently, but if I can't access my card...it's pretty useless.
distortedstar is offline     Reply With Quote
Old 04-25-2007, 03:03 AM   #2
jschiwal
Moderator
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 12,039
Thanked: 123
You might want to check the filesystem on the card. If it is fat32, then "sudo /sbin/fsck.vfat /dev/sda1" if it is detected as the same device the next time you plug it in. Your fsck command may be located somewhere else. Please read the "man fsck" manpage first.

A handy command to use to examine a partition is the "file" command:
Code:
sudo file -s /dev/sdc1
/dev/sdc1: x86 boot sector, mkdosfs boot message display, code offset 0x58, OEM-ID " mkdosfs", sectors/cluster 8, Media descriptor 0xf8, heads 125, sectors 7873938 (volumes > 32 MB) , FAT (32 bit), sectors/FAT 7675, serial number 0x458159d0, label: "           "
You might also want to give the device a label. You can do that for a fat32 partition using "mlabel" which is part of "mtools".
You may need to add a line like
drive e: file='/dev/sda1'
to the mtools.conf to assign a drive letter to the partitions device file.

I just tried it out, by adding a label to a 4 GB card. I gave it the label "podcasts". It now automounts under /media/PODCASTS when I insert it.
jschiwal is offline     Reply With Quote
Old 04-25-2007, 10:02 AM   #3
distortedstar
Member
 
Registered: Jan 2004
Location: West Texas
Distribution: Ubuntu 7.04/MythDora 4/PuppyLinux
Posts: 75
Thanked: 0

Original Poster
Thanks for the reply.

dosfsck -r /dev/sda1 returns:
Code:
dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/dev/sda1: 3 files, 2/61981 clusters
file -s /dev/sda1 returns:
Code:
/dev/sda1: DOS executable (COM)

mlabel -n calmcard returns:
Code:
Total number of sectors not a multiple of sectors per track!
Add mtools_skip_check=1 to your .mtoolsrc file to skip this test
tried adding that line to .mtoolsrc, but I get:
Code:
Syntax error at line 1 column 20 in file /root/.mtoolsrc: unrecognized keyword
I tried reformating the card on with the palm OS with no luck.

Then, I did an fdisk /dev/sda1 followed by mkfs -t vfat /dev/sda1.

Now, I get this error:

Code:
Unable to mount "1G Removable Volume":

Mount operation claims to be successfull, but kernel doesn't list the volume as mounted
distortedstar is offline     Reply With Quote
Old 04-25-2007, 11:04 AM   #4
distortedstar
Member
 
Registered: Jan 2004
Location: West Texas
Distribution: Ubuntu 7.04/MythDora 4/PuppyLinux
Posts: 75
Thanked: 0

Original Poster
Some Progress

Well, I think this could be progress.

Did mkfs -t vfat -n PALMCARD /dev/sda1

This was successful, now "PALMCARD" pops up on the desktop. When I try to mount it, though I get this error:

Code:
Unable to mount "PALMCARD":

You are not privileged to mount the volume "PALMCARD"
I am also UNABLE to mount through thunar as root. However, I am able to mount with the mount command as root in the terminal.

I'll try adding the usb device to my fstab and see if it works.
distortedstar is offline     Reply With Quote
Old 04-25-2007, 11:52 AM   #5
distortedstar
Member
 
Registered: Jan 2004
Location: West Texas
Distribution: Ubuntu 7.04/MythDora 4/PuppyLinux
Posts: 75
Thanked: 0

Original Poster
I reformated with the Palm OS. Same problems as the original post. I now realize that even with the card being formatted by the Palm device I can mount from the command line as root. This looks to be HAL/Udev bug, I guess. Still have to try adding the device to my fstab.
distortedstar is offline     Reply With Quote
Old 04-25-2007, 03:12 PM   #6
jschiwal
Moderator
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 12,039
Thanked: 123
Try using the "user", "noauto" and the "uid" and "gid" options if you are going to add an entry in /etc/fstab. The "user" option will allow you to mount it as a normal user. The "mount" command is an SUID program. If a regular user runs mount, it checks /etc/fstab for the "user" option. If the user option exists, you can mount it yourself. The "uid=" and "gid=" options allow you to become the owner and your default group to be the group owner of a vfat or ntfs partition. Also consider separate "dmask" and "fmask" options instead of "umask". This allows you to set the "x" bit for directories and clear the "x" bit for files. The "noauto" option is needed because it is an external device that might not be present when you boot.

On my system, udev and hal will respect the settings of /etc/fstab when creating the device, mountpoint and ownership, and will still automount the device.
jschiwal is offline     Reply With Quote
Old 04-25-2007, 03:25 PM   #7
distortedstar
Member
 
Registered: Jan 2004
Location: West Texas
Distribution: Ubuntu 7.04/MythDora 4/PuppyLinux
Posts: 75
Thanked: 0

Original Poster
Here's my current fstab entry. Could you illustrate some the changes I might make?
Code:
/dev/sda1 /media/usb-device vfat rw,sync,noauto,user 0 0
I have no problems with a regular usb stick. Just the sd card in the palm. Crazy.
distortedstar is offline     Reply With Quote
Old 04-26-2007, 12:37 AM   #8
distortedstar
Member
 
Registered: Jan 2004
Location: West Texas
Distribution: Ubuntu 7.04/MythDora 4/PuppyLinux
Posts: 75
Thanked: 0

Original Poster
Even more mounting frustration (pun slightly intended):

I tried to mount a data cd and got a "Mount claims to be successful, but kernel doesn't list volume as mounted" error.

Great. Just great. One of reasons I installed a PCLinuxOS dirivitive was the supposed ease of use.
distortedstar is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Gnome, Shortcut for "headphones" instead of "volume" Bollie Linux - General 2 06-07-2007 09:19 PM
Error, "Cannot Mount Volume" ! cbtg2006 Fedora 3 06-22-2006 01:10 AM
Access a "linux crypted volume" in windows kemkem42 Linux - Software 1 12-01-2005 04:02 AM
"Unable to mount the selected volume" Mustard Linux - Newbie 4 10-17-2004 12:50 PM
does failed using urpmi messed up my "Install Software" / "mandrake update" ??? sirpelidor Mandriva 1 11-02-2003 09:00 PM


All times are GMT -5. The time now is 08:00 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration