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.
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?
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
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?
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.
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.