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
|
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 |
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 |
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 |
df -h will show hdd space.
|
Im curious. When I do 'df -h' I get this:
Code:
Filesystem Size Used Avail Use% Mounted on |
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. |
/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 |
I am getting this even when i try mkdir /dev/sdb1
[waheed@dynexlinux waheed]$ /etc/fstab bash: /etc/fstab: Permission denied [waheed@dynexlinux waheed]$ |
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. |
Quote:
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 |
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: |
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. |
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. |