Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Really basic question - info on available partitions?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
NegaBenji
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jun 2004
Posts: 90

PostPosted: Thu Aug 19, 2004 11:37 pm    Post subject: Really basic question - info on available partitions? Reply with quote

I have a drive split into a bunch of partitions (hde) and I want to mount one of them, except I don't know which partition it is. It's the biggest one, so I need a way of seeing the sizes of available partitions, preferably without having to mount them to do so. (I could have done that, and had what I wanted to do finished 15 minutes ago, but I won't learn anything that way right? :D)

As far as I can tell df only works on mounted filesystems (my swap partition isn't mentioned in there, is that normal?) and I've just remembered fdisk will give me the information I'm looking for, but is there any other way to do it?

(Sorry if this isn't the right forum by the way)
Back to top
View user's profile Send private message
Viperskin
n00b
n00b


Joined: 10 Aug 2004
Posts: 59
Location: Wurtsboro, NY, US

PostPosted: Fri Aug 20, 2004 12:58 am    Post subject: Couple of things. Reply with quote

you can do a
Code:

cd /etc
more fstab


Now you should see all the partitions/Drives you have.

To get partition sizes, fdisk would work, I reccomend
Code:
fdisk -l

This shows disk partition sizes for all drives.

df shows free space on drives that are mounted.

Hope this helps. I am a n00b myself, so I am sure someone else has some good info out there! :wink:
_________________
Viperskin
---------------
Gentoo-2.6.7-r12 on a homebuilt hot rod
Gentoo-2.6.10-r6 on Dell Dimension L550r
Registered Linux user #294125
Get Registered! Click Here!!
Back to top
View user's profile Send private message
NegaBenji
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jun 2004
Posts: 90

PostPosted: Fri Aug 20, 2004 1:32 am    Post subject: Reply with quote

Well, you can also do
Code:
 more /etc/fstab

to do it in one line :D (although I'm a less fan myself).

But I think your fstab only gives you the same information you'd get from running mount, and you'd need df to see the actual partition sizes... but I did run fstab -l in the end, and I guess root is the only user who'd need to see what's connected... eh, works for me :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum