Skip to content
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

Extend the fs... e2fsck: No such file or directory while trying to open /dev/sdcp1 #43

Closed
vcasadei opened this issue Jul 9, 2021 · 1 comment

Comments

@vcasadei
Copy link

vcasadei commented Jul 9, 2021

My SDCard is mounted to /dev/sdc and when I try to run the flash-image.sh script it returns the following output:

sudo ./flash-image.sh /home/vcasadei/jetson_build/Linux_for_Tegra/tools/jetson.img /dev/sdc
2591031296 bytes (2,6 GB, 2,4 GiB) copied, 11 s, 230 MB/s
617+1 records in
617+1 records out
2591031296 bytes (2,6 GB, 2,4 GiB) copied, 182,556 s, 14,2 MB/s
[OK]
Extend the partition... The operation has completed successfully.
[OK]
Extend the fs... e2fsck: No such file or directory while trying to open /dev/sdcp1

This refers to lines 66-69 from the script:

# Extend fs
printf "\e[32mExtend the fs... "
e2fsck -fp $2"p1" > /dev/null
resize2fs $2"p1" > /dev/null

https://github.com/pythops/jetson-nano-image/blob/3d14b7622cf8e0e72e5f23665898b94a684bd855/flash-image.sh#L68

Is this "p" correct in this code?

@pythops
Copy link
Owner

pythops commented Jul 10, 2021

Yes it is correct when the system recognize the sd card as /dev/mmcblk0
In your case, you need to remove p so it becomes

e2fsck -fp $2"1" > /dev/null
resize2fs $2"1" > /dev/null

@pythops pythops closed this as completed Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants