Installing an OS over the existing OS

Ian Bruntlett ian.bruntlett at gmail.com
Sun Feb 19 19:16:58 UTC 2023


Hi Phil,

On Sun, 19 Feb 2023 at 03:33, Phil <phillor9 at gmail.com> wrote:

>
> On 19/2/23 10:44, Aaron Rainbolt wrote:
> "ls" anything at the grub rescue prompt gives the same result "unknown
> filesystem"
>


I remember that GRUB's ls works slightly differently to Linux's ls command.

To quote hopefully relevant points from the GRUB online manual:-
https://www.gnu.org/software/grub/manual/grub/html_node/File-name-syntax.html#File-name-syntax


*13.2 How to specify files*
There are two ways to specify files, by absolute file name and by block
list.

An absolute file name resembles a Unix absolute file name, using ‘/’ for
the directory separator (not ‘\’ as in DOS). One example is
‘(hd0,1)/boot/grub/grub.cfg’. This means the file /boot/grub/grub.cfg in
the first partition of the first hard disk. If you omit the device name in
an absolute file name, GRUB uses GRUB’s root device implicitly. So if you
set the root device to, say, ‘(hd1,1)’ by the command ‘set root=(hd1,1)’
(see set), then /boot/kernel is the same as (hd1,1)/boot/kernel.


This might be of interest:
https://www.gnu.org/software/grub/manual/grub/html_node/ls.html#ls


*Command: ls [arg …]    List devices or files.*    With no arguments, print
all devices known to GRUB.
    If the argument is a device name enclosed in parentheses (see Device
syntax), then print the name of the filesystem of that device.
    If the argument is a directory given as an absolute file name (see File
name syntax), then list the contents of that directory.

HTH,


Ian

-- 
-- ACCU - Professionalism in programming - http://www.accu.org
-- My writing - https://sites.google.com/site/ianbruntlett/
-- Free Software page -
https://sites.google.com/site/ianbruntlett/home/free-software
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20230219/9994f213/attachment.html>


More information about the ubuntu-users mailing list