How To Uncrease Partition Size In Archlinux
After installing Arch Linux on the Raspberry Pi you will more often than not need to expand the disk size to the maximum available size used by SD cards.
And here we testify how to do it:
one. After logging in you view the status of filesystem:
[root@alarmpi ~]# df -h Filesystem Size Used Avail Utilise% Mounted on /dev/root 1.7G 444M 1.2G 28% / devtmpfs 83M 0 83M 0% /dev tmpfs 231M 0 231M 0% /dev/shm tmpfs 231M 236K 231M 1% /run tmpfs 231M 0 231M 0% /sys/fs/cgroup tmpfs 231M 0 231M 0% /tmp /dev/mmcblk0p1 90M 24M 67M 27% /boot
2. Using the command fdisk will edit the filesystem /dev/mmcblk0:
[root@alarmpi ~]# fdisk /dev/mmcblk0 Welcome to fdisk (util-linux 2.23.1). Changes will remain in memory simply, until you decide to write them. Be conscientious earlier using the write control. Control (m for help):
iii. List the information and delete partition 2
Command (m for assistance): p Deejay /dev/mmcblk0: 7969 MB, 7969177600 bytes, 15564800 sectors Units = sectors of i * 512 = 512 bytes Sector size (logical/concrete): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk characterization type: dos Disk identifier: 0x00057540 Device Kick Start Stop Blocks Id System /dev/mmcblk0p1 2048 186367 92160 c W95 FAT32 (LBA) /dev/mmcblk0p2 186368 3667967 1740800 5 Extended /dev/mmcblk0p5 188416 3667967 1739776 83 Linux Control (m for help): d Partition number (1,2,5, default 5): ii Sectionalization 2 is deleted Command (chiliad for help):
Advertisement:
4. Create a new extended partition a logical book
Control (m for aid): northward Partitioning type: p primary (i principal, 0 extended, 3 costless) e extended Select (default p): eastward Division number (ii-4, default 2): two Outset sector (186368-15564799, default 186368): Using default value 186368 Concluding sector, +sectors or +size{G,One thousand,G} (186368-15564799, default 15564799): Using default value 15564799 Partition 2 of blazon Extended and of size 7.3 GiB is set up Command (m for help): n Partition type: p primary (1 chief, ane extended, 2 free) l logical (numbered from 5) Select (default p): l Adding logical partition 5 First sector (188416-15564799, default 188416): Using default value 188416 Final sector, +sectors or +size{Thou,M,Thou} (188416-15564799, default 15564799): Using default value 15564799 Sectionalization 5 of blazon Linux and of size vii.3 GiB is prepare Command (m for help):
5. !! Cheque whether summit block starts in the same place equally the original (kickoff)
Command (thou for help): p Disk /dev/mmcblk0: 7969 MB, 7969177600 bytes, 15564800 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/concrete): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk characterization type: dos Deejay identifier: 0x00057540 Device Boot Start End Blocks Id System /dev/mmcblk0p1 2048 186367 92160 c W95 FAT32 (LBA) /dev/mmcblk0p2 186368 15564799 7689216 v Extended /dev/mmcblk0p5 188416 15564799 7688192 83 Linux Command (one thousand for help):
vi. If it starts once more (in this case on 186368 p2 a 188416 p5) write changes and reboot.
Command (k for help): w The partition table has been altered! Calling ioctl() to re-read division 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 later on you run partprobe(8) or kpartx(viii) Syncing disks. [root@alarmpi ~]# reboot
seven. After booting the organisation we online enlarge root partitions
[root@alarmpi ~]# resize2fs /dev/mmcblk0p5 resize2fs 1.42.viii (20-Jun-2013) Filesystem at /dev/mmcblk0p5 is mounted on /; on-line resizing required old_desc_blocks = 1, new_desc_blocks = ane The filesystem on /dev/mmcblk0p5 is at present 1922048 blocks long.
8. Check and information technology is washed :-)
[root@alarmpi ~]# df -h Filesystem Size Used Avail Employ% Mounted on /dev/root seven.3G 447M vi.5G 7% / devtmpfs 83M 0 83M 0% /dev tmpfs 231M 0 231M 0% /dev/shm tmpfs 231M 236K 231M one% /run tmpfs 231M 0 231M 0% /sys/fs/cgroup tmpfs 231M 0 231M 0% /tmp /dev/mmcblk0p1 90M 24M 67M 27% /kick
In this case we accept used 8GB SD bill of fare.
How To Uncrease Partition Size In Archlinux,
Source: https://raspberry-hosting.com/en/faq/how-expand-arch-linux-root-partition
Posted by: carlsonyebbeet79.blogspot.com
0 Response to "How To Uncrease Partition Size In Archlinux"
Post a Comment