LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-03-2011, 06:44 AM   #1
ayteebee
Member
 
Registered: Jul 2005
Location: Derbyshire
Distribution: Originally Suse 9.1 Professional, currently Knoppix 3.7, migrating to Slackware
Posts: 75

Rep: Reputation: 16
Success: Mounting USB Hard disks with partition table error


This was a really frustrating problem which turned out to have a really simple solution, so I'll share it with people who might be having the same struggle.

Problem

You plug in a usb hard disk and try and mount it using:

Code:
mount /dev/sda1 /media/usb
or similar. And it doesn't work, not even as root. I think it says you need to specify the filesystem type (which means it doesn't know what to do). You try:

Code:
fdisk -l
to see what is going on with the hard disk and it says something about the partitions not matching the partition table, partitions extending beyond the end of the disk, physical/logical partitions don't match up or something like that.


SOLUTION

Don't specify a partition number, just mount the whole hard disk.

For example, instead of:

Code:
mount /dev/sda1 /mount/usb
Try,

Code:
mount /dev/sda /mount/usb
I spent hours - days - hunting around for the solution! (And felt a bit humiliated when I realised how simple it was!)

PS, There used to be a "Success story" section on LQ, but I couldn't find it; if this is better in another section, please move it.

PPS, I'm on a public computer and won't have Linux access for a looong time - if anyone can copy the message that fdisk prints out to help people who are searching for it, that would be a big help.

HTH, Andy.
 
Old 03-03-2011, 07:44 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,953
Blog Entries: 54

Rep: Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733
Quote:
Originally Posted by ayteebee View Post
SOLUTION

Don't specify a partition number, just mount the whole hard disk.
As far as I've experienced this usually only works with devices that contain only one partition. The errors fdisk spits out may then be caused by vendors partitioning the disk in a less than compatible way. The easiest way to determine what the disk contains is to run 'disktype' (http://disktype.sourceforge.net/ if not in your repo).
 
  


Reply

Tags
fdisk, mount usb


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
Help! Accidentally erased the partition table on one of my Hard Disks xnomad Linux - Software 2 09-28-2010 12:53 AM
kernel unable re-read partition table on disks when i start gparted penduleum Fedora 6 04-20-2010 06:56 AM
[SOLVED] removed 2 hard drives, not /, error 'corrupt partition table' on reboot gr8scot Linux - Hardware 13 03-19-2008 12:09 AM
How to disable partition table detection for disks? Erik_FL Linux - Kernel 1 08-30-2006 10:11 PM
mounting hard disks oldforce Suse/Novell 1 03-28-2005 03:56 PM


All times are GMT -5. The time now is 11:26 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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration