login as: root
root@192.168.137.86's password:
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
****************************************
WARNING: TO RESIZE FILESYSTEM RUN:
sudo fs_resize
to remove this message run:
sudo rm /usr/local/bin/fs_resize_warning
****************************************
root@OrangePI:~# fdisk lu
Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
fdisk: cannot open lu: No such file or directory
root@OrangePI:~# fdisk -lu
Disk /dev/mmcblk0: 7.3 GiB, 7860125696 bytes, 15351808 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
Disklabel type: dos
Disk identifier: 0x7a47e671
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 40960 172031 131072 64M b W95 FAT32
/dev/mmcblk0p2 172032 2953216 2781185 1.3G 83 Linux
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 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
Disklabel type: dos
Disk identifier: 0xc360b343
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 976773119 976771072 465.8G f W95 Ext'd (LBA)
/dev/sda5 4096 976773119 976769024 465.8G 7 HPFS/NTFS/exFAT
root@OrangePI:~# fdisk /dev/sda
Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): m
Help:
DOS (MBR)
a toggle a bootable flag
b edit nested BSD disklabel
c toggle the dos compatibility flag
Generic
d delete a partition
l list known partition types
n add a new partition
p print the partition table
t change a partition type
v verify the partition table
Misc
m print this menu
u change display/entry units
x extra functionality (experts only)
Save & Exit
w write table to disk and exit
q quit without saving changes
Create a new label
g create a new empty GPT partition table
G create a new empty SGI (IRIX) partition table
o create a new empty DOS partition table
s create a new empty Sun partition table
Command (m for help): d
Partition number (1,5, default 5): 5
Partition 5 has been deleted.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
root@OrangePI:~# fdisk /dev/sda
Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): d
Selected partition 1
Partition 1 has been deleted.
Command (m for help): 1
1: unknown command
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
root@OrangePI:~# fdisk -lu
Disk /dev/mmcblk0: 7.3 GiB, 7860125696 bytes, 15351808 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
Disklabel type: dos
Disk identifier: 0x7a47e671
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 40960 172031 131072 64M b W95 FAT32
/dev/mmcblk0p2 172032 2953216 2781185 1.3G 83 Linux
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 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
Disklabel type: dos
Disk identifier: 0xc360b343
root@OrangePI:~# fdisk /dev/sda
Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-976773167, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-976773167, default 976773167): 39070926
Created a new partition 1 of type 'Linux' and of size 18.6 GiB.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
root@OrangePI:~# mkfs -t ext4 /dev/sda1
mke2fs 1.42.12 (29-Aug-2014)
Found a dos partition table in /dev/sda1
Proceed anyway? (y,n) y
Creating filesystem with 4883609 4k blocks and 1221600 inodes
Filesystem UUID: c6bdc5e6-e300-49dc-84cb-a30a50b7cb40
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
root@OrangePI:~# fdisk /dev/sda
Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): n
Partition type
p primary (1 primary, 0 extended, 3 free)
e extended (container for logical partitions)
Select (default p): 3
Value out of range.
p primary (1 primary, 0 extended, 3 free)
e extended (container for logical partitions)
Select (default p): e
Partition number (2-4, default 2): 2
First sector (39070927-976773167, default 39071744):
Last sector, +sectors or +size{K,M,G,T,P} (39071744-976773167, default 976773167):
Created a new partition 2 of type 'Extended' and of size 447.1 GiB.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
root@OrangePI:~# fdisk /dev/sda
Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): n
Partition type
p primary (1 primary, 1 extended, 2 free)
l logical (numbered from 5)
Select (default p): l
Adding logical partition 5
First sector (39073792-976773167, default 39073792):
Last sector, +sectors or +size{K,M,G,T,P} (39073792-976773167, default 976773167): 97677316
Created a new partition 5 of type 'Linux' and of size 28 GiB.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
root@OrangePI:~# mkfs -t ext4 /dev/sda5
mke2fs 1.42.12 (29-Aug-2014)
Creating filesystem with 7325440 4k blocks and 1831424 inodes
Filesystem UUID: 9324e527-91a5-420a-a868-71e23ddbbad9
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
root@OrangePI:~# fdisk /dev/sda
Welcome to fdisk (util-linux 2.25.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): n
Partition type
p primary (1 primary, 1 extended, 2 free)
l logical (numbered from 5)
Select (default p): l
Adding logical partition 6
First sector (97679365-976773167, default 97681408):
Last sector, +sectors or +size{K,M,G,T,P} (97681408-976773167, default 976773167):
Created a new partition 6 of type 'Linux' and of size 419.2 GiB.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
root@OrangePI:~# mkfs -t ext4 /dev/sda6
mke2fs 1.42.12 (29-Aug-2014)
Creating filesystem with 109886470 4k blocks and 27475968 inodes
Filesystem UUID: 69fdb5ef-eba5-46f1-80e2-d1acceb47d2d
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
root@OrangePI:~# fdisk -lu
Disk /dev/mmcblk0: 7.3 GiB, 7860125696 bytes, 15351808 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
Disklabel type: dos
Disk identifier: 0x7a47e671
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 40960 172031 131072 64M b W95 FAT32
/dev/mmcblk0p2 172032 2953216 2781185 1.3G 83 Linux
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 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
Disklabel type: dos
Disk identifier: 0xc360b343
Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 39070926 39068879 18.6G 83 Linux
/dev/sda2 39071744 976773167 937701424 447.1G 5 Extended
/dev/sda5 39073792 97677316 58603525 28G 83 Linux
/dev/sda6 97681408 976773167 879091760 419.2G 83 Linux
注意:本文归作者所有,未经作者允许,不得转载