LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-17-2006, 09:37 PM   #1
sanderso
LQ Newbie
 
Registered: Sep 2006
Location: Chicago
Posts: 7

Rep: Reputation: 0
100GB USB HD appears as 16MB


Hi All (first time poster)

Using Slackware v10.2 on an older box...and am sort of a newbie. Have attached a Hitachi 100GB external USB HD. Then:

1) ran modprobe usb-storage
2) ran lsmod to confirm that usb-storage is present
3) cfdisk /dev/sda shows a partition named sda1 with 100GB of free space.
4) mounted the drive: mount /dev/sda1 /root/big (saved a test file)
5) df shows /dev/sda1 with only 16,334Kb

Capacity of the new HD partition seems to have shrunk from 100GB to 16MB. What am I missing?

Thanks in advance.

sanderso
 
Old 10-17-2006, 11:01 PM   #2
cereal83
Member
 
Registered: Feb 2004
Location: Canada
Distribution: Slackware
Posts: 479

Rep: Reputation: 30
Ummm are you sure there isn't a jumper on the HD that limits it to 16 GB of space? Other then that, I have no clue
 
Old 10-18-2006, 01:36 AM   #3
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Depending on the age of the machine that external drive may just not work. You might try partitioning it, and formatting, or erase all the files on the drive. How big is your test file?
 
Old 10-18-2006, 05:30 AM   #4
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
Could be anything , even ur bios , older bios cant detect larger harddisks
 
Old 10-18-2006, 10:07 AM   #5
sanderso
LQ Newbie
 
Registered: Sep 2006
Location: Chicago
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks to all for your input/thoughts.

The machine & bios isn't THAT old...the IDE HD currently in the box is 60B (if I recall correctly...am not at the box as I type this), so I would think that if it were a bios problem, it would limit the new drive to something in the 60GB size, or maybe the 16GB size not 16MB size (that's MB not GB).

The test file was very small...as in less than 1K. Of note however, is that after mounting /root/big that there were a number of files (maybe 50+ files and several subdirectories) already in the folder. If fact, df showed that only 70+% of /dev/sda1 was available. Since I'm sort of new at all this, I figured these were system files which are always present in the root of a mounted directory.

sanderso
 
Old 10-19-2006, 03:19 AM   #6
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
That's a little weird if there are files on a new hard drive. There normally aren't any files on a new drive. You may try partitioning and formatting the drive. Linux's all have a partition and format tool. Or, you may prefer to use cfdisk to partition, and mk2fs to make an ext3 file system, which is formatting. If the drive isn't new, from a retailer, someone might have dd'ed a flash memory card to it which would make the drive the same size as the flash memory card. In this case you would just repartition and format.
 
Old 10-19-2006, 08:10 AM   #7
sanderso
LQ Newbie
 
Registered: Sep 2006
Location: Chicago
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by AwesomeMachine
That's a little weird if there are files on a new hard drive. There normally aren't any files on a new drive. You may try partitioning and formatting the drive. Linux's all have a partition and format tool. Or, you may prefer to use cfdisk to partition, and mk2fs to make an ext3 file system, which is formatting. If the drive isn't new, from a retailer, someone might have dd'ed a flash memory card to it which would make the drive the same size as the flash memory card. In this case you would just repartition and format.
The drive is a preformated HD designed to be an upgrade for a WinDoze laptop. I suppose it's very likely that the files were previously put on the HD given it's purpose.

I think the step I haven't taken is to do mk2fs to format the partition. The partition definition seems to ID the full size of the disk correctly, but at no time had I actually done a format. I'll try formating the partition using mk2fs...then provide feedback to this thread.

Thanks again for your help.

sanderso
 
Old 10-19-2006, 09:44 AM   #8
tgm4883
Member
 
Registered: Mar 2006
Posts: 39

Rep: Reputation: 15
I dont know if you already formatted and repartitioned, and maybe you have already thought of this, but I thought I would add it anyway.

Perhaps it has more than one partition. Sometimes there is a partition on their that runs software associated with the drive (drivetools) and a second partition is the free space on the drive. Maybe you need to mount /dev/sda2
 
Old 10-21-2006, 05:55 PM   #9
sanderso
LQ Newbie
 
Registered: Sep 2006
Location: Chicago
Posts: 7

Original Poster
Rep: Reputation: 0
Was able to format /dev/sda1 using mke2fs ('e' omitted in thread above). Mounted the drive to /root/big. df shows 96GB. Success!
Thanks all!
sanderso
 
  


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
Help..I bought a 100gb hdd and cant get it going. expat Linux - Newbie 50 10-22-2006 04:07 PM
USB Maxtor 100GB freezes system newtuxuser Linux - Hardware 4 06-06-2006 08:25 AM
annoying sound in 100GB TOSHIBA MK1031GAS HDD towsonu2003 Linux - Hardware 7 05-14-2006 11:26 PM
Password appears not being saved (using USB drive) Wieger DNALinux 3 02-26-2006 07:24 AM
USB conflict appears to be crashing SuSE 8.2 install xxvm1 Linux - Newbie 1 07-06-2004 08:53 PM

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

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