Discussion:
[fedora-arm] F29 beta - why does fsck not work from su?
Robert Moskowitz
2018-09-27 01:47:40 UTC
Permalink
No fsck!  'man fsck' works...

# fsck /dev/sdb
bash: fsck: command not found
[***@localhost rgm]# man fsck
[***@localhost rgm]# dnf whatprovides fsck
Last metadata expiration check: 2:12:23 ago on Wed 26 Sep 2018 07:28:29
PM EDT.
util-linux-2.32.1-1.fc29.armv7hl : A collection of basic system utilities
Repo        : @System
Matched from:
Filename    : /usr/sbin/fsck

util-linux-2.32.1-1.fc29.armv7hl : A collection of basic system utilities
Repo        : fedora
Matched from:
Filename    : /usr/sbin/fsck

[***@localhost rgm]# dnf install util-linux
Last metadata expiration check: 2:13:38 ago on Wed 26 Sep 2018 07:28:29
PM EDT.
Package util-linux-2.32.1-1.fc29.armv7hl is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!

ls /usr/sbin/fs*
/usr/sbin/fsadm        /usr/sbin/fsck.ext3   /usr/sbin/fsck.ntfs
/usr/sbin/fsck         /usr/sbin/fsck.ext4   /usr/sbin/fsck.vfat
/usr/sbin/fsck.btrfs   /usr/sbin/fsck.fat    /usr/sbin/fsck.xfs
/usr/sbin/fsck.cramfs  /usr/sbin/fsck.minix  /usr/sbin/fsfreeze
/usr/sbin/fsck.ext2    /usr/sbin/fsck.msdos  /usr/sbin/fstrim

================

works fine from console, logged in as root.

_______________________________________________
arm mailing list -- ***@lists.fedoraproject.org
To unsubscribe send an email to arm-***@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org
Stuart D. Gathman
2018-09-27 03:43:57 UTC
Permalink
No fsck!  'man fsck' works...
# fsck /dev/sdb
bash: fsck: command not found
Use su -
Plain su doesn't put /usr/sbin in your PATH
--
Stuart D. Gathman <***@gathman.org>
"Confutatis maledictis, flamis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.
Robert Moskowitz
2018-09-27 09:53:28 UTC
Permalink
Post by Stuart D. Gathman
Post by Robert Moskowitz
No fsck!  'man fsck' works...
# fsck /dev/sdb
bash: fsck: command not found
Use su -
Plain su doesn't put /usr/sbin in your PATH
A Dah moment...

thanks
_______________________________________________
arm mailing list -- ***@lists.fedoraproject.org
To unsubscribe send an email to arm-***@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproj
Matthew Miller
2018-09-27 15:18:40 UTC
Permalink
Post by Stuart D. Gathman
Post by Robert Moskowitz
No fsck!  'man fsck' works...
# fsck /dev/sdb
bash: fsck: command not found
Use su -
Plain su doesn't put /usr/sbin in your PATH
Or use /sbin/fsck


--
Matthew Miller
<***@fedoraproject.org>
Fedora Project Leader
_______________________________________________
arm mailing list -- ***@lists.fedoraproject.org
To unsubscribe send an email to arm-***@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/***@lists.fedorapro
Loading...