WHY fdisk and df, /etc/fstab differ?

digz digvijoy_chatterjee at infosys.com
Tue Aug 2 10:27:59 UTC 2005



Can anyone explain this output what is ID ee and EFI GPT and how is ext2 or 
ext3 functioning under such a partitioning scheme and more how do i create 
new partitions on this hard-disk , this is RHEL3 on  Itanium .

==============================================================================
> [root at advaitha /]# fdisk -l
>
> Disk /dev/sda: 146.8 GB, 146815737856 bytes
> 255 heads, 63 sectors/track, 17849 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
>    Device Boot    Start       End    Blocks   Id  System
> /dev/sda1             1     17850 143374743+  ee  EFI GPT
>
> Disk /dev/sdb: 36.4 GB, 36420075520 bytes
> 255 heads, 63 sectors/track, 4427 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
>    Device Boot    Start       End    Blocks   Id  System
> /dev/sdb1             1      4428  35566479+  ee  EFI GPT
>
> Disk /dev/sdc: 36.4 GB, 36420075520 bytes
> 255 heads, 63 sectors/track, 4427 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
>    Device Boot    Start       End    Blocks   Id  System
> /dev/sdc1             1      4428  35566479+  ee  EFI GPT
=========================================================================================
> [root at advaitha /]# df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/sda5             9.9G  4.8G  4.6G  52% /
> /dev/sda3             100M  4.5M   96M   5% /boot/efi
> /dev/sda10            4.9G  214M  4.4G   5% /home
> /dev/sda4              20G   34M   19G   1% /opt
> none                  997M     0  997M   0% /dev/shm
> /dev/sda9             4.9G   33M  4.6G   1% /tmp
> /dev/sda6              15G  2.0G   12G  15% /usr
> /dev/sda8             9.7G  242M  8.9G   3% /usr/local
> /dev/sda7              15G  8.1G  5.7G  59% /var
> /dev/cdrom            2.6G  2.6G     0 100% /mnt
=========================================================================================
> [root at advaitha /]# cat /etc/fstab
> LABEL=/                 /                       ext3    defaults        1 1
> /dev/sda3               /boot/efi               vfat    defaults        0 0
> none                    /dev/pts                devpts  gid=5,mode=620  0 0
> LABEL=/home             /home                   ext3    defaults        1 2
> LABEL=/opt              /opt                    ext3    defaults        1 2
> none                    /proc                   proc    defaults        0 0
> none                    /dev/shm                tmpfs   defaults        0 0
> LABEL=/tmp              /tmp                    ext3    defaults        1 2
> LABEL=/usr              /usr                    ext3    defaults        1 2
> LABEL=/usr/local        /usr/local              ext3    defaults        1 2
> LABEL=/var              /var                    ext3    defaults        1 2
> /dev/sda11              swap                    swap    defaults        0 0
> /dev/cdrom              /mnt/cdrom              udf,iso9660
> noauto,owner,kudzu,ro 0 0
=============================================================================================
[root at advaitha /]# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext3 rw 0 0
/proc /proc proc rw 0 0
none /dev/pts devpts rw 0 0
usbdevfs /proc/bus/usb usbdevfs rw 0 0
/dev/sda3 /boot/efi vfat rw 0 0
/dev/sda10 /home ext3 rw 0 0
/dev/sda4 /opt ext3 rw 0 0
none /dev/shm tmpfs rw 0 0
/dev/sda9 /tmp ext3 rw 0 0
/dev/sda6 /usr ext3 rw 0 0
/dev/sda8 /usr/local ext3 rw 0 0
/dev/sda7 /var ext3 rw 0 0
/dev/cdrom /mnt iso9660 ro 0 0

Thanks and Regards
Digz


**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Further, you are not to copy, disclose, or distribute this e-mail or its contents to any other person and any such actions are unlawful. This e-mail may contain viruses. Infosys has taken every reasonable precaution to minimize this risk, but is not liable for any damage you may sustain as a result of any virus in this e-mail. You should carry out your own virus checks before opening the e-mail or attachment. Infosys reserves the right to monitor and review the content of all messages sent to or from this e-mail address. Messages sent to or from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/ext3-users/attachments/20050802/76ce9afe/attachment.htm>


More information about the Ext3-users mailing list