how many disks does my system have and how mcuh space does each have?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
There is less than 24 hours left to vote in the 2015 LinuxQuestions.org Members Choice Awards. Click here to go to the polls. Vote now and make sure your voice is heard!
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
All the disks you got will be listed under /etc/fstab Anything that isn't in there won't be listed because the kernel can't see it regardless of if it is physically there or not.
To find out what you got in your box look at your BIOS.
fstab only shows the partitions you set up to run linux or run under linux...
EDIT: and here I go trying to contradict a guru, well, I guess I might be wrong but my fstab only shows the drives I chose to be in there(it didn't show my ntfs ones till I added them)
use cfdisk...it shows it very cleanly, but only one drive. You can probably use an argument to get it to display other drives though(don't know)
guess and check with hda, hdb, hdc, sda, sdb, sdc if you can choose the drive to view.
If your distro doesn't have cfdisk you need to shank them
Last edited by Onemessedupjedi; 10-24-2003 at 06:53 PM.
fdisk -l shows all partitions, usually mountable by a complex 'mount' command
fstab shows all partitions mountable by a simple 'mount' command - it supplies the arguments (and more) that you'd have to supply to the command line if the partition *wasn't* in fstab
mtab shows all partitions currently mounted.
fdisk is an app giving a direct report, fstab is a file that you create (or your install tries to do for you), and mtab is an automatically generated file. 'mount' with no arguments displays mtab.
cfdisk's nice enough but fdisk is not so bad - and for a simple report, fdisk -l is better than monkeying with menus.
That being said, I have no idea how networking works - I run standalone, so I don't know if there are other issues with remote filesystems.
Remotely - nice!
Have a look at the kernel messages in /var/log and see what that says at the last boot.
Look for something like this:
Oct 24 20:08:23 localhost kernel: hda: SAMSUNG SV4002H, ATA DISK drive
Oct 24 20:08:23 localhost kernel: hdb: Maxtor 2F040L0, ATA DISK drive
Oct 24 20:08:23 localhost kernel: hdc: HL-DT-ST GCE-8320B, ATAPI CD/DVD-ROM drive
About the fstab sure - thats what I was blabbering about - anything that isn't in there won't be seen by the kernel and because of that any commands will not tell you anything about it besides something like 'unable to open device'.
You could try cd /dev and ls but I got :
a) no idea if that shows devices that are detected by the kernel or according to fstab in that respect and
b) it will only help you anything if you use devfs on that machine