GNU bug report logs -
#48432
parted commands not executing from startup script
Previous Next
To reply to this bug, email your comments to 48432 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-parted <at> gnu.org
:
bug#48432
; Package
parted
.
(Sat, 15 May 2021 05:17:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Deepak Bevinamara <deepak.bevinamara <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-parted <at> gnu.org
.
(Sat, 15 May 2021 05:17:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi,
I have created a startup script which is executed only one after flashing a
image on a board.
The commands in the script are as follows and don't take any effect:
#!/usr/bin/sh
parted -s /dev/mmcblk0 unit s resizepart 4 Yes 124321791s
parted -s /dev/mmcblk0 unit s resizepart 6 Yes 65597439s
resize2fs -f /dev/mmcblk0p6
parted -s /dev/mmcblk0 unit s mkpart logical ext2 65599488s 124321791s
mkfs.ext4 -F -q -b 4096 -L BACKUP -O ^huge_file,^64bit,^metadata_csum
/dev/mmcblk0p7
However the above commands work perfectly, when executed from the command
line.
Is it because the parted commands cannot be executed from non-interactive
shells?
Clarification is greatly appreciated.
Thanks,
Deepak.
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-parted <at> gnu.org
:
bug#48432
; Package
parted
.
(Sat, 15 May 2021 16:06:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 48432 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello, Deepak,
I do not know if it is the case but perhaps it is better to explicitly
specify the path to the commands, I mean calling them like this:
/sbin/parted
/sbin/resize2fs
/sbin/mkfs.ext3
Regards,
Josep
Missatge de Deepak Bevinamara <deepak.bevinamara <at> gmail.com> del dia ds., 15
de maig 2021 a les 7:17:
> Hi,
>
> I have created a startup script which is executed only one after flashing
> a image on a board.
> The commands in the script are as follows and don't take any effect:
>
> #!/usr/bin/sh
> parted -s /dev/mmcblk0 unit s resizepart 4 Yes 124321791s
> parted -s /dev/mmcblk0 unit s resizepart 6 Yes 65597439s
> resize2fs -f /dev/mmcblk0p6
> parted -s /dev/mmcblk0 unit s mkpart logical ext2 65599488s 124321791s
> mkfs.ext4 -F -q -b 4096 -L BACKUP -O ^huge_file,^64bit,^metadata_csum
> /dev/mmcblk0p7
>
> However the above commands work perfectly, when executed from the command
> line.
> Is it because the parted commands cannot be executed from non-interactive
> shells?
> Clarification is greatly appreciated.
>
> Thanks,
> Deepak.
>
[Message part 2 (text/html, inline)]
This bug report was last modified 3 years and 175 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.