Skip to contentSkip to conversation

search command doesn't find anything

DISCUSSION Klemens Nanni 2 participants 2 messages Sep 24, 2015

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello,

using GRUB as of commit 7a210304 as autoboot payload.

I've got an USB device containing a file in it's root directory (ext4 formatted SD card).

	$ cat (usb0,1)/file_to_find

shows me the file's content as expected. However I wasn't able find the device using GRUB's search command:

	$ search --file file_to_find
	$ search --file file_to_find --hint=usb0
	$ search --hint=usb0
	$ search --label SD
	$ ...

In fact, not a single variation of the search command worked: I couldn't find a any device no matter if looking for files, labels or using hints. According to search's help text, the above mentioned commands seem to be correct.

To be clear: Every device or file I was searching for was available all the time and could be accessed using 'ls' and 'cat'.

Am I missing something or is 'search' broken?

Regards,
Klemens Nanni
- --
Encrypt your messages using GNUPG if you can - nobody likes snoopers! For more detailed information, look at the FSF's Email Self-Defense Guideguide under https://emailselfdefense.fsf.org
Autoboot Key ID: 0xB375A7EE | fingerprint: 6D43 AB28 A92C 9278 E8F8 40A9 0A3A 37D8 B375 A7EE
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJWA8T2AAoJEAo6N9izdafunHIQAKnXXMGPRu10fTQBdzTRqUtG 7lLoVA7RSCegNCk0YYPoorWie5Qn/GTOoyV7DSyBfOYX5Hym+Qnqw9u5+hjCTOTn EjSuOHTI/2JAJbV170g+2/C2Sw9nic8dGBvzy4VnuORKGHq1uh1rYwlzScdX0ZUK uGuNlFEtNii+QtdK4KNqKy5zLMrdNHwRgCZJ92iWn6tHSDWJ/JL8UxbbH1BQui+p ZAKaUPWcRU9P0vcLsr2XmeLU4+ESOMPl3VZ22/5gd1WuL5IBbGYlfkfUeM0BSwi0 co/qz1o7JFCOebVuZqG3Iy4pGLnOzVkreHjUXaFd12AaoJum9nB7670LCCHgV27F edyJ8/p1aipkxxJ1z0LBjgeYM3nIdwpvsgI3C/u4sQjWrDY9m9XeF5ASFji2lsv1 cZdgMt+2AaQRUNew+xClf3J6XsjWA3EE3ahF8ehcwwDOFOUIW+PCXqidzk//8EGu KRea/fE7aXtJK+aJGb1ZENVD0Ci9uAuNSlStbQBCpqbEFQqBTArdmDZlfuqot/wn WyPHVhK0k/2T5v6SRma5EEzLw5Q3fIurX7NdzMzj2pJZVq3rHlTOTRyLOSoLTWJO fDNS26D7XbmSD2QitVGXoVE3qrm2k8UYx6bWKa9rpIWcRevX22pOVQLsT7t16cqp +9R2lFkOxlzzHp9nSXz6
=y0ar
-----END PGP SIGNATURE-----

#1 lore raw
Quoted 10 lines · Klemens Nanni

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Hello,

using GRUB as of commit 7a210304 as autoboot payload.

I've got an USB device containing a file in it's root directory (ext4 formatted SD card).

Quoted 6 lines
        $ cat (usb0,1)/file_to_find

shows me the file's content as expected. However I wasn't able find the device using GRUB's search command:

        $ search --file file_to_find

Do you use full name starting with "/"?

Quoted 44 lines
        $ search --file file_to_find --hint=usb0
        $ search --hint=usb0
        $ search --label SD
        $ ...

In fact, not a single variation of the search command worked: I couldn't find a any device no matter if looking for files, labels or using hints. According to search's help text, the above mentioned commands seem to be correct.

To be clear: Every device or file I was searching for was available all the time and could be accessed using 'ls' and 'cat'.

Am I missing something or is 'search' broken?

Regards,
Klemens Nanni
- --
Encrypt your messages using GNUPG if you can - nobody likes snoopers! For more detailed information, look at the FSF's Email Self-Defense Guideguide under https://emailselfdefense.fsf.org
Autoboot Key ID: 0xB375A7EE | fingerprint: 6D43 AB28 A92C 9278 E8F8 40A9 0A3A 37D8 B375 A7EE
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJWA8T2AAoJEAo6N9izdafunHIQAKnXXMGPRu10fTQBdzTRqUtG 7lLoVA7RSCegNCk0YYPoorWie5Qn/GTOoyV7DSyBfOYX5Hym+Qnqw9u5+hjCTOTn EjSuOHTI/2JAJbV170g+2/C2Sw9nic8dGBvzy4VnuORKGHq1uh1rYwlzScdX0ZUK uGuNlFEtNii+QtdK4KNqKy5zLMrdNHwRgCZJ92iWn6tHSDWJ/JL8UxbbH1BQui+p ZAKaUPWcRU9P0vcLsr2XmeLU4+ESOMPl3VZ22/5gd1WuL5IBbGYlfkfUeM0BSwi0 co/qz1o7JFCOebVuZqG3Iy4pGLnOzVkreHjUXaFd12AaoJum9nB7670LCCHgV27F edyJ8/p1aipkxxJ1z0LBjgeYM3nIdwpvsgI3C/u4sQjWrDY9m9XeF5ASFji2lsv1 cZdgMt+2AaQRUNew+xClf3J6XsjWA3EE3ahF8ehcwwDOFOUIW+PCXqidzk//8EGu KRea/fE7aXtJK+aJGb1ZENVD0Ci9uAuNSlStbQBCpqbEFQqBTArdmDZlfuqot/wn WyPHVhK0k/2T5v6SRma5EEzLw5Q3fIurX7NdzMzj2pJZVq3rHlTOTRyLOSoLTWJO fDNS26D7XbmSD2QitVGXoVE3qrm2k8UYx6bWKa9rpIWcRevX22pOVQLsT7t16cqp +9R2lFkOxlzzHp9nSXz6
=y0ar
-----END PGP SIGNATURE-----

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel