Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 748
  • Last Modified:

Linux fdisk

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
jskfan
Asked:
jskfan
  • 5
  • 3
  • 2
  • +2
6 Solutions
 
farzanjCommented:
/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
 
Dave GouldOnsite SupportCommented:
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
 
jskfanAuthor Commented:
what do they mean by Linux LVM, I have seen ext3,ext4,LVM…
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
jskfanAuthor Commented:
in Ubuntu I see Linux and solaris...
ubuntu
0
 
farzanjCommented:
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
 
jskfanAuthor Commented:
Thank you…
so Linux has the following partitions:
LVM it sounds  like RAID
Ext3 ,Ext4
Linux
0
 
SandyCommented:
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
 
jskfanAuthor Commented:
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
 
Dave GouldOnsite SupportCommented:
0
 
SandyCommented:
Try the links trappa01 gien :)

TY/SA
0
 
Dave GouldOnsite SupportCommented:
gien ?
0
 
skullnobrainsCommented:
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
 
jskfanAuthor Commented:
Thank you Guys!
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

  • 5
  • 3
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now