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.
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.
I know I am supposed to be to use df -h to see the space amounts for mounted disk and fdisk -l is supposed to list partitions (and does on one of my Linux systems but does not on another). I tried using parted -i but it does not produce anything. What can I use to determine how much physical hard drive space there is on a Linux server then see how much is available to acclocate. I do not know the file names of the dsk devices.
On the machine where you can't run fdisk, it's probably just not in the PATH for the user which you are trying to execute it under. Specify the full path in this case. It's probably /sbin/fdisk or /usr/sbin/fdisk.
In addition to running it as root you need to specify the device with full path, like
fdisk -l /dev/hda
or if you happen to have a SATA disk, it's usually something like
fdisk -l /dev/sda
it doesn't seem to find the devices if you just type the name.
EDIT: 'hda' stands for 'harddisk a', usually your primary harddisk. Following that, your secondary harddisk (if any) is probably 'hdb'; partitions are indicated with numbers like 'hda1' for the first partition of your primary harddisk, 'hda2' for the second and so on. On SATA devices, if I'm not mistaken, it's similarily 'sda', 'sdb' and o on.
Entering fdisk -l /dev/hda resulted in the following:
"Disk /dev/hda: 72 MB, 72022016 bytes
255 heads, 63 sectors/track, 8 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/hda doesn't contain a valid partition table
If I enter the command using /dev/hdb or any other leter or even using sda it simply goes back to the command prompt.
The server has four 36.4 GB physical drives.
Here are the results from the mount caommand:
/dev/VG00/lvol0 on / type ext3 (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/cciss/c0d0p1 on /boot type ext3 (rw)
/dev/VG00/lvol5 on /home type ext3 (rw)
/dev/VG00/lvol4 on /opt type ext3 (rw)
none on /dev/shm type tmpfs (rw)
/dev/hcivg/lvhci on /quovadx type ext3 (rw)
/dev/VG00/lvol1 on /tmp type ext3 (rw)
/dev/VG00/lvol2 on /usr type ext3 (rw)
/dev/VG00/lvol3 on /var type ext3 (rw)
/dev/cdrom on /mnt/cdrom type iso9660 (ro,nosuid,nodev,user=hci)