LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 02-19-2009, 10:28 AM   #1
Matey
Member
 
Registered: Jan 2009
Posts: 114

Rep: Reputation: 17
Question Partition (fdisk) Help!?


Hello All;
(If U dont want to read all the stuff below, How can I get complete partition info , sizes in MB or GB and mount-points in linux? so I can duplicate them on another machine)? Thnx!


OK (and as Paul Harvey used to say; "Here's the rest of the story"):

I am re-installing Ubuntu Linux on this server which was setup by an unknown person (to me).
I have this other server (A) which is off site and I want to make this server here (B) a backup. A and B are similar in HDDs configs. ,
So I want to know:

1-How the partitions were setup on server A?
2-What are A's Mount Points and Sizes of Partitions?

I do have ssh access to A.
When I do an fdisk -l I see sda1, 2 and 3
But that does not tell me how big the partitions are and where they were mounted at? (I know / is a must but what about the rest like /home or whatever?).

Oh and when I do a df -h I see the sizes and some folder names but I do not think those are mount points?!
like /var/run? I dont remember mounting var/run on my own machine ever?



Thank you in advance for any help.
 
Old 02-19-2009, 11:01 AM   #2
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
To find out what is currently actually mounted, just use the mount command without anything following. This will tell you how things you see in "df -h" actually are mounted. Your looking for things that relate to physical devices like /dev/sda2 or /dev/sdb2. You can always do "mount | grep /dev/" to cut it down to physical devices. Just remember that things like CD-ROMs, USB sticks and other such devices may also be listed.
 
Old 02-19-2009, 11:32 AM   #3
Matey
Member
 
Registered: Jan 2009
Posts: 114

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by r3sistance View Post
To find out what is currently actually mounted, just use the mount command without anything following. This will tell you how things you see in "df -h" actually are mounted. Your looking for things that relate to physical devices like /dev/sda2 or /dev/sdb2. You can always do "mount | grep /dev/" to cut it down to physical devices. Just remember that things like CD-ROMs, USB sticks and other such devices may also be listed.
Oh man (youre the guy with a cool name) hey thanks a lot, I used mount -l and I got too much stuff in return (like you said) a lot of devices which I am not concerned with right now, but I appreciate the grep switch. That works just great.

Thank You!

Regards;
 
  


Reply



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
different partition tables from fdisk and df dark* Slackware 8 02-15-2007 10:26 AM
Changing Partition Id in fdisk DaVenom Linux - General 3 09-06-2005 08:45 AM
FDisk Partition for DSL totalshredder Linux - Newbie 1 01-03-2005 05:03 PM
How do I partition on fdisk? Sa3atsky Slackware 4 09-10-2004 06:47 PM
fdisk partition blackzone Linux - Newbie 6 08-22-2004 07:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:04 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