Forum » Operacijski sistemi » Kako resize linux particije na SD kartici (Debian)
Kako resize linux particije na SD kartici (Debian)
HotBurek ::
Pozdravljeni.
Imam 32GB SD kartico, na katero sem zapekel img file. Na SD kartici sta sedaj dve particiji:
df -h
/dev/sdb1 50M 13M 38M 26% /media/user/BOOT
/dev/sdb2 7.0G 5.4G 1.3G 81% /media/user/ROOTFS
Ta druge particije mi nikakor ne uspe raztegnati na max.
resize_rootfs.sh izpiše takole:
Disk /dev/mmcblk0: 28.9 GiB, 31046238208 bytes, 60637184 sectors
...
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 40960 143359 102400 50M e W95 FAT16 (LBA)
/dev/mmcblk0p2 143360 14884863 14741504 7G 83 Linux
...
Imam 32GB SD kartico, na katero sem zapekel img file. Na SD kartici sta sedaj dve particiji:
df -h
/dev/sdb1 50M 13M 38M 26% /media/user/BOOT
/dev/sdb2 7.0G 5.4G 1.3G 81% /media/user/ROOTFS
Ta druge particije mi nikakor ne uspe raztegnati na max.
resize_rootfs.sh izpiše takole:
Disk /dev/mmcblk0: 28.9 GiB, 31046238208 bytes, 60637184 sectors
...
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 40960 143359 102400 50M e W95 FAT16 (LBA)
/dev/mmcblk0p2 143360 14884863 14741504 7G 83 Linux
...
root@debian:/# iptraf-ng
fatal: This program requires a screen size of at least 80 columns by 24 lines
Please resize your window
fatal: This program requires a screen size of at least 80 columns by 24 lines
Please resize your window
HotBurek ::
Zadeva rešena:
root@pine64:/# parted
GNU Parted 3.2
Using /dev/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) resizepart
Partition number? 2
Warning: Partition /dev/mmcblk0p2 is being used. Are you sure you want to continue?
Yes/No? Yes
End? [31.0GB]? 31000
(parted) print
Model: SD SA32G (sd/mmc)
Disk /dev/mmcblk0: 31.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 21.0MB 73.4MB 52.4MB primary fat16 lba
2 73.4MB 31.0GB 30.9GB primary ext4
(parted)
root@pine64:/# parted
GNU Parted 3.2
Using /dev/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) resizepart
Partition number? 2
Warning: Partition /dev/mmcblk0p2 is being used. Are you sure you want to continue?
Yes/No? Yes
End? [31.0GB]? 31000
(parted) print
Model: SD SA32G (sd/mmc)
Disk /dev/mmcblk0: 31.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 21.0MB 73.4MB 52.4MB primary fat16 lba
2 73.4MB 31.0GB 30.9GB primary ext4
(parted)
root@debian:/# iptraf-ng
fatal: This program requires a screen size of at least 80 columns by 24 lines
Please resize your window
fatal: This program requires a screen size of at least 80 columns by 24 lines
Please resize your window
HotBurek ::
Ne, ne štekam. :)
Situacija je trenutno taka:
root@pine64:/# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk0p2 20G 4.4G 15G 24% /
devtmpfs 458M 0 458M 0% /dev
tmpfs 491M 0 491M 0% /dev/shm
tmpfs 491M 6.9M 484M 2% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 491M 0 491M 0% /sys/fs/cgroup
/dev/mmcblk0p1 50M 13M 38M 26% /boot
tmpfs 99M 0 99M 0% /run/user/0
root@pine64:/# parted
GNU Parted 3.2
Using /dev/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: SD SA32G (sd/mmc)
Disk /dev/mmcblk0: 31.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 21.0MB 73.4MB 52.4MB primary fat16 lba
2 73.4MB 31.0GB 30.9GB primary ext4
(parted) q
root@pine64:/#
En kaže 20GB, drugi 30GB. Vsekakor pa ni več 8GB, kot je bil velik začetni imiđ.
Situacija je trenutno taka:
root@pine64:/# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mmcblk0p2 20G 4.4G 15G 24% /
devtmpfs 458M 0 458M 0% /dev
tmpfs 491M 0 491M 0% /dev/shm
tmpfs 491M 6.9M 484M 2% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 491M 0 491M 0% /sys/fs/cgroup
/dev/mmcblk0p1 50M 13M 38M 26% /boot
tmpfs 99M 0 99M 0% /run/user/0
root@pine64:/# parted
GNU Parted 3.2
Using /dev/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: SD SA32G (sd/mmc)
Disk /dev/mmcblk0: 31.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 21.0MB 73.4MB 52.4MB primary fat16 lba
2 73.4MB 31.0GB 30.9GB primary ext4
(parted) q
root@pine64:/#
En kaže 20GB, drugi 30GB. Vsekakor pa ni več 8GB, kot je bil velik začetni imiđ.
root@debian:/# iptraf-ng
fatal: This program requires a screen size of at least 80 columns by 24 lines
Please resize your window
fatal: This program requires a screen size of at least 80 columns by 24 lines
Please resize your window
Zgodovina sprememb…
- spremenilo: HotBurek ()
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | backup celega telefona ?Oddelek: Mobilne tehnologije | 4425 (1060) | klinker |
» | Kako v Linuxu (RedPitaya) kompletno onemogočiti USB napraveOddelek: Operacijski sistemi | 1311 (1052) | misek |
» | Win7 se noče zagnatiOddelek: Pomoč in nasveti | 1101 (1036) | killa bee |
» | SSD alignment pri dual-bootuOddelek: Strojna oprema | 1386 (1207) | CyberPunk |
» | SanDisk predstavil WORM (Write-Once Read-Many) karticeOddelek: Novice / Diski | 5846 (4090) | MrStein |