LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-26-2006, 04:07 PM   #1
Iltbreg
Member
 
Registered: Feb 2006
Location: Canada
Distribution: Fedora, Mandriva
Posts: 191

Rep: Reputation: 31
Can't mount my USB 2.0 hard drive


Salutation!

I've been a user of linux for some time now so I'm not a total newbie but I'm not an expert either. However, I'm quite new to forums.

Anyway, I have a problem with a USB 2.0 hard drive 40Gb that I just bought. My computer doesn't want to mount it. I have 4 other USB sticks that are automatically mounted no problem. So I tried the logical thing to do which is mounting the device manually. I tried:

# mount /dev/sda1 /media/usbdisk

after creating the /media/usbdisk directory, but I get this message:

special device /dev/sda1 does not exist

But the fact is that the computer regonises my HD since when I start the Hardware Browser, it identifies it as:

Drive /dev/sda (Geom: 4864/255/63) (Model: FUJITSU MHV2040AH)

When I do the following command: dmesg |grep sda

here's what I get:



SCSI device sda: 78140160 512-byte hdwr sectors (40008 MB)
sda: assuming drive cache: write through
SCSI device sda: 78140160 512-byte hdwr sectors (40008 MB)
sda: assuming drive cache: write through
sda: unknown partition table
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 78140160 512-byte hdwr sectors (40008 MB)
sda: assuming drive cache: write through
SCSI device sda: 78140160 512-byte hdwr sectors (40008 MB)
sda: assuming drive cache: write through
sda: unknown partition table
Attached scsi disk sda at scsi1, channel 0, id 0, lun 0
SCSI device sda: 2007040 512-byte hdwr sectors (1028 MB)
sda: Write Protect is off
sda: Mode Sense: 23 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 2007040 512-byte hdwr sectors (1028 MB)
sda: Write Protect is off
sda: Mode Sense: 23 00 00 00
sda: assuming drive cache: write through
sda: sda1
Attached scsi removable disk sda at scsi2, channel 0, id 0, lun 0
SELinux: initialized (dev sda1, type vfat), uses genfs_contexts
SCSI device sda: 78140160 512-byte hdwr sectors (40008 MB)
sda: assuming drive cache: write through
SCSI device sda: 78140160 512-byte hdwr sectors (40008 MB)
sda: assuming drive cache: write through
sda: unknown partition table
Attached scsi disk sda at scsi3, channel 0, id 0, lun 0
SCSI device sda: 78140160 512-byte hdwr sectors (40008 MB)
sda: assuming drive cache: write through
SCSI device sda: 78140160 512-byte hdwr sectors (40008 MB)
sda: assuming drive cache: write through
sda: unknown partition table
Attached scsi disk sda at scsi4, channel 0, id 0, lun 0
VFS: Can't find a valid FAT filesystem on dev sda.
SCSI device sda: 78140160 512-byte hdwr sectors (40008 MB)
sda: assuming drive cache: write through
SCSI device sda: 78140160 512-byte hdwr sectors (40008 MB)
sda: assuming drive cache: write through
sda: unknown partition table
Attached scsi disk sda at scsi5, channel 0, id 0, lun 0


I've been trying to plug and unplug it a couple of time without success and I've tried one of my sticks to be sure that everything was alright.

I work with fedora core 3 (kernel: 2.6.12-1.1381_FC3). I've been looking around for the solution but everything I've tried so far as failed.

Can anybody help?
 
Old 02-27-2006, 07:42 AM   #2
Iltbreg
Member
 
Registered: Feb 2006
Location: Canada
Distribution: Fedora, Mandriva
Posts: 191

Original Poster
Rep: Reputation: 31
partitioning external hard drive

OK.

Looking around, I found out that I need to partition the disk using
fdisk /dev/sda and then format with mkfs.ext3 /dev/sda1

But there's something wrong because when I partition the changes I make don't stay.


Here's what I do:


Quote:
[root@localhost ~]# fdisk /dev/sda
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.


The number of cylinders for this disk is set to 38154.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): p

Disk /dev/sda: 40.0 GB, 40007761920 bytes
64 heads, 32 sectors/track, 38154 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Device Boot Start End Blocks Id System


Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-38154, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-38154, default 38154): 38154


Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 83

Command (m for help): p

Disk /dev/sda: 40.0 GB, 40007761920 bytes
64 heads, 32 sectors/track, 38154 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 38154 39069680 83 Linux


Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
So it is obviously creating a /dev/sda1 partition at this stage. However, when I try to format I get this:

Quote:
[root@localhost ~]# mkfs.ext3 /dev/sda1
mke2fs 1.38 (30-Jun-2005)
Could not stat /dev/sda1 --- No such file or directory

The device apparently does not exist; did you specify it correctly?
And when I do fdisk /dev/sda again, the /dev/sda1 partition is not there.

Any idea anyone?
 
Old 03-01-2006, 01:19 PM   #3
Iltbreg
Member
 
Registered: Feb 2006
Location: Canada
Distribution: Fedora, Mandriva
Posts: 191

Original Poster
Rep: Reputation: 31
OK, forget everything I said. Tried it on another computer that runs with Unbutu and got the same result. Then I discovered that even windoze xp can't make the thing work. Probably bought a defective unit.
 
Old 03-01-2006, 11:17 PM   #4
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Welcome to LQ lltbreg and thanks for posting back with the update. Initially it sounded like the drive just needed to be formatted, but if you tried it with 3 different systems and none of them recognized it, I'd agree that it could be defective. Good luck with it
 
Old 03-02-2006, 03:55 PM   #5
Iltbreg
Member
 
Registered: Feb 2006
Location: Canada
Distribution: Fedora, Mandriva
Posts: 191

Original Poster
Rep: Reputation: 31
Ploblem solved!

Thank you!

And yes. The problem was a defective unit. I had it changed and my new drive works like a charm. It even automouts so no problem anymore.
 
  


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
How to mount usb hard drive NalinA Linux - Newbie 1 10-26-2005 10:07 PM
usb mount hard drive rpetrenko SUSE / openSUSE 2 10-07-2005 12:49 AM
I can mount a usb hard drive fiacobelli Linux - Hardware 3 07-06-2005 01:52 PM
How do I mount an USB hard Drive? nandy70 Linux - Newbie 1 11-20-2003 12:29 PM
mount usb module then mount usb hard drive guanyu Linux - Hardware 1 10-08-2003 11:50 AM

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

All times are GMT -5. The time now is 04:48 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