Error When Trying to Resize Samples Partition
Started by cforster




3 posts in this topic
cforster

4 posts 2 threads Joined: Jun 2021
12-06-21, 16:08 -
#1
Hi Folks,

Thanks so much to Hans for this distro, and for keeping the SamplerBox project alive. I just discovered it in the last week and it seems great.

I have the latest image (Box20210521.img) running on an SD card on a Raspberry Pi Model B (I hadn't realize how old this one was when I dug it up...). I can use the default instrument, change instrument using the web interface (so the age/specs of the Pi don't appear to be a problem).

I followed the directions for enlarging the samples partition, sshing into the SamplerBox, but at the final step, when I go to write the new partition table to disk, I get the following error:

Quote:The partition table has been altered.
Calling ioctl() to re-read partition table.
Re-reading the partition table failed.: Device or resource busy

The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).

After reboot, however, the partition remains the same size. Here is the output of df -h

Quote:root@samplerbox:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/mmcblk0p2  1.6G 1006M  470M  69% /
/dev/mmcblk0p1  64M  22M  43M  34% /boot
/dev/mmcblk0p3  128M  106M  23M  83% /samples


Yet if I run fdisk and print the partition table, it has remembered the resize through the reboot (apologies for the large paste--I'm not sure what info could be relevant here):


Quote:root@samplerbox:~# fdisk /dev/mmcblk0

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): p
Disk /dev/mmcblk0: 7.5 GiB, 8010072064 bytes, 15644672 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: 0x67e24ed1

Device        Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk0p1 *      2048  133119  131072  64M  c W95 FAT32 (LBA)
/dev/mmcblk0p2      133120  3459071  3325952  1.6G 83 Linux
/dev/mmcblk0p3      3459072 15644671 12185600  5.8G  7 HPFS/NTFS/exFAT

I've tried a few different SD cards, but always the same problem. Any ideas?

Thanks,

Chris


Messages In This Thread
Error When Trying to Resize Samples Partition - by cforster - 12-06-21, 16:08