LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > 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
  Search this Thread
Old 10-06-2008, 12:27 PM   #1
Flailing_Novice
Member
 
Registered: Jul 2007
Distribution: Debian Etch AMD64
Posts: 48

Rep: Reputation: 18
mount: you must specify the filesystem type


I have started to have difficulty mounting a USB external drive that used to work fine.

In fstab I have
$ cat /etc/fstab|grep sdc
/dev/sdc /media/lacie_sdc auto user,rw,noauto 0 0

fdisk -l tells me
$ fdisk -l /dev/sdc

Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 1 121601 976760001 83 Linux

But mount fails
$ mount /dev/sdc /media/lacie_sdc
mount: you must specify the filesystem type

adding the -t flag doesn't help

$ mount -t ext2 /dev/sdc /media/lacie_sdc
mount: wrong fs type, bad option, bad superblock on /dev/sdc,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

and dmesg tells me
$ dmesg | tail
ASC=0x0 ASCQ=0x0
end_request: I/O error, dev sdc, sector 0
sd 5:0:0:0: SCSI error: return code = 0x8000002
sdc: Current: sense key=0xb
ASC=0x0 ASCQ=0x0
end_request: I/O error, dev sdc, sector 0
VFS: Can't find an ext2 filesystem on dev sdc.
FAT: invalid media value (0x00)
VFS: Can't find a valid FAT filesystem on dev sdc.
VFS: Can't find an ext2 filesystem on dev sdc.

Can anyone suggest what I might try. Formatting the drive is not an option because there is valuable data on it.
 
Old 10-06-2008, 12:34 PM   #2
WorldIsNotFair
Member
 
Registered: Jun 2008
Location: Jakarta
Distribution: CentOS 5
Posts: 89

Rep: Reputation: 17
have you tried -t vfat , -t ntfs-3g, or else ?

before do anything i suggest that you find another computer first to backup your data.
 
1 members found this post helpful.
Old 10-06-2008, 02:03 PM   #3
Flailing_Novice
Member
 
Registered: Jul 2007
Distribution: Debian Etch AMD64
Posts: 48

Original Poster
Rep: Reputation: 18
Sometimes a "modprobe -r usb-storage" followed by a "modprobe usb-storage" results in the thing mounting automatically. But I don't want to do that each time.
 
1 members found this post helpful.
Old 10-06-2008, 03:24 PM   #4
Jykke
Member
 
Registered: Sep 2005
Posts: 201

Rep: Reputation: 19
To me it looks like your filesystem is corrupted? Could it be?

What filesystems did you have on the disk?, how many partitions?
For mount you need to define /dev/scd1 (here 1 standing for the partition) not just /dev/scd. Look with ls -la /dev/scd* what partitions you have? (although the fdisk -l already seems to list only /dev/scd1)

to do some fix disk stuff fsck -y /dev/scd1 for example - probably need sudo for it. You sure it was ext2? No change checking the functionality of the disk on another machine?

Oh what does dmesg say when you just plug in the HD on USB-plug?
 
1 members found this post helpful.
Old 10-06-2008, 03:52 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
You need to specify the partition
mount /dev/sdc1 /media/lacie_sdc
 
1 members found this post helpful.
Old 10-15-2008, 10:08 AM   #6
Flailing_Novice
Member
 
Registered: Jul 2007
Distribution: Debian Etch AMD64
Posts: 48

Original Poster
Rep: Reputation: 18
Thankx michaelk and Jykke, adding the 1 to indicate partition and not device was the key. I can now mount using

mount /media/lacie

or

mount /dev/sdc1

but strangely not with

mount /dev/sdc1 /media/lacie
mount: only root can do that

I'm not sure why that is, but the relavent fstab entry is
/dev/sdc1 /media/lacie auto user,rw,noauto 0 0

I didn't yet have further mount problems so hopefully there is no corruption issues.

Last edited by Flailing_Novice; 10-15-2008 at 10:10 AM.
 
1 members found this post helpful.
Old 10-15-2008, 10:15 AM   #7
Total-MAdMaN
Member
 
Registered: May 2008
Distribution: Gentoo
Posts: 306

Rep: Reputation: 34
Because you've got the entry for the drive in fstab and have specified users can mount it ("user" in the fourth column), it can be mounted by a user specifying the drive or mount point, and will be mounted to the appropriate directory. By specifying both the device and directory, it thinks you're trying to mount it to a different directory, something only the root user can do.
 
1 members found this post helpful.
Old 10-16-2008, 02:44 AM   #8
Flailing_Novice
Member
 
Registered: Jul 2007
Distribution: Debian Etch AMD64
Posts: 48

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by Total-MAdMaN View Post
Because you've got the entry for the drive in fstab and have specified users can mount it ("user" in the fourth column), it can be mounted by a user specifying the drive or mount point, and will be mounted to the appropriate directory. By specifying both the device and directory, it thinks you're trying to mount it to a different directory, something only the root user can do.
Thanks for the explanation Total-MAdMaN. This clearly exemplifies the total and absolute stupidity of computers to the extent that "it thinks" is clearly being very generous.

peace
FN
 
1 members found this post helpful.
  


Reply



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
mount: unknown filesystem type 'LVM2_member' santana Linux - Hardware 5 07-23-2021 06:28 PM
mount: unknown filesystem type 'ntfs' when trying to mount windows drive... DiZASTiX Linux - Hardware 12 09-28-2008 07:29 PM
mount:you must specify the filesystem type Aerolinux Linux - Hardware 2 02-23-2007 10:08 AM
Trying to mount cdrom and keep getting, You must specify filesystem type? M$ISBS Linux - Hardware 2 11-10-2006 04:35 PM
how to mount without the filesystem type mascon Linux - General 7 05-01-2004 05:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:27 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
Open Source Consulting | Domain Registration