You have to delete the NTFS partition first.From Kubuntu can’t expand ext4 partition
I know but can’t expand ext 4 partition to unformatted place.You have to delete the NTFS partition first.
Try using GParted.I know but can’t expand ext 4 partition to unformatted place.
I use only GPartedTry using GParted.
What error message are you getting?I use only GParted
Any error, just from gparted and any other program to manage partition on ext4 partition can’t do it resizing.What error message are you getting?
Tis is typically the problem when trying to perform any partition operations with ext4. There is typically either an active program preventing the partition from being umounted before performing the operations, or the userland is forgetting to dismount before performing the operations.Is the ext4 partition mounted while you're making the attempt?
lsof
.lsof
where router processes were performing "scanning" rituals on the partition I wanted to unmount.lsof /dev/sda1
<<<------Adjust the path to the device according to your setup needs.455509 /usr/sbin/vsftpd /dev/null
455509 /usr/sbin/vsftpd /dev/null
455509 /usr/sbin/vsftpd /dev/null
455509 /usr/sbin/vsftpd socket:[2136]
455509 /usr/sbin/vsftpd /proc/1/mounts
455509 /usr/sbin/vsftpd /var/lock/usbnas.lock
455509 /usr/sbin/vsftpd socket:[2458379]
455512 /usr/sbin/mt-daapd /dev/null
455512 /usr/sbin/mt-daapd /dev/null
455512 /usr/sbin/mt-daapd /dev/null
455512 /usr/sbin/mt-daapd socket:[2136]
455512 /usr/sbin/mt-daapd /proc/1/mounts
455512 /usr/sbin/mt-daapd /var/lock/usbnas.lock
455512 /usr/sbin/mt-daapd /tmp/mnt/sdb1/.mt-daapd/songs.gdb
455512 /usr/sbin/mt-daapd socket:[2458548]
455512 /usr/sbin/mt-daapd socket:[2458462]
455515 /usr/sbin/minidlna /dev/null
455515 /usr/sbin/minidlna /dev/null
455515 /usr/sbin/minidlna /dev/null
455515 /usr/sbin/minidlna /tmp/mnt/sdb1/.minidlna/minidlna.log
455515 /usr/sbin/minidlna /tmp/mnt/sdb1/.minidlna/files.db
455515 /usr/sbin/minidlna socket:[2458695]
455515 /usr/sbin/minidlna socket:[2458696]
455515 /usr/sbin/minidlna socket:[2458701]
455515 /usr/sbin/minidlna anon_inode:inotify
455528 /usr/sbin/miniupnpd /dev/null
455528 /usr/sbin/miniupnpd /dev/null
455528 /usr/sbin/miniupnpd /dev/null
455528 /usr/sbin/miniupnpd socket:[2136]
455528 /usr/sbin/miniupnpd /proc/1/mounts
455528 /usr/sbin/miniupnpd socket:[2458781]
455528 /usr/sbin/miniupnpd socket:[2458782]
455528 /usr/sbin/miniupnpd socket:[2458783]
455528 /usr/sbin/miniupnpd socket:[2458785]
455528 /usr/sbin/miniupnpd socket:[2458787]
455528 /usr/sbin/miniupnpd /dev/urandom
Ok but i trying resize partition under on pc from linux running on usb stick live and always unmount usb hddTis is typically the problem when trying to perform any partition operations with ext4. There is typically either an active program preventing the partition from being umounted before performing the operations, or the userland is forgetting to dismount before performing the operations.
One way to tell if a program is actively hindering the umount process is to uselsof
.
For example, I have seen instances usinglsof
where router processes were performing "scanning" rituals on the partition I wanted to unmount.
lsof /dev/sda1
<<<------Adjust the path to the device according to your setup needs.
Below shows some example router processes which will prevent the unmount of partitions.
Code:455509 /usr/sbin/vsftpd /dev/null 455509 /usr/sbin/vsftpd /dev/null 455509 /usr/sbin/vsftpd /dev/null 455509 /usr/sbin/vsftpd socket:[2136] 455509 /usr/sbin/vsftpd /proc/1/mounts 455509 /usr/sbin/vsftpd /var/lock/usbnas.lock 455509 /usr/sbin/vsftpd socket:[2458379] 455512 /usr/sbin/mt-daapd /dev/null 455512 /usr/sbin/mt-daapd /dev/null 455512 /usr/sbin/mt-daapd /dev/null 455512 /usr/sbin/mt-daapd socket:[2136] 455512 /usr/sbin/mt-daapd /proc/1/mounts 455512 /usr/sbin/mt-daapd /var/lock/usbnas.lock 455512 /usr/sbin/mt-daapd /tmp/mnt/sdb1/.mt-daapd/songs.gdb 455512 /usr/sbin/mt-daapd socket:[2458548] 455512 /usr/sbin/mt-daapd socket:[2458462] 455515 /usr/sbin/minidlna /dev/null 455515 /usr/sbin/minidlna /dev/null 455515 /usr/sbin/minidlna /dev/null 455515 /usr/sbin/minidlna /tmp/mnt/sdb1/.minidlna/minidlna.log 455515 /usr/sbin/minidlna /tmp/mnt/sdb1/.minidlna/files.db 455515 /usr/sbin/minidlna socket:[2458695] 455515 /usr/sbin/minidlna socket:[2458696] 455515 /usr/sbin/minidlna socket:[2458701] 455515 /usr/sbin/minidlna anon_inode:inotify 455528 /usr/sbin/miniupnpd /dev/null 455528 /usr/sbin/miniupnpd /dev/null 455528 /usr/sbin/miniupnpd /dev/null 455528 /usr/sbin/miniupnpd socket:[2136] 455528 /usr/sbin/miniupnpd /proc/1/mounts 455528 /usr/sbin/miniupnpd socket:[2458781] 455528 /usr/sbin/miniupnpd socket:[2458782] 455528 /usr/sbin/miniupnpd socket:[2458783] 455528 /usr/sbin/miniupnpd socket:[2458785] 455528 /usr/sbin/miniupnpd socket:[2458787] 455528 /usr/sbin/miniupnpd /dev/urandom
It is important to first verify these processes are not performing important tasks before interrupting them to unmount.
One way to unmount in a way which prevents interruption is to "lazy" umount, but this requires waiting for an uncertain amount of time to completely unmount the partition.
Thread starter | Title | Forum | Replies | Date |
---|---|---|---|---|
D | File Copied to JFFS Partition Gets Deleted Automatically | Asuswrt-Merlin | 5 | |
K | only 3.3MB of free space left in the '/jffs' partition. | Asuswrt-Merlin | 1 |
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!