Headlines News :
    Showing posts with label Linux. Show all posts
    Showing posts with label Linux. Show all posts

    HOW TO INSTALL SOCIAL ENGINEERING TOOLKIT(S.E.T.) IN UBUNTU?


    Social Engineering Tool kit is cool tool which found in BACKTRACK, this increase power of metasploit. If you are on any linux system other than BACKTRACK , then you can install it in UBUNTU.



    Extra package which is necessary to use SET effectively are as follow.
    (1)Metasploit:- You can see my old post about how to install metasploit in ubuntu here.
    (2)Ettercap:- If you are on any network & want to attack on network like Man in the Middele Attack or DNS poisoning then you require it.
    To install Ettercap open terminal in type following command:-
    sudo apt-get install ettercap
    (3)Openjdk-6-It`s necessary program to use SET. Just type following command in terminal
    sudo apt-get install openjdk-6-jdk

    Now open terminal & change directory to opt.
    sudo bash
    cd /opt
    svn co http://svn.secmaniac.com/social_engineering_toolkit set/
    cd /opt/set
    svn update
    nano config/set_config


    Now we will configure it. First it require metaspolit path . So we will put it on configure file. Here comes problem , in first step we install metasploit , it`s directory is opt/metasploit-4.4.0/msf3. But when we put this path in configure file it cannot detect metasploit . So we have to rename metasploit-4.4.0 to framework3. So rename metasploit-4.4.0 folder name to framework3.
    Put opt/framework3/msf3 this path in config file. Save it.Type in terminal.
    ./set 
    It will open SET . 
    In next tutorial I will show you how to configure sendmail & use it in set.
    I Know I cannot explain good, So if you face any problem please mention in comment

    Creating a new filesystem with fdisk, lvm, and mkfs

    Our Task: Create a new 10GB filesystem to store a package repository for yum

    Challenges: The existing hard drive has been fully allocated using LVM.
    Solution:
    • Add a new hard drive to the server (virtual server in this case)
    • Partition the drive and add it to the main logical volume
    • Create a new filesystem

    This article assumes that by now you have physically added the hard drive to the server. In my case I am using a virtual server but the tasks are essentially the same.

    Partition the new disk drive

    Before starting I will verify there are no partitions on the new disk.
    [root@fedora-test ~]# fdisk -l /dev/sdb 
    
    Disk /dev/sdb: 21.5 GB, 21474836480 bytes
    255 heads, 63 sectors/track, 2610 cylinders, total 41943040 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000
    Disk /dev/sdb doesn't contain a valid partition table
    Since there are no partitions it is safe to proceed. I will now create one big partition as I plan to add this disk to LVM and use LVM to divvy up my disk space.
    [root@fedora-test ~]# fdisk /dev/sdb
    Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
    Building a new DOS disklabel with disk identifier 0xe1410716.
    Changes will remain in memory only, until you decide to write them.
    After that, of course, the previous content won't be recoverable.
    
    Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
    
    Command (m for help): n
    Partition type:
       p   primary (0 primary, 0 extended, 4 free)
       e   extended
    Select (default p): p
    Partition number (1-4, default 1):
    Using default value 1
    First sector (2048-41943039, default 2048):
    Using default value 2048
    Last sector, +sectors or +size{K,M,G} (2048-41943039, default 41943039):
    Using default value 41943039
    Command (m for help): p
    
    Disk /dev/sdb: 21.5 GB, 21474836480 bytes
    255 heads, 63 sectors/track, 2610 cylinders, total 41943040 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0xe1410716
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1            2048    41943039    20970496   83  Linux
    
    Command (m for help): w
    The partition table has been altered!
    
    Calling ioctl() to re-read partition table.
    Syncing disks.
    
    
    Once you type w the changes are written to disk.

    Add the partition to the volume group

    My volume group name is vg_fedoratest and I will now add the new partition to that volume group with the vgextend command. This adds the additional partition space to the volume group for lvm to use.

    [root@fedora-test ~]# ls -la /dev/sdb*
    brw-rw----. 1 root disk 8, 17 april  6 15:08 /dev/sdb
    brw-rw----. 1 root disk 8, 18 april 6 15:08 /dev/sdb1
    [root@fedora-test ~]# pvcreate /dev/sdb1
    [root@fedora-test ~]# vgextend vg_fedoratest /dev/sdb1
      No physical volume label read from /dev/sdb1
      Writing physical volume data to disk "/dev/sdb1"
      Physical volume "/dev/sdb1" successfully created
      Volume group "vg_fedoratest" successfully extended
      [root@fedora-test ~]# vgdisplay vg_fedoratest
      --- Volume group ---
      VG Name               vg_fedoratest
      System ID
      Format                lvm2
      Metadata Areas        2
      Metadata Sequence No  4
      VG Access             read/write
      VG Status             resizable
      MAX LV                0
      Cur LV                2
      Open LV               2
      Max PV                0
      Cur PV                2
      Act PV                2
      VG Size               40.69 GiB
      PE Size               32.00 MiB
      Total PE              1302
      Alloc PE / Size       663 / 20.72 GiB
      Free  PE / Size       639 / 19.97 GiB
      VG UUID               0gvY4O-I3tT-WKK0-ClU2-sXDz-Nq0c-eExZz2

    Create a logical volume & filesystem

    I am first using lvcreate to create the logical volume, after verifying that the logical volume created correctly I will create a new filesystem on top with mkfs.
    [root@fedora-test ~]# lvcreate -L 10GB -n lv_yumrepo vg_fedoratest
      Logical volume "lv_yumrepo" created
    [root@fedora-test ~]# lvdisplay vg_fedoratest/lv_yumrepo
      --- Logical volume ---
      LV Name                /dev/vg_fedoratest/lv_yumrepo
      VG Name                vg_fedoratest
      LV UUID                rpl7q1-oi6N-nZot-bjPT-Y1qi-2W28-xlBg6Q
      LV Write Access        read/write
      LV Status              available
      # open                 0
      LV Size                10.00 GiB
      Current LE             320
      Segments               1
      Allocation             inherit
      Read ahead sectors     auto
      - currently set to     256
      Block device           253:2
     [root@fedora-test ~]# mkfs -t ext3 /dev/vg_fedoratest/lv_yumrepo
    mke2fs 1.41.14 (23-april-2013)
    Filesystem label=
    OS type: Linux
    Block size=4096 (log=2)
    Fragment size=4096 (log=2)
    Stride=0 blocks, Stripe width=0 blocks
    655360 inodes, 2621440 blocks
    131072 blocks (5.00%) reserved for the super user
    First data block=0
    Maximum filesystem blocks=2684354560
    80 block groups
    32768 blocks per group, 32768 fragments per group
    8192 inodes per group
    Superblock backups stored on blocks:
    	32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
    
    Writing inode tables: done
    Creating journal (32768 blocks): done
    Writing superblocks and filesystem accounting information: done
    
    This filesystem will be automatically checked every 28 mounts or
    180 days, whichever comes first.  Use tune2fs -c or -i to override.
    
    

    Mount the filesystem

    Now that my filesystem is created I need to mount it; but before then I need to create the directory that the mount point will overlay and add the appropriate lines to the /etc/fstab file.
    [root@fedora-test ~]# mkdir /var/repo
    [root@fedora-test ~]# vi /etc/fstab
        ## Append to bottom
        /dev/mapper/vg_fedoratest-lv_yumrepo /var/repo ext3 defaults 0 0
    [root@fedora-test ~]# mount
    /dev/mapper/vg_fedoratest-lv_yumrepo on /var/repo type ext3 (rw,relatime,seclabel,user_xattr,acl,barrier=1,nodelalloc,data=ordered)

    How To Create LVM Using vgcreate, lvcreate, and lvextend lvm2 Commands

    LVM stands for Logical Volume Manager.
    With LVM, we can create logical partitions that can span across one or more physical hard drives. First, the hard drives are divided into physical volumes, then those physical volumes are combined together to create the volume group and finally the logical volumes are created from volume group.
    The LVM commands listed in this article are used under Ubuntu Distribution. But, it is the same for other Linux distributions.

    Before we start, install the lvm2 package as shown below.
    $ sudo apt-get intall lvm2
    
    To create a LVM, we need to run through the following steps.
    • Select the physical storage devices for LVM
    • Create the Volume Group from Physical Volumes
    • Create Logical Volumes from Volume Group

    Select the Physical Storage Devices for LVM – Use pvcreate, pvscan, pvdisplay Commands

    In this step, we need to choose the physical volumes that will be used to create the LVM. We can create the physical volumes using pvcreate command as shown below.
    $ sudo pvcreate /dev/sda6 /dev/sda7
    Physical volume "/dev/sda6" successfully created
    Physical volume "/dev/sda7" successfully created
    
    As shown above two physical volumes are created – /dev/sda6 and /dev/sda7.
    If the physical volumes are already created, you can view them using the pvscan command as shown below.
    $ sudo pvscan
      PV /dev/sda6                      lvm2 [1.86 GB]
      PV /dev/sda7                      lvm2 [1.86 GB]
      Total: 2 [3.72 GB] / in use: 0 [0   ] / in no VG: 2 [3.72 GB]
    
    You can view the list of physical volumes with attributes like size, physical extent size, total physical extent size, the free space, etc., using pvdisplay command as shown below.
    $ sudo pvdisplay
    --- Physical volume ---
      PV Name             /dev/sda6
      VG Name
      PV Size               1.86 GB / not usable 2.12 MB
      Allocatable           yes
      PE Size (KByte)    4096
      Total PE              476
      Free PE               456
      Allocated PE          20
      PV UUID               m67TXf-EY6w-6LuX-NNB6-kU4L-wnk8-NjjZfv 
    
      --- Physical volume ---
      PV Name             /dev/sda7
      VG Name
      PV Size               1.86 GB / not usable 2.12 MB
      Allocatable           yes
      PE Size (KByte)    4096
      Total PE              476
      Free PE               476
      Allocated PE          0
      PV UUID               b031x0-6rej-BcBu-bE2C-eCXG-jObu-0Boo0x
    
    Note : PE – Physical Extents are nothing but equal-sized chunks. The default size of extent is 4MB.

    Create the Volume Group – Use vgcreate, vgdisplay Commands

    Volume groups are nothing but a pool of storage that consists of one or more physical volumes. Once you create the physical volume, you can create the volume group (VG) from these physical volumes (PV).
    In this example, the volume group vol_grp1 is created from the two physical volumes as shown below.
    $ sudo vgcreate vol_grp1 /dev/sda6 /dev/sda7
      Volume  group "vol_grp1" successfully created
    
    LVM processes the storage in terms of extents. We can also change the extent size (from the default size 4MB) using -s flag.
    vgdisplay command lists the created volume groups.
    $ sudo vgdisplay
      --- Volume group ---
      VG Name                     vol_grp1
      System ID
      Format                        lvm2
      Metadata Areas            2
      Metadata Sequence No  1
      VG Access                   read/write
      VG Status                    resizable
      MAX LV                       0
      Cur LV                        0
      Open LV                      0
      Max PV                       0
      Cur PV                        2
      Act PV                       2
      VG Size                      3.72 GB
      PE Size                      4.00 MB
      Total PE                     952
      Alloc PE / Size             0 / 0
      Free  PE / Size            952 / 3.72 GB
      VG UUID                     Kk1ufB-rT15-bSWe-5270-KDfZ-shUX-FUYBvR
    

    LVM Create: Create Logical Volumes – Use lvcreate, lvdisplay command

    Now, everything is ready to create the logical volumes from the volume groups. lvcreate command creates the logical volume with the size of 80MB.
    $ sudo lvcreate -l 20 -n logical_vol1 vol_grp1
      Logical volume "logical_vol1" created
    
    Use lvdisplay command as shown below, to view the available logical volumes with its attributes.
    $ sudo lvdisplay
      --- Logical volume ---
      LV Name                /dev/vol_grp1/logical_vol1
      VG Name                vol_grp1
      LV UUID                 ap8sZ2-WqE1-6401-Kupm-DbnO-2P7g-x1HwtQ
      LV Write Access      read/write
      LV Status              available
      # open                  0
      LV Size                  80.00 MB
      Current LE              20
      Segments               1
      Allocation               inherit
      Read ahead sectors  auto
      - currently set to     256
      Block device            252:0
     
    After creating the appropriate filesystem on the logical volumes, it becomes ready to use for the storage purpose.
    $ sudo  mkfs.ext3 /dev/vol_grp1/logical_vol1
    

    LVM resize: Change the size of the logical volumes – Use lvextend Command

    We can extend the size of the logical volumes after creating it by using lvextend utility as shown below. The changes the size of the logical volume from 80MB to 100MB.
    $ sudo lvextend -L100 /dev/vol_grp1/logical_vol1
      Extending logical volume logical_vol1 to 100.00 MB
      Logical volume logical_vol1 successfully resized
    
    We can also add additional size to a specific logical volume as shown below.
    $ sudo lvextend -L+100 /dev/vol_grp1/logical_vol1
      Extending logical volume logical_vol1 to 200.00 MB
      Logical volume logical_vol1 successfully resized

    How much swap space is currently used by the system?

    Free command displays the swap space. free -k shows the output in KB.

    # free -k
                 total       used       free     shared    buffers     cached
    Mem:       3082356    2043700    1038656          0      50976    1646268
    -/+ buffers/cache:     346456    2735900
    Swap:      4192956          0    4192956
    
    Swapon command with option -s, displays the current swap space in KB.
    # swapon -s
    Filename                        Type            Size    Used    Priority
    /dev/sda2                       partition       4192956 0       -1
    
    Swapon -s, is same as the following.
    # cat /proc/swaps
    Filename                        Type            Size    Used    Priority
    /dev/sda2                       partition       4192956 0       -1
    

    Method 1: Use a Hard Drive Partition for Additional Swap Space

    If you have an additional hard disk, (or space available in an existing disk), create a partition using fdisk command. Let us assume that this partition is called /dev/sdc1
    Now setup this newly created partition as swap area using the mkswap command as shown below.
    # mkswap /dev/sdc1
    
    Enable the swap partition for usage using swapon command as shown below.
    # swapon /dev/sdc1
    
    To make this swap space partition available even after the reboot, add the following line to the /etc/fstab file.
    # cat /etc/fstab
    /dev/sdc1               swap                    swap    defaults        0 0
    
    Verify whether the newly created swap area is available for your use.
    # swapon -s
    Filename                        Type            Size    Used    Priority
    /dev/sda2                       partition       4192956 0       -1
    /dev/sdc1                       partition       1048568 0       -2
    
    # free -k
                 total       used       free     shared    buffers     cached
    Mem:       3082356    3022364      59992          0      52056    2646472
    -/+ buffers/cache:     323836    2758520
    Swap:      5241524          0    5241524
    
    Note: In the output of swapon -s command, the Type column will say “partition” if the swap space is created from a disk partition.

    Method 2: Use a File for Additional Swap Space

    If you don’t have any additional disks, you can create a file somewhere on your filesystem, and use that file for swap space.
    The following dd command example creates a swap file with the name “myswapfile” under /root directory with a size of 1024MB (1GB).
    # dd if=/dev/zero of=/root/myswapfile bs=1M count=1024
    1024+0 records in
    1024+0 records out
    
    # ls -l /root/myswapfile
    -rw-r--r--    1 root     root     1073741824 Aug 14 23:47 /root/myswapfile
    
    Change the permission of the swap file so that only root can access it.
    # chmod 600 /root/myswapfile
    
    Make this file as a swap file using mkswap command.
    # mkswap /root/myswapfile
    Setting up swapspace version 1, size = 1073737 kB
    
    Enable the newly created swapfile.
    # swapon /root/myswapfile
    
    To make this swap file available as a swap area even after the reboot, add the following line to the /etc/fstab file.
    # cat /etc/fstab
    /root/myswapfile               swap                    swap    defaults        0 0
    
    Verify whether the newly created swap area is available for your use.
    # swapon -s
    Filename                        Type            Size    Used    Priority
    /dev/sda2                       partition       4192956 0       -1
    /root/myswapfile                file            1048568 0       -2
    
    # free -k
                 total       used       free     shared    buffers     cached
    Mem:       3082356    3022364      59992          0      52056    2646472
    -/+ buffers/cache:     323836    2758520
    Swap:      5241524          0    5241524
    
    Note: In the output of swapon -s command, the Type column will say “file” if the swap space is created from a swap file.
    If you don’t want to reboot to verify whether the system takes all the swap space mentioned in the /etc/fstab, you can do the following, which will disable and enable all the swap partition mentioned in the /etc/fstab
    # swapoff -a
    
    # swapon -a

    7 Linux fdisk Command Examples to Manage Hard Disk Partition


          

    On Linux distributions, fdisk is the best tool to manage disk partitions. fdisk is a text based utility.
    Using fdisk you can create a new partition, delete an existing partition, or change existing partition.
    Using fidsk you are allowed to create a maximum of four primary partition, and any number of logical partitions, based on the size of the disk.
    Keep in mind that any single partition requires a minimum size of 40MB.

    In this article, let us review how to use fdisk command using practical examples.
    Warning: Don’t delete, modify, or add partition, if you don’t know what you are doing. You will lose your data!

    1. View All Existing Disk Partitions Using fdisk -l

    Before you create a new partition, or modify an existing partition, you might want to view all available partition in the system.
    Use fdisk -l to view all available partitions as shown below.
    # fdisk -l
    
    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xf6edf6ed
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1        1959    15735636    c  W95 FAT32 (LBA)
    /dev/sda2            1960        5283    26700030    f  W95 Ext'd (LBA)
    /dev/sda3            5284        6528    10000462+   7  HPFS/NTFS
    /dev/sda4            6529        9729    25712032+   c  W95 FAT32 (LBA)
    /dev/sda5   *        1960        2661     5638752   83  Linux
    /dev/sda6            2662        2904     1951866   83  Linux
    /dev/sda7            2905        3147     1951866   83  Linux
    /dev/sda8            3148        3264      939771   82  Linux swap / Solaris
    /dev/sda9            3265        5283    16217586    b  W95 FAT32
    The above will list partitions from all the connected hard disks. When you have more than one disk on the system, the partitions list are ordered by the device’s /dev name. For example, /dev/sda, /dev/sdb, /dev/sdc and so on.

    2. View Partitions of a Specific Hard Disk using fdisk -l /dev/sd{a}

    To view all partitions of the /dev/sda hard disk, do the following.
    # fdisk -l /dev/sda

    View all fdisk Commands Using fdisk Command m

    Use fdisk command m, to view all available fdisk commands as shown below.
    # fdisk  /dev/sda
    
    The number of cylinders for this disk is set to 9729.
    There is nothing wrong with that, but this is larger than 1024,
    and could in certain setups cause problems with:
    1) software that runs at boot time (e.g., old versions of LILO)
    2) booting and partitioning software from other OSs
       (e.g., DOS FDISK, OS/2 FDISK)
    
    Command (m for help): m
    Command action
       a   toggle a bootable flag
       b   edit bsd disklabel
       c   toggle the dos compatibility flag
       d   delete a partition
       l   list known partition types
       m   print this menu
       n   add a new partition
       o   create a new empty DOS partition table
       p   print the partition table
       q   quit without saving changes
       s   create a new empty Sun disklabel
       t   change a partition's system id
       u   change display/entry units
       v   verify the partition table
       w   write table to disk and exit
       x   extra functionality (experts only)

    3. Delete a Hard Disk Partition Using fdisk Command d

    Let us assume that you like to combine several partitions (for example, /dev/sda6, /dev/sda7 and /dev/sda8) into a single disk partition. To do this, you should first delete all those individual partitions, as shown below.
    # fdisk /dev/sda                                                 
    
    The number of cylinders for this disk is set to 9729.
    There is nothing wrong with that, but this is larger than 1024,
    and could in certain setups cause problems with:
    1) software that runs at boot time (e.g., old versions of LILO)
    2) booting and partitioning software from other OSs
       (e.g., DOS FDISK, OS/2 FDISK)                               
    
    Command (m for help): p
    
    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xf6edf6ed
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1        1959    15735636    c  W95 FAT32 (LBA)
    /dev/sda2            1960        5283    26700030    f  W95 Ext'd (LBA)
    /dev/sda3            5284        6528    10000462+   7  HPFS/NTFS
    /dev/sda4            6529        9729    25712032+   c  W95 FAT32 (LBA)
    /dev/sda5   *        1960        2661     5638752   83  Linux
    /dev/sda6            2662        2904     1951866   83  Linux
    /dev/sda7            2905        3147     1951866   83  Linux
    /dev/sda8            3148        3264      939771   82  Linux swap / Solaris
    /dev/sda9            3265        5283    16217586    b  W95 FAT32
    
    Command (m for help): d
    Partition number (1-9): 8
    
    Command (m for help): d
    Partition number (1-8): 7
    
    Command (m for help): d
    Partition number (1-7): 6
    
    Command (m for help): w
    The partition table has been altered!
    
    Calling ioctl() to re-read partition table.
    
    WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
    The kernel still uses the old table. The new table will be used at
    the next reboot or after you run partprobe(8) or kpartx(8)
    Syncing disks.

    4. Create a New Disk Partition with Specific Size Using fdisk Command n

    Once you’ve deleted all the existing partitions, you can create a new partition using all available space as shown below.
    # fdisk  /dev/sda
    
    The number of cylinders for this disk is set to 9729.
    There is nothing wrong with that, but this is larger than 1024,
    and could in certain setups cause problems with:
    1) software that runs at boot time (e.g., old versions of LILO)
    2) booting and partitioning software from other OSs
       (e.g., DOS FDISK, OS/2 FDISK)
    
    Command (m for help): n
    First cylinder (2662-5283, default 2662):
    Using default value 2662
    Last cylinder, +cylinders or +size{K,M,G} (2662-3264, default 3264):
    Using default value 3264
    In the above example, fdisk n command is used to create new partition with the specific size. While creating a new partition, it expects following two inputs.
    • Starting cylinder number of the partition to be create (First cylinder).
    • Size of the partition (or) the last cylinder number (Last cylinder, +cylinders or +size ).
    Please keep in mind that you should issue the fdisk write command (w) after any modifications.
    Command (m for help): w
    The partition table has been altered!
    
    Calling ioctl() to re-read partition table.
    
    WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
    The kernel still uses the old table. The new table will be used at
    the next reboot or after you run partprobe(8) or kpartx(8)
    Syncing disks.
    After the partition is created, format it using the mkfs command as shown below.
    # mkfs.ext3 /dev/sda7

    5. View the Size of an existing Partition Using fdisk -s

    As shown below, fdisk -s displays the size of the partition in blocks.
    # fdisk -s /dev/sda7
    4843566
    The above output corresponds to about 4900MB.

    6. Toggle the Boot Flag of a Partition Using fdisk Command a

    Fdisk command displays the boot flag of each partition. When you want to disable or enable the boot flag on the corresponding partition, do the following.
    If you don’t know why are you are doing this, you’ll mess-up your system.
    # fdisk /dev/sda
    
    The number of cylinders for this disk is set to 9729.
    There is nothing wrong with that, but this is larger than 1024,
    and could in certain setups cause problems with:
    1) software that runs at boot time (e.g., old versions of LILO)
    2) booting and partitioning software from other OSs
       (e.g., DOS FDISK, OS/2 FDISK)                               
    
    Command (m for help): p
    
    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xf6edf6ed
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1        1959    15735636    c  W95 FAT32 (LBA)
    /dev/sda2            1960        5283    26700030    f  W95 Ext'd (LBA)
    /dev/sda3            5284        6528    10000462+   7  HPFS/NTFS
    /dev/sda4            6529        9729    25712032+   c  W95 FAT32 (LBA)
    /dev/sda5   *        1960        2661     5638752   83  Linux
    /dev/sda6            3265        5283    16217586    b  W95 FAT32
    /dev/sda7            2662        3264     4843566   83  Linux
    
    Partition table entries are not in disk order
    
    Command (m for help): a
    Partition number (1-7): 5
    
    Command (m for help): p
    
    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xf6edf6ed
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1        1959    15735636    c  W95 FAT32 (LBA)
    /dev/sda2            1960        5283    26700030    f  W95 Ext'd (LBA)
    /dev/sda3            5284        6528    10000462+   7  HPFS/NTFS
    /dev/sda4            6529        9729    25712032+   c  W95 FAT32 (LBA)
    /dev/sda5            1960        2661     5638752   83  Linux
    /dev/sda6            3265        5283    16217586    b  W95 FAT32
    /dev/sda7            2662        3264     4843566   83  Linux
    
    Partition table entries are not in disk order
    
    Command (m for help):
    As seen above, the boot flag is disabled on the partition /dev/sda5.

    7. Fix Partition Table Order Using fdisk Expert Command f

    When you delete a logical partition, and recreate it again, you might see the “partition out of order” issue. i.e “Partition table entries are not in disk order” error message.
    For example, when you delete three logical partitions (sda6, sda7 and sda8), and create a new partition, you might expect the new partition name to be sda6. But, the system might’ve created the new partition as sda7. This is because, after the partitions are deleted, sda9 partition has been moved as sda6 and the free space is moved to the end.
    To fix this partition order issue, and assign sda6 to the newly created partition, execute the expert command f as shown below.
     $ fdisk  /dev/sda
    
    The number of cylinders for this disk is set to 9729.
    There is nothing wrong with that, but this is larger than 1024,
    and could in certain setups cause problems with:
    1) software that runs at boot time (e.g., old versions of LILO)
    2) booting and partitioning software from other OSs
       (e.g., DOS FDISK, OS/2 FDISK)                               
    
    Command (m for help): p
    
    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xf6edf6ed                     
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1        1959    15735636    c  W95 FAT32 (LBA)
    /dev/sda2            1960        5283    26700030    f  W95 Ext'd (LBA)
    /dev/sda3            5284        6528    10000462+   7  HPFS/NTFS
    /dev/sda4            6529        9729    25712032+   c  W95 FAT32 (LBA)
    /dev/sda5   *        1960        2661     5638752   83  Linux
    /dev/sda6            3265        5283    16217586    b  W95 FAT32
    /dev/sda7            2662        3264     4843566   83  Linux          
    
    Partition table entries are not in disk order
    
    Command (m for help): x
    
    Expert command (m for help): f
    Done.
    
    Expert command (m for help): w
    The partition table has been altered!
    
    Calling ioctl() to re-read partition table.
    
    WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
    The kernel still uses the old table. The new table will be used at
    the next reboot or after you run partprobe(8) or kpartx(8)
    Syncing disks.
    Once the partition table order is fixed, you’ll not get the “Partition table entries are not in disk order” error message anymore.
    # fdisk -l
    
    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xf6edf6ed
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1        1959    15735636    c  W95 FAT32 (LBA)
    /dev/sda2            1960        5283    26700030    f  W95 Ext'd (LBA)
    /dev/sda3            5284        6528    10000462+   7  HPFS/NTFS
    /dev/sda4            6529        9729    25712032+   c  W95 FAT32 (LBA)
    /dev/sda5   *        1960        2661     5638752   83  Linux
    /dev/sda6            2662        3264     4843566   83  Linux
    /dev/sda7            3265        5283    16217586    b  W95 FAT32

    Fedora 19 Features

    The latest batch of features for Fedora 19 include:

    fedora19



    MATE Desktop 1.6 - Pulling in version 1.6 of MATE, the well-known GNOME2 fork. MATE has already been played with in Fedora although not part of the default installation.
    High Availability Container Resources - “The Container Resources feature allows the HA stack (Pacemaker + Corosync) residing on a host machine to extend management of resources into virtual guest instances (KVM/LXC).”
    GNOME 3.8 - The GNOME 3.8 Shell desktop along with other GNOME 3.8 packages should be pulled in for the May release of Fedora 19. This is no surprise and GNOME 3.8 should be the default desktop of this next Fedora Linux release.
    GLIBC 2.17 - This GLIBC release brings many new features and was officially released in late 2012 and should be a great update for Fedora 19.
    NFStest - “Provides a set of tools for testing either the NFS client or the NFS server, most of the functionality is focused mainly on testing the client.”
    MEMSTOP - “Include the MEMSTOMP DSOs in Fedora 19 to enable developers to more quickly detect certain library calls which result in undefined behaviour due to overlapping memory arguments.”
    Other rounds of Fedora 19 features  include: 3D Printing , BIND10 GCC 4.8.x , Java 8 ,KDE Plasma Workspaces 4.10 , Syslinux Option , Fedora Looks To Replace MySQL with MariaDB , etc
     
    Support : Worldwide Solution | Intense Dealz | Your Link
    Copyright © 2013. Students Friend - All Rights Reserved
    Website maintained by Ankit Jain And Akhil Dadhich
    Proudly powered by WWS INDIA