"Failed to Mount 1GB Volume" in SAM LInux (PCLinuxOS)
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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:
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.