-
Notifications
You must be signed in to change notification settings - Fork 617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"parted: invalid token: primary Error: Expecting a file system type." 2 images #150
Comments
Remove quotes in this line around |
Hm ... add following line |
man parted gives
and the parted command shown complies to this syntax. You get various hits when you search for |
I think, the probem is. |
Correct, you do need a full image of the sd card not just a single partition. I'm going to leave this ticket open to try and detect this case and print a better error message |
Hello. I'm facing the exact same problem. |
same error at line 376. |
Hello@all
My Sd card from my pi are broken, with tet disk i can make 2 image.dd files from the /boot and the ext4 partion from the Card.
The main card was 64gb large, now I want to reduce the size of the 64gb image file.
How do I do that?
A simple ./pishrink.sh -vd /mnt/f/assas/pishrink.bin does nothing.
`pishrink.sh v0.1.2
pishrink.sh: Gathering data ...
Line 296
beforesize: 60G
parted_output: BYT;
/mnt/f/assas/pishrink.bin:63591940096B:file:512:512:loop::;
1:0B:63591940095B:63591940096B:ext4::;
partnum: 1
partstart: 0
parttype: primary
tune2fs_output: tune2fs 1.45.5 (07-Jan-2020)
Filesystem volume name: rootfs
Last mounted on: /tmp/tmp.7atigx17sv
Filesystem UUID: 8f2a74a4-809c-471e-b4ad-a91bfd51d7c3
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal ext_attr resize_inode dir_index filetype extent flex_bg sparse_super large_file dir_nlink extra_isize
Filesystem flags: unsigned_directory_hash
Default mount options: user_xattr acl
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 812800
Block count: 3244676
Reserved block count: 133252
Free blocks: 99790
Free inodes: 583647
First block: 0
Block size: 4096
Fragment size: 4096
Reserved GDT blocks: 420
Blocks per group: 32768
Fragments per group: 32768
Inodes per group: 8128
Inode blocks per group: 508
Flex block group size: 16
Filesystem created: Thu Feb 13 17:30:14 2020
Last mount time: Fri Jul 3 14:38:44 2020
Last write time: Fri Jul 3 14:39:52 2020
Mount count: 0
Maximum mount count: -1
Last checked: Fri Jul 3 14:38:44 2020
Check interval: 0 ()
Lifetime writes: 414 GB
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 256
Required extra isize: 32
Desired extra isize: 32
Journal inode: 8
Default directory hash: half_md4
Directory Hash Seed: 8e66eea2-36ac-4fec-b5f4-bb012aa2cfca
Journal backup: inode blocks
currentsize: 3244676
blocksize: 4096
pishrink.sh: Checking filesystem ...
rootfs: Inode 7272 extent tree (at level 1) could be narrower. IGNORED.
rootfs: Inode 45097 extent tree (at level 2) could be narrower. IGNORED.
rootfs: Inode 46904 extent tree (at level 2) could be narrower. IGNORED.
rootfs: Inode 520487 extent tree (at level 2) could be narrower. IGNORED.
rootfs: 229153/812800 files (0.4% non-contiguous), 3144886/3244676 blocks
resize2fs 1.45.5 (07-Jan-2020)
Line 325
currentsize: 3244676
minsize: 3239630
Line 333
extra_space: 5046
Line 340
minsize: 3244630
pishrink.sh: Shrinking filesystem ...
resize2fs 1.45.5 (07-Jan-2020)
Resizing the filesystem on /dev/loop2 to 3244630 (4k) blocks.
Begin pass 2 (max = 46)
Relocating blocks ----------------------------------------����������������������������������������XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Begin pass 3 (max = 100)
Scanning inode table ----------------------------------------����������������������������������������XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The filesystem on /dev/loop2 is now 3244630 (4k) blocks long.
Line 359
partnewsize: 13290004480
newpartend: 13290004480
parted: invalid token: primary
Error: Expecting a file system type.
pishrink.sh: ERROR occured in line 370: parted failed with rc 1
`
Can anybody help me, please?
Greetz Conan
The text was updated successfully, but these errors were encountered: