LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how do i find out what space my hd is (https://www.linuxquestions.org/questions/linux-general-1/how-do-i-find-out-what-space-my-hd-is-63675/)

waheedrafiq 06-04-2003 03:31 PM

how do i find out what space my hd is
 
OK guys i have install linux mandrake version 9 .1 on my workstation the only thing is when installing it said not enough hd space now i am sure i have 20 to 10 gig hard disk space , how can i in linux find out what space do i have and also if i have any partition drives like ntfs how can i find out what space its has

Tinkster 06-04-2003 03:35 PM

fdisk -l /dev/hd<x>

<x> = a, b, c, d .... whichever your hard-drive is :)
a=primary master
b=primary slave
c=secondary master
d=secondary slave

If you want free space per mountpoint:
cd /
df -m

Cheers,
Tink

waheedrafiq 06-04-2003 03:43 PM

wow man A that was fast B if only MS users could see what we could see

i have another question to ask i seem have /dev/sdb1 and /dev/sdba3 i want to mount dev/sdba3 to my local drive so i could have more space how would i do that waheed

Tinkster 06-04-2003 04:05 PM

Kind of depends on the file system on
those SCSI devices ...

You have to make a mount point
mkdir /mnt/sd1
mkdir /mnt/sd2
(just examples)

and then edit your /etc/fstab
and add something like for both partitions:
/dev/sdb1 /mnt/sd1 <filesystem> defaults 1 1

To get more info on that do
man fstab..

You could use auto instead of <filesystem> if
your kernel has automounter support...

Cheers,
Tink

php 06-04-2003 04:34 PM

df -h will show hdd space.

LizardMan 06-04-2003 04:44 PM

Im curious. When I do 'df -h' I get this:

Code:

Filesystem            Size  Used Avail Use% Mounted on
/dev/hdb3              28G  4.4G  24G  16% /
/dev/hdb1            204M  39M  166M  19% /boot
/dev/hde1            112G  77G  36G  69% /mnt/hde1
shmfs                252M    0  252M  0% /dev/shm

I know hdb3 is my root, b1 is my boot, and e1 is my vfat drive I use to share files between Linux and WinXP, but what is shmfs? Is that my swap partition?

michaelk 06-04-2003 05:02 PM

shmfs is a shared memory file system that resides in swap which is about all I know.

To see location of your swap look at your /etc/fstab file.

Tinkster 06-04-2003 05:05 PM

/dev/shm is -if I remember correctly- shared
memory ... I haven't ever seen it mounted, though :)

Is that -by any chance- SuSE specific?

Cheers,
Tink

waheedrafiq 06-05-2003 12:48 PM

I am getting this even when i try mkdir /dev/sdb1
[waheed@dynexlinux waheed]$ /etc/fstab
bash: /etc/fstab: Permission denied
[waheed@dynexlinux waheed]$

michaelk 06-05-2003 02:01 PM

Can't create a directory /dev since it already exists.

Its
mkdir /mnt/sdb1

Plus you need to be root to edit anything in /etc directory.

Tinkster 06-05-2003 02:36 PM

Quote:

Originally posted by waheedrafiq
I am getting this even when i try mkdir /dev/sdb1
[waheed@dynexlinux waheed]$ /etc/fstab
bash: /etc/fstab: Permission denied
[waheed@dynexlinux waheed]$

It should already be there :)

You were meant to make the mountpoint ...

/mnt/sdb1

but you need to be root for both that and
modifying fstab ...

su -
and then try
mkdir /mnt/sdb1
emacs /etc/fstab

Cheers,
Tink

waheedrafiq 06-07-2003 03:49 PM

guy's you are chatting to someone who has no idea how to even navigate around linux desktop ,


i need step by step instruction please , i have no idea of what you guys are even chatting about what is fstab and root , where can i find this root and what does it look like.


:jawa:

emetib 06-07-2003 05:32 PM

root is god on a linux system. he/she has all of the power in the world. if you don't believe me try 'rm -rf /' as root and you'll see. actually don't. that would kill your whole system and you would be screwed.

ok. get into a console. kicker (start menu), terminals, choose.

at the prompt $su

now your root. now what you have to do is send more info. drop back you results from when you did 'df', and then at the console prompt 'cat /etc/fstab' and drop that back also. we'll tell you how to get it set up if you can.

cheers.

waheedrafiq 06-08-2003 04:06 PM

ok i shall do this and get back to you guys on this give me a day or so please as linux is massive , and please in the name of Hackers don't trash my system .

:):jawa:


All times are GMT -5. The time now is 12:43 AM.