Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi! I'm trying to get a USB hard drive to work in Linux. It's a Transcend 20 GB model. The drive is recognized and I can read/write files to it, but Linux underestimates the capacity and this is really annoying! It's a single, FAT32 partition and it works fine in Windows.
all replies gratefully received.
thanks,
Richard
Here's the output from dmesg:
Vendor: StoreJet Model: StoreJet Rev: tor
Type: Direct-Access ANSI SCSI revision: 02
SCSI device sdb: 39069824 512-byte hdwr sectors (20004 MB)
sdb: Write Protect is off
sdb: Mode Sense: 03 00 00 00
sdb: assuming drive cache: write through
sdb:<6>Device sdb not ready.
end_request: I/O error, dev sdb, sector 0
Buffer I/O error on device sdb, logical block 0
unable to read partition table
Attached scsi removable disk sdb at scsi6, channel 0, id 0, lun 0
USB Mass Storage device found at 5
usb 1-6: USB disconnect, address 5
usb 1-5: new high speed USB device using address 6
scsi7 : SCSI emulation for USB Mass Storage devices
What exactly is your problem?
I guess you are able to mount your HDD in linux.
From the output you present it looks like linux gets the HDD size perfectly.
What exactly is your problem?
I guess you are able to mount your HDD in linux.
From the output you present it looks like linux gets the HDD size perfectly.
So where do the problems start?
The problem is that linux thinks the drive is full! But it's not! :-(
I asked the output of "fdisk -l" and you have tried to do something like "fdisk -l /dev/sdb1" !!
/dev/sdb1 is the first partition on /dev/sdb and hence does not contain a partition table nor MBR !! If it is not clear to you, /dev/sdb is the device file that represents the entire disk and /dev/sdb1, /dev/sdb2... stand for partitions 1, 2... etc.
Either, try to get the output of "fdisk -l" or "fdisk -l /dev/sdb" and post the output here.
Running "fdisk -l /media/usbdisk1" gets you nothing as /media/usbdisk1 is not a device special file !! It is a mountpoint where /dev/sdb1 should be mounted if that is the way your system is configured.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.