[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: FDisk Help



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Jan 07, 2016 at 08:29:46AM +0100, Sven Hartge wrote:
> Steve Matzura <sm@noisynotes.com> wrote:
> 
> > I have three physical drives in my system--/dev/sda is presumably my
> > boot drive, which shows up as six devices in /dev:
> > /dev/sda1,2,5,6,7,8. Additionally, there's a CD-ROM drive, and a 250GB
> > standard rotating disk. My boot partition is located on  a 120GB SSD,
> > which I presume is /dev/sda, is divided as follows according to df:
> 
> > Filesystem              1K-blocks       Used Available Use% Mounted on
> > /dev/sda1                 8518920     879012   7184128  11% /
> > /dev/sda7                  368615       2058    343005   1% /tmp
> > /dev/sda5                 2817056     178752   2475488   7% /var
> > /dev/sda8                89493696      57076  84867532   1% /home
> 
> > What, then, are /dev/sda2 and /dev/sda6? I tried looking at them with
> > FDisk and got the following:
> 
> > For /dev/sda2: Failed to read extended partition table
> > (offset=5858805): Invalid argument
> 
> > For /dev/sda6: device contains a valid 'swap' signature, it's strongly
> > recommended to wipe the device by command wipefs(8) if this setup is
> > unexpected to avoid possible collisions.
> 
> /dev/sda5 to /dev/sda8 are logical partitions inside an extended
> partition. The extended partition is /dev/sda2.

Exactly. That's the vagaries of the old "DOS" partition schema.

Originally the partition table only provided room for up to four
partitions. Once that became too tight, we cludged our way out
by allowing one of those four (the so-called "extended" partition
to be subdivided into further four so-called "logical" partitions.

The old, "real" partitions came to be known henceforth as "primary"
partitions.

That's why df doesn't "see" it: no file system on it.

As for /dev/sda6: df only "sees" mounted file systems, no swap.

Thus if you want to have a more complete view of what's going on
in your disk, then yes, fdisk -l is more appropriate, as jdd wrote.

You've to aim it at the "right" disk, though, and you usually have
to be root. For a first approximation df is fine, if you know how
to interpret the (incomplete) results.

regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlaOI3cACgkQBcgs9XrR2kaeAgCfZQ/NL3jDJ5Ml+IdP56xHZ6nS
NVcAn1tWrNyyZnNlH/iteVthRmC381Z5
=lzeq
-----END PGP SIGNATURE-----


Reply to: