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.
I'm a Linux newbie, and have just installed slackware running kernel 2.4.22.
After doing the initial installation, I fished out two old hard-drives, and added them to my PC. They were correctly picked up by my bios, and I was able to partition, format, and mount them in Linux. They are on my secondary ide slot, if that matters. They each have a single partition and are on /dev/hdb1 and /dev/hdc1 respectively.
The only problem is... I can't see them when I run the "df" command (I see all my original partitions on /dev/hdaX, no problem there). I can see them from the root, using "ls -l", I can cd there and "touch" a file, but I can't see them in "df". I googled this as best I could, and found some references to /etc/mtab, so I edited that. The drives/partitions now show up, but the information seems incorrect, e.g. both drives show the same amount of space, even though they are different sizes.
I also found out about /proc/mounts, and sort of got caught up in linked and read-protected files, and wasn't sure if I should go messing with that.
Is there some way to remount these file systems correctly, and update mtab, and get something more reassuring out of "df"? I've attached some output below
Thanks...
root:/etc > fdisk -l
Disk /dev/hdc: 1624 MB, 1624670208 bytes
64 heads, 63 sectors/track, 787 cylinders
Units = cylinders of 4032 * 512 = 2064384 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 1 787 1586560+ 83 Linux
Disk /dev/hda: 13.0 GB, 13020069888 bytes
255 heads, 63 sectors/track, 1582 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 12 96358+ 83 Linux
/dev/hda2 13 1582 12611025 5 Extended
/dev/hda5 13 134 979933+ 82 Linux swap
/dev/hda6 135 438 2441848+ 83 Linux
/dev/hda7 439 742 2441848+ 83 Linux
/dev/hda8 743 1046 2441848+ 83 Linux
/dev/hda9 1047 1350 2441848+ 83 Linux
/dev/hda10 1461 1582 979933+ 83 Linux
Disk /dev/hdb: 1281 MB, 1281982464 bytes
64 heads, 63 sectors/track, 621 cylinders
Units = cylinders of 4032 * 512 = 2064384 bytes
I was sure I had mounted those file systems, however, I went back and ran the mount command, and now everything looks fine. I'm thinking must have done something goofy and missed the mount commands the first time around.
Anyway, now df does what I expect, and mtab reflects these file systems (this after I went back and took out the manual changes I described earlier).
I had a look at fstab, and it does NOT contain hdab1 and hdac1... is that ok, or do I have to do something else?
It is ok but adding an entry in the fstab will automatically mount the partitions at boot. It will also setup for a fsck check at boot too. See man pages for mount and fstab for options.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.