文書の過去の版を表示しています。
DietPi のドライブ管理 (DietPi-Drive_Manager)
SD カードの領域拡張
$ sudo parted -l
Model: Unknown (unknown) Disk /dev/zram0: 499MB Sector size (logical/physical): 4096B/4096B Partition Table: loop Disk Flags: Number Start End Size File system Flags 1 0.00B 499MB 499MB linux-swap(v1) Model: SD SA256 (sd/mmc) Disk /dev/mmcblk0: 250GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 4194kB 138MB 134MB primary fat32 boot, lba 2 138MB 1989MB 1851MB primary ext4
$ sudo dietpi-drive_manager
[ INFO ] DietPi-Drive_Manager | Detecting drives, please wait... [ INFO ] DietPi-Drive_Manager | - Detected mounted physical drive: /dev/mmcblk0p2 > / [ INFO ] DietPi-Drive_Manager | - Detected mounted physical drive: /dev/mmcblk0p1 > /boot [ INFO ] DietPi-Drive_Manager | - Detected unmounted drive: /dev/zram0 [ OK ] DietPi-Drive_Manager | mv .fstab /etc/fstab [ OK ] DietPi-Drive_Manager | systemctl daemon-reload [ INFO ] DietPi-Drive_Manager | Checking for required APT packages: e2fsprogs [ OK ] DietPi-Drive_Manager | sync ---RPi Zero W (armv6l) | IP: 192.168.1.201---┌───────────────────────────────────────────────┤ DietPi-Drive_Manager ├───────────────────────────────────────────────┐ │ Please select a drive to see available options. │ │ - User data location: RootFS (/mnt/dietpi_userdata) │ │ │ │ ●─ mmcblk0 ─────────────────────────────────────────────── │ │ / : /dev/mmcblk0p2 | ext4 | Capacity: 1.7G | Used: 1.5G (90%) │ │ /boot : /dev/mmcblk0p1 | vfat | Capacity: 126M | Used: 50.7M (40%) │ │ ●─ zram0 ──────────────────────────────────────────────── │ │ /mnt/75eebb29-af8d-49e5-9973-ad5d342df36c : /dev/zram0 | swap | Not mounted │ │ ●─ Global Options ─────────────────────────────────────────● │ │ Idle Spindown : Set a global idle duration, before drives power down │ │ ●─ Add / Refresh Drives ───────────────────────────────────● │ │ Add network drive : Select to mount networked drives │ │ Refresh : Scan for recently added/removed drives │ │ │ │ │ │ <Ok> <Exit> │ │ │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘RPi Zero W (armv6l) | IP: 192.168.1.201--- [ OK ] DietPi-Drive_Manager | systemctl enable dietpi-fs_partition_resize ---┌───────────────────────────────────────────────┤ DietPi-Drive_Manager ├───────────────────────────────────────────────┐ │ Mount target: / │ │ Mount source: /dev/mmcblk0p2 │ │ Filesystem: ext4 │ │ UUID: 14fcf30d-e3ea-40e7-be42-2304f593b40e │ │ Allocation: Capacity: 1.7GiB | Used: 1.5GiB (90%) │ │ Status: Drive is online and ready for use │ │ Read only: Disabled │ │ │ │ ●─ Benchmark Options ─────────────────────────────────────● │ │ Benchmark : Test read and write speeds │ │ ●─ Userdata & Swap options ───────────────────────────────● │ │ User data : [X] | DietPi user data is currently located on this drive │ │ Swap file : [ ] | Select to transfer swapfile to this drive │ │ ●─ Advanced options ──────────────────────────────────────● │ │ Read Only : [ ] | Select to toggle RW/RO modes │ │ Reserved blocks : [79 MiB] | Space reserved for root user │ │ Check & Repair : Check and optionally repair filesystem │ │ Resize : Maximize the available filesystem size │ │ I/O Scheduler : [mq-deadline] │ │ │ │ │ │ <Ok> <Back> │ │ │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘RPi Zero W (armv6l) | IP: 192.168.1.201┌───────────────────────────────────────────────┤ DietPi-Drive_Manager ├───────────────────────────────────────────────┐ │ │ │ RootFS resize will occur on next reboot. │ │ │ │ Would you like to reboot the system now? │ │ │ │ <Ok> <Cancel> │ │ │ └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
$ sudo parted -l
Model: Unknown (unknown) Disk /dev/zram0: 499MB Sector size (logical/physical): 4096B/4096B Partition Table: loop Disk Flags: Number Start End Size File system Flags 1 0.00B 499MB 499MB linux-swap(v1) Model: SD SA256 (sd/mmc) Disk /dev/mmcblk0: 250GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags: Number Start End Size Type File system Flags 1 4194kB 138MB 134MB primary fat32 boot, lba 2 138MB 250GB 250GB primary ext4