View previous topic :: View next topic |
Author |
Message |
NegaBenji Tux's lil' helper
Joined: 08 Jun 2004 Posts: 90
|
Posted: Thu Aug 19, 2004 11:37 pm Post subject: Really basic question - info on available partitions? |
|
|
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? )
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 |
|
|
Viperskin n00b
Joined: 10 Aug 2004 Posts: 59 Location: Wurtsboro, NY, US
|
Posted: Fri Aug 20, 2004 12:58 am Post subject: Couple of things. |
|
|
you can do a
Now you should see all the partitions/Drives you have.
To get partition sizes, fdisk would work, I reccomend
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! _________________ 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 |
|
|
NegaBenji Tux's lil' helper
Joined: 08 Jun 2004 Posts: 90
|
Posted: Fri Aug 20, 2004 1:32 am Post subject: |
|
|
Well, you can also do
to do it in one line (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 |
|
|
|
|
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
|
|