Selasa, 16 September 2014

  • Membuat Partisi Pada Flashdisk Dengan Terminal Ubuntu


    afrizal@afrizal-Aspire-4552:~$ sudo su
    [sudo] password for afrizal: 

    root@afrizal-Aspire-4552:/home/afrizal# fdisk -l
    Disk /dev/sda: 320.1 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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: 0x2570d28f
    Device Boot Start End Blocks Id System
    /dev/sda1 * 123267072 300791807 88762368 7 HPFS/NTFS/exFAT
    /dev/sda2 300801121 625137344 162168112 f W95 Ext'd (LBA)
    /dev/sda3 2048 4192255 2095104 82 Linux swap / Solaris
    /dev/sda4 4192256 123267071 59537408 83 Linux
    /dev/sda5 300801123 458993114 79095996 7 HPFS/NTFS/exFAT
    /dev/sda6 459009243 625137344 83064051 7 HPFS/NTFS/exFAT
    Partition table entries are not in disk order
    Disk /dev/sdb: 4041 MB, 4041446912 bytes
    64 heads, 45 sectors/track, 2740 cylinders, total 7893451 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: 0x00388b28
    Device Boot Start End Blocks Id System
    /dev/sdb1 2048 7893450 3945701+ 83 Linux 

    root@afrizal-Aspire-4552:/home/afrizal# fdisk /dev/sdb

    Command (m for help): m ←ini perintah untuk melihat perintah-perintah yang bisa digunakan
    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) 

    Command (m for help): d
    Selected partition 1 

    Command (m for help): n
    Partition type:
    p primary (0 primary, 0 extended, 4 free)
    e extended
    Select (default p):
    Using default response p
    Partition number (1-4, default 1):
    Using default value 1
    First sector (2048-7893450, default 2048):
    Using default value 2048
    Last sector, +sectors or +size{K,M,G} (2048-7893450, default 7893450): +1GB 

    Command (m for help): n
    Partition type:
    p primary (1 primary, 0 extended, 3 free)
    e extended
    Select (default p):
    Using default response p
    Partition number (1-4, default 2):
    Using default value 2
    First sector (1955173-7893450, default 1955173):
    Using default value 1955173
    Last sector, +sectors or +size{K,M,G} (1955173-7893450, default 7893450): +1GB 

    Command (m for help): n
    Partition type:
    p primary (2 primary, 0 extended, 2 free)
    e extended
    Select (default p):
    Using default response p
    Partition number (1-4, default 3):
    Using default value 3
    First sector (3908298-7893450, default 3908298):
    Using default value 3908298
    Last sector, +sectors or +size{K,M,G} (3908298-7893450, default 7893450): +1GB 

    Command (m for help): n
    Partition type:
    p primary (3 primary, 0 extended, 1 free)
    e extended
    Select (default e): p
    Selected partition 4
    First sector (5861423-7893450, default 5861423):
    Using default value 5861423
    Last sector, +sectors or +size{K,M,G} (5861423-7893450, default 7893450):
    Using default value 7893450
    Command (m for help): p
    Disk /dev/sdb: 4041 MB, 4041446912 bytes
    64 heads, 45 sectors/track, 2740 cylinders, total 7893451 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: 0x00388b28
    Device Boot Start End Blocks Id System
    /dev/sdb1 2048 1955172 976562+ 83 Linux
    /dev/sdb2 1955173 3908297 976562+ 83 Linux
    /dev/sdb3 3908298 5861422 976562+ 83 Linux
    /dev/sdb4 5861423 7893450 1016014 83 Linux 

    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.
    root@afrizal-Aspire-4552:/home/afrizal#

    //Sampai Sini Flashdisk Dicabut//

    root@afrizal-Aspire-4552:/home/afrizal# fdisk -l
    Disk /dev/sda: 320.1 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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: 0x2570d28f
    Device Boot Start End Blocks Id System
    /dev/sda1 * 123267072 300791807 88762368 7 HPFS/NTFS/exFAT
    /dev/sda2 300801121 625137344 162168112 f W95 Ext'd (LBA)
    /dev/sda3 2048 4192255 2095104 82 Linux swap / Solaris
    /dev/sda4 4192256 123267071 59537408 83 Linux
    /dev/sda5 300801123 458993114 79095996 7 HPFS/NTFS/exFAT
    /dev/sda6 459009243 625137344 83064051 7 HPFS/NTFS/exFAT
    Partition table entries are not in disk order
    Disk /dev/sdb: 4041 MB, 4041446912 bytes
    125 heads, 62 sectors/track, 1018 cylinders, total 7893451 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: 0x00388b28
    Device Boot Start End Blocks Id System
    /dev/sdb1 2048 1955172 976562+ 83 Linux
    /dev/sdb2 1955173 3908297 976562+ 83 Linux
    /dev/sdb3 3908298 5861422 976562+ 83 Linux
    /dev/sdb4 5861423 7893450 1016014 83 Linux 

    root@afrizal-Aspire-4552:/home/afrizal# mkfs -t ext4 /dev/sdb1
    mke2fs 1.42.9 (4-Feb-2014)
    Filesystem label=
    OS type: Linux
    Block size=4096 (log=2)
    Fragment size=4096 (log=2)
    Stride=0 blocks, Stripe width=0 blocks
    61056 inodes, 244140 blocks
    12207 blocks (5.00%) reserved for the super user
    First data block=0
    Maximum filesystem blocks=251658240
    8 block groups
    32768 blocks per group, 32768 fragments per group
    7632 inodes per group
    Superblock backups stored on blocks:
    32768, 98304, 163840, 229376
    Allocating group tables: done
    Writing inode tables: done
    Creating journal (4096 blocks): done
    Writing superblocks and filesystem accounting information: done

    root@afrizal-Aspire-4552:/home/afrizal# mkfs -t ext4 /dev/sdb2
    mke2fs 1.42.9 (4-Feb-2014)
    Filesystem label=
    OS type: Linux
    Block size=4096 (log=2)
    Fragment size=4096 (log=2)
    Stride=0 blocks, Stripe width=0 blocks
    61056 inodes, 244140 blocks
    12207 blocks (5.00%) reserved for the super user
    First data block=0
    Maximum filesystem blocks=251658240
    8 block groups
    32768 blocks per group, 32768 fragments per group
    7632 inodes per group
    Superblock backups stored on blocks:
    32768, 98304, 163840, 229376
    Allocating group tables: done
    Writing inode tables: done
    Creating journal (4096 blocks): done
    Writing superblocks and filesystem accounting information: done 

    root@afrizal-Aspire-4552:/home/afrizal# mkfs -t ext4 /dev/sdb3
    mke2fs 1.42.9 (4-Feb-2014)
    Filesystem label=
    OS type: Linux
    Block size=4096 (log=2)
    Fragment size=4096 (log=2)
    Stride=0 blocks, Stripe width=0 blocks
    61056 inodes, 244140 blocks
    12207 blocks (5.00%) reserved for the super user
    First data block=0
    Maximum filesystem blocks=251658240
    8 block groups
    32768 blocks per group, 32768 fragments per group
    7632 inodes per group
    Superblock backups stored on blocks:
    32768, 98304, 163840, 229376
    Allocating group tables: done
    Writing inode tables: done
    Creating journal (4096 blocks): done
    Writing superblocks and filesystem accounting information: done 

    root@afrizal-Aspire-4552:/home/afrizal# mkfs -t ext4 /dev/sdb4
    mke2fs 1.42.9 (4-Feb-2014)
    Filesystem label=
    OS type: Linux
    Block size=4096 (log=2)
    Fragment size=4096 (log=2)
    Stride=0 blocks, Stripe width=0 blocks
    63616 inodes, 254003 blocks
    12700 blocks (5.00%) reserved for the super user
    First data block=0
    Maximum filesystem blocks=264241152
    8 block groups
    32768 blocks per group, 32768 fragments per group
    7952 inodes per group
    Superblock backups stored on blocks:
    32768, 98304, 163840, 229376
    Allocating group tables: done
    Writing inode tables: done
    Creating journal (4096 blocks): done
    Writing superblocks and filesystem accounting information: done 

    root@afrizal-Aspire-4552:/home/afrizal#

    //Sampai Sini Selesai//
  • 0 komentar:

    Posting Komentar

    Copyright @ 2013 Masalahnya Ijal.