Resize /

Discussion in 'Debian' started by maara, Nov 24, 2013.

  1. maara

    maara Member

    Joined:
    Jun 11, 2013
    Messages:
    44
    Likes Received:
    4
    Hi all,

    Maybe a stupid question but is there any way how to resize online mmcblk0p1 which is mounted to / so I can fully use the size of my card?

    thx
     
  2. maara

    maara Member

    Joined:
    Jun 11, 2013
    Messages:
    44
    Likes Received:
    4
    Disk /dev/mmcblk0: 33.2 GB, 33201061888 bytes
    101 heads, 2 sectors/track, 321018 cylinders, total 64845824 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: 0x00013be1

    Device Boot Start End Blocks Id System
    /dev/mmcblk0p1 16065 7749631 3866783+ 83 Linux

    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): p
    Partition number (1-4, default 1): 1
    First sector (2048-64845823, default 2048): 16065
    Last sector, +sectors or +size{K,M,G} (16065-64845823, default 64845823):
    Using default value 64845823

    Command (m for help): t
    Selected partition 1
    Hex code (type L to list codes): 83

    Command (m for help): w
    The partition table has been altered!
     
  3. saidol

    saidol New Member

    Joined:
    Oct 3, 2013
    Messages:
    24
    Likes Received:
    0
    Hi,
    I think maara forgot to add a reboot to make Linux reload the partition table.
    And execution of command: resize2fs /dev/mmcblk0p1 to enlarge filesystem.

    Cheers
    Giuseppe
     
  4. maara

    maara Member

    Joined:
    Jun 11, 2013
    Messages:
    44
    Likes Received:
    4
    You are right - these steps are not written here but I did them. I only forgot to copy and paste them here but they are a definitely "must do" part of the resize process....
    Thanks for heads up!
     

Share This Page