Extend the fs... e2fsck: No such file or directory while trying to open /dev/sdcp1
vcasadei opened this issue · comments
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
Is this "p" correct in this code?
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