Solved

Linux fdisk

Posted on 2014-02-27
13
633 Views
Last Modified: 2014-03-14
in the screenshot below regarding fdisk command, I see dev/sda and dev/sdb , I also see dev/sda1 and dev/sda2.

I wonder if someone can explain the meaning of the display.

Thank you

fdisk
0
Comment
Question by:jskfan
  • 5
  • 3
  • 2
  • +2
13 Comments
 
LVL 31

Assisted Solution

by:farzanj
farzanj earned 167 total points
ID: 39892301
/dev/sda  is one device  -- like a drive
/dev/sda1 or /dev/sda2 refer to the partitions on that device

It cannot read the partition table of /dev/sdb device.  It may not be partitioned or partitioned in a non -Linux system, empty, etc.

Also /dev/sda1 is the boot partition.  /dev/sda2 is used by LVM
0
 
LVL 5

Assisted Solution

by:Dave Gould
Dave Gould earned 166 total points
ID: 39892338
sda is a physical disk of 1044 cylinders. It has been partitioned into 2 partitions.
sda1 is a partition from cylinder 1 to 13
sda2 is a partition from 14 to the end

the id 83 means that it is a linux system disk and 8e means that it is used for LVM (volume manager)

sdb is another physical disk of 261 cylinders but it has not been partitioned or the linux machine cannot recognize the disk type
0
 

Author Comment

by:jskfan
ID: 39892394
what do they mean by Linux LVM, I have seen ext3,ext4,LVM…
0
 

Author Comment

by:jskfan
ID: 39892405
in Ubuntu I see Linux and solaris...
ubuntu
0
 
LVL 31

Assisted Solution

by:farzanj
farzanj earned 167 total points
ID: 39892423
LVM means logical volumes.  It is a way to keep very flexible partitions.  You can change their size very easily and a logical volume can span multiple devices as well.

Ubuntu is showing Linux swap, which is a supplementary area for RAM.

You can google these concepts.

ext3 and ext4 are Linux file systems, like in Window we have FAT and NTFS, etc.
0
 

Author Comment

by:jskfan
ID: 39892609
Thank you…
so Linux has the following partitions:
LVM it sounds  like RAID
Ext3 ,Ext4
Linux
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 13

Assisted Solution

by:Sandy
Sandy earned 83 total points
ID: 39892802
Partitions are something which are usually not resized, Volume are somthing which can be re-sized..

which fdisk you created partitions then with LVM and RAID you create volumes and metadevices.

on these partitions/volumes/metadevices you create filesystem by formatting these raw block device with ext2/3/4 swap etc....

TY/SA
0
 

Author Comment

by:jskfan
ID: 39893629
Any link that explains disk partitions and the commands related to disks and volumes…?

Fdisk and Fd are already confusing to me, there might be more other commands that pitch in and are used in Disk world of linux
0
 
LVL 5

Assisted Solution

by:Dave Gould
Dave Gould earned 166 total points
ID: 39894010
0
 
LVL 13

Expert Comment

by:Sandy
ID: 39894014
Try the links trappa01 gien :)

TY/SA
0
 
LVL 5

Expert Comment

by:Dave Gould
ID: 39894046
gien ?
0
 
LVL 26

Accepted Solution

by:
skullnobrains earned 84 total points
ID: 39896951
Thank you…
so Linux has the following partitions:
LVM it sounds  like RAID
Ext3 ,Ext4
Linux

no
a disk contains volumes that are shown in fdisk. volume types include
linux swap
linux
LVM (which will host other volumes, yes it can do raid)
...

note that the same volumes will be visible in any OS with similar information (obviously LVM volumes will need LVM to be available on your OS)

on a volume, you can install filesystems such as
ext2
ext3
ext4
reiserfs
xfs
...


in Ubuntu I see Linux and solaris...

not really. partition types have been assigned ids a long time ago.
there happens to be a conflict between the number used by old solaris installs and linux swap

you'll find the list of registered partition types easily by googling for "partiton types"

note that installing a fat filesystem in a partition with a solaris type will work. the information is only declarative and such settings might only confuse some boot loaders. you don't even have to partition a disk at all : it is perfectly workable to directly install a filesystem on a physical disk with no partition layer

--

note that all of this information is not linux-specific in any way. this is just the way pc computers and derivatives work.
0
 

Author Closing Comment

by:jskfan
ID: 39930072
Thank you Guys!
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now