LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 09-30-2009, 10:34 PM   #16
mag1strate
Member
 
Registered: Apr 2009
Distribution: Fedora 16, Arch
Posts: 136

Original Poster
Rep: Reputation: 18

I got this error now:

mag1strate@linux-o6a5:~> sudo mount /dev/sdf1 /media/Elements
mount: wrong fs type, bad option, bad superblock on /dev/sdf1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
 
Old 10-01-2009, 03:13 AM   #17
DarkVenger
Member
 
Registered: Mar 2004
Location: VCO
Distribution: Arch
Posts: 43

Rep: Reputation: 26
For the record, because it seems now that you may have another problem, if you don't have a storage group I don't know how to add it in the correct manner. So my suggestion is editing the file /etc/dbus-1/system.d/hal.conf and inside (in between them) this tags
Code:
<policy context="default"> "stuff here" </policy>
add the following,
Code:
<allow send_destination="org.freedesktop.Hal"
    	   send_interface="org.freedesktop.Hal.Device.Volume"/>
    <allow send_destination="org.freedesktop.Hal"
    send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
and probably this too,
Code:
<allow send_destination="org.freedesktop.Hal"
    	   send_interface="org.freedesktop.Hal.Device.Storage"/>
    <allow send_destination="org.freedesktop.Hal"
   send_interface="org.freedesktop.Hal.Device.Storage.Removable"/>
Now, because of your latest error try to mount the device respecifying it file system like this if it is FAT32
Code:
mount -t vfat /dev/sdf1 /media/Elements
or like this if is NTFS (note that in this case you must have ntfs-3g installed)
Code:
mount -t ntfs-3g /dev/sdf1 /media/Elements

Has an additional note the /media folder should only be controlled by HAL, manual mounts should go to /mnt. If HAL is to mount a device and the folder were it will mount it already exists, no action is taken by HAL.
 
Old 10-01-2009, 07:31 AM   #18
mag1strate
Member
 
Registered: Apr 2009
Distribution: Fedora 16, Arch
Posts: 136

Original Poster
Rep: Reputation: 18
I looked in my hal.conf file and all those lines were there.

and I get this problem when I put in those commands:

mag1strate@linux-o6a5:~> sudo mount -t vfat /dev/sdf1 /media/Elements
mount: wrong fs type, bad option, bad superblock on /dev/sdf1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

mag1strate@linux-o6a5:~> sudo mount -t ntfs-3g /dev/sdf1 /media/Elements
NTFS signature is missing.
Failed to mount '/dev/sdf1': Invalid argument
The device '/dev/sdf1' doesn't have a valid NTFS.
Maybe you selected the wrong device? Or the whole disk instead of a
partition (e.g. /dev/hda, not /dev/hda1)? Or the other way around?
 
Old 10-01-2009, 10:03 AM   #19
DarkVenger
Member
 
Registered: Mar 2004
Location: VCO
Distribution: Arch
Posts: 43

Rep: Reputation: 26
Ok, by that output is safe to say the file system is FAT32.
I wonder if the disk was incorrectly unmounted...if this is the case I usually connect it to a windows machine and then click "Safe Removal". However I know there's a forcing option on linux, but can't find it...I suspect you can append -o force to the mount command, but not sure though.
 
Old 10-01-2009, 05:35 PM   #20
mag1strate
Member
 
Registered: Apr 2009
Distribution: Fedora 16, Arch
Posts: 136

Original Poster
Rep: Reputation: 18
No it still fails to mount, The cdrom isn't mounting either. I really don't know what is up with this. This is the first time I have ever run into a problem like this.
 
Old 10-01-2009, 05:56 PM   #21
slimg00dy
LQ Newbie
 
Registered: Oct 2009
Posts: 26

Rep: Reputation: 2
cd /media
mkdir usb
fdisk -l
mount -t vfat /dev/whatever /media/usb

Go to directory media. Make folder usb. use fdisk -l to figure out what the USB device file is (find /dev/whatever you think the USB drive is)
mount the usb drive into /media/usb.
 
Old 10-01-2009, 06:15 PM   #22
DarkVenger
Member
 
Registered: Mar 2004
Location: VCO
Distribution: Arch
Posts: 43

Rep: Reputation: 26
I'm out of ideas...
 
Old 10-01-2009, 06:15 PM   #23
mag1strate
Member
 
Registered: Apr 2009
Distribution: Fedora 16, Arch
Posts: 136

Original Poster
Rep: Reputation: 18
Still get an error:


mag1strate@linux-o6a5:/media> sudo fdisk -|
> sudo mount -t vfat /dev/sdf1 /media/usb
sudo: fdisk: command not found
mount: wrong fs type, bad option, bad superblock on /dev/sdf1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
 
Old 10-01-2009, 06:32 PM   #24
slimg00dy
LQ Newbie
 
Registered: Oct 2009
Posts: 26

Rep: Reputation: 2
Quote:
Originally Posted by mag1strate View Post
Still get an error:


mag1strate@linux-o6a5:/media> sudo fdisk -|
> sudo mount -t vfat /dev/sdf1 /media/usb
sudo: fdisk: command not found
mount: wrong fs type, bad option, bad superblock on /dev/sdf1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so


Try sudo /sbin/fdisk -l -- That should give you the partition type on your drive, if its fat sudo mount -t vfat /dev/sdf1 /media/usb should work. If its NTFS then its sudo mount -t ntfs.

Please give the output of sudo /sbin/fdisk -l
If sudo doesn't work, login as root to make things quicker.
 
Old 10-01-2009, 06:38 PM   #25
sploot
Member
 
Registered: Sep 2009
Location: Phoenix, AZ
Distribution: Gentoo, Debian, Ubuntu
Posts: 121

Rep: Reputation: 27
Quote:
Originally Posted by mag1strate View Post
Still get an error:


mag1strate@linux-o6a5:/media> sudo fdisk -|
> sudo mount -t vfat /dev/sdf1 /media/usb
sudo: fdisk: command not found
mount: wrong fs type, bad option, bad superblock on /dev/sdf1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
When you ran this command, you used a pipe "|" instead of an "l" (a lowercase version of "L"). You don't want to pipe the data, we just want information on the disks you have plugged in
 
Old 10-01-2009, 06:56 PM   #26
mag1strate
Member
 
Registered: Apr 2009
Distribution: Fedora 16, Arch
Posts: 136

Original Poster
Rep: Reputation: 18
nope still getting the same error:

mag1strate@linux-o6a5:~> /sbin/fdisk -l
mag1strate@linux-o6a5:~> sudo mount -t vfat /dev/sdf1 /media/usb
mount: wrong fs type, bad option, bad superblock on /dev/sdf1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
 
Old 10-01-2009, 06:57 PM   #27
sploot
Member
 
Registered: Sep 2009
Location: Phoenix, AZ
Distribution: Gentoo, Debian, Ubuntu
Posts: 121

Rep: Reputation: 27
post the output of:
Code:
which fdisk
 
Old 10-01-2009, 07:13 PM   #28
DarkVenger
Member
 
Registered: Mar 2004
Location: VCO
Distribution: Arch
Posts: 43

Rep: Reputation: 26
mag1strate yesterday showed his dmesg after connecting the drive...
 
Old 10-01-2009, 07:18 PM   #29
sploot
Member
 
Registered: Sep 2009
Location: Phoenix, AZ
Distribution: Gentoo, Debian, Ubuntu
Posts: 121

Rep: Reputation: 27
DarkVenger:
There is nothing in his dmesg that looks suspicious. All the errors are network related, not pertinent to the usage of his usb disk.

Last edited by sploot; 10-01-2009 at 07:19 PM.
 
Old 10-01-2009, 07:22 PM   #30
mag1strate
Member
 
Registered: Apr 2009
Distribution: Fedora 16, Arch
Posts: 136

Original Poster
Rep: Reputation: 18
Here you go:


mag1strate@linux-o6a5:~> which fdisk
which: no fdisk in (/home/mag1strate/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib64/jvm/jre/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin)
 
  


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
mounting usb drives in BSD sharathg786 *BSD 2 07-31-2007 10:55 AM
On Mounting USB Hard Drives jerm1701 Linux - Hardware 2 04-17-2007 02:24 AM
Mounting USB drives (external HD and two at once) jrdioko Linux - Software 4 07-25-2006 07:40 PM
Mounting USB drives under 2.6.x hussar Linux - General 1 03-07-2004 01:58 PM
mounting usb drives? neon Linux - Newbie 2 10-29-2003 09:06 PM


All times are GMT -5. The time now is 06:42 PM.

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