LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 10-12-2011, 02:56 PM   #1
fachhoch@gmail.com
Member
 
Registered: Apr 2010
Posts: 82

Rep: Reputation: 1
disk space and access apartition


Please hlpe me understand wht is my total dis storage ,

I was said its 160GB and to find I used the command ds-h
Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb1              30G   28G  852M  98% /
/dev/sda1              99M   22M   73M  23% /boot
tmpfs                 2.0G     0  2.0G   0% /dev/shm
I can see partition /dev/sdb1 has 30 Gb and /dev/sda1 has 99m

but this is not 160Gb ? or am I missing anything?


and please tell me how to access the partition /dev/sdb1

I tried cd /dev/sdb1 but there is no such directory , please advice me.
 
Old 10-12-2011, 03:09 PM   #2
qrange
Member
 
Registered: Jul 2006
Location: Belgrade, Yugoslavia
Distribution: Debian stable, amd64
Posts: 805

Rep: Reputation: 32
hm, well /dev/sdb and /dev/sda should be two different disks. and you haven't listed the swap partition (presumably you have one).

/dev/sdb1 is your 'root' partition to access it, use:

cd /
 
Old 10-12-2011, 03:12 PM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Can you post the output of (as root):
Code:
fdisk -l
(That's lower case L)
 
Old 10-12-2011, 03:13 PM   #4
fachhoch@gmail.com
Member
 
Registered: Apr 2010
Posts: 82

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by qrange View Post
hm, well /dev/sdb and /dev/sda should be two different disks. and you haven't listed the swap partition (presumably you have one).

/dev/sdb1 is your 'root' partition to access it, use:

cd /
thanks for reply, the two disks space obviously is lesser than 160Gb am I right ?

I tried running command swapon -a ,no result does it mean there is no swap partition ?

---------- Post added 10-12-11 at 03:14 PM ----------

Quote:
Originally Posted by sycamorex View Post
Can you post the output of (as root):
Code:
fdisk -l
(That's lower case L)


Code:
Disk /dev/sda: 131 MB, 131604480 bytes
64 heads, 32 sectors/track, 125 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         102      104432   83  Linux

Disk /dev/sdb: 38.4 GB, 38477859840 bytes
255 heads, 63 sectors/track, 4678 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        3917    31463271   83  Linux
/dev/sdb2            3918        4676     6096667+   5  Extended
/dev/sdb5            3918        4676     6096636   82  Linux swap / Solaris
 
Old 10-12-2011, 03:22 PM   #5
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
Quote:
Originally Posted by fachhoch@gmail.com View Post
hlpe me understand wht is my total dis storage ,
Looks like 38477859840 bytes.

Quote:
I was said its 160GB
Who told you it is 160GB? Did they provide any evidence?

You have some kind of drive, identified as sda, that is only an eighth of one GB. I expect that is an old flash drive, but maybe it is a very old disk drive or some strange boot area in the motherboard.

You have a disk drive that seems to be about 38GB. You have about 6GB on that 38GB drive reserved for swap space. I can't tell whether that swap space is properly mounted.

It is possible for a Host Protected Area or other obscure issue to make a drive look like it is much smaller than its correct size. But I wouldn't start with a guess of some strange issue like that. I'd start with the guess that you were misinformed about the disk size.

Last edited by johnsfine; 10-12-2011 at 03:33 PM.
 
Old 10-12-2011, 03:30 PM   #6
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Yeah, as johnsfine said, it'd definitely NOT a 160GB drive.

To access /dev/sdb1, you can: cd /
Well, most of your system and your home directory is on /dev/sdb1.
To access /dev/sda1, you can: cd /boot
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
partition space and disk space usage and free don't match nsic Linux - Newbie 3 02-22-2013 01:57 PM
hard disk partitioning/I am out of space /how to increase linux space? RMLinux Red Hat 8 09-05-2008 01:33 PM
add space to / when from spare space on disk ctsiow Linux - General 4 11-07-2007 08:55 AM
Cedega "Disk space required for the installation exceeds available disk space" Solved Spewdemon LinuxQuestions.org Member Success Stories 1 10-18-2007 07:19 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 04:58 PM


All times are GMT -5. The time now is 06:24 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration