LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-04-2003, 03:31 PM   #1
waheedrafiq
Member
 
Registered: Oct 2002
Posts: 84

Rep: Reputation: 15
Unhappy 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
 
Old 06-04-2003, 03:35 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 06-04-2003, 03:43 PM   #3
waheedrafiq
Member
 
Registered: Oct 2002
Posts: 84

Original Poster
Rep: Reputation: 15
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
 
Old 06-04-2003, 04:05 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 06-04-2003, 04:34 PM   #5
php
Member
 
Registered: Jun 2001
Location: USA
Distribution: Slackware
Posts: 827

Rep: Reputation: 30
df -h will show hdd space.
 
Old 06-04-2003, 04:44 PM   #6
LizardMan
Member
 
Registered: Jun 2003
Location: California, USA
Distribution: Zenwalk & Slackware
Posts: 42

Rep: Reputation: 15
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?
 
Old 06-04-2003, 05:02 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,675

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
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.

Last edited by michaelk; 06-04-2003 at 05:07 PM.
 
Old 06-04-2003, 05:05 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
/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
 
Old 06-05-2003, 12:48 PM   #9
waheedrafiq
Member
 
Registered: Oct 2002
Posts: 84

Original Poster
Rep: Reputation: 15
I am getting this even when i try mkdir /dev/sdb1
[waheed@dynexlinux waheed]$ /etc/fstab
bash: /etc/fstab: Permission denied
[waheed@dynexlinux waheed]$
 
Old 06-05-2003, 02:01 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,675

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
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.
 
Old 06-05-2003, 02:36 PM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
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
 
Old 06-07-2003, 03:49 PM   #12
waheedrafiq
Member
 
Registered: Oct 2002
Posts: 84

Original Poster
Rep: Reputation: 15
Unhappy

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.


 
Old 06-07-2003, 05:32 PM   #13
emetib
Member
 
Registered: Feb 2003
Posts: 484

Rep: Reputation: 33
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.
 
Old 06-08-2003, 04:06 PM   #14
waheedrafiq
Member
 
Registered: Oct 2002
Posts: 84

Original Poster
Rep: Reputation: 15
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 .

 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
best way to find out what is taking up the bulk of your hard drive space? dr_zayus69 Linux - Software 2 06-30-2005 07:51 AM
how to find directories with a space in it :P ToBe Linux - General 4 01-05-2005 01:10 PM
How to find free space available in media praveenmohan Solaris / OpenSolaris 2 11-28-2003 07:10 AM
Where can I find a simple tutorial on quota (limit capacity of disk space of a user)? George2 Linux - Software 5 11-04-2003 08:56 AM
How do i find out how much disk space i have Fathonkey Linux - General 5 06-07-2003 03:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration