Documenting Problems That Were Difficult To Find The Answer To

Cloned My Drive, Now Grub Cannot Find LS Command

You’re sitting looking at a basic grub prompt. You type in “ls” in the hope you see something:

grub> ls

Error 27: Unrecognized command


Well, I don’t know how you can fix this (get the ls command back). But I did figure out how to boot my cloned drive. And the tab key is your friend. If you type “root” you can find out information about your current drive, but the key is to hit tab twice after entering slash after a command such as “kernel”.

You hit the following commands:

grub> kernel /vm[tab]linuz-3.13.0-[tab][tab]
vmlinuz-3.13.0-55-generic  vmlinuz-3.13.0-86-generic
grub> kernel /vmlinuz-3.13.0-86-generic
grub> initrd /initrd.img-3.13.0-86-generic
grub> boot

Now if the boot seems to go successfully enough but you’re using crypto/encryption/dm-crypt/LUKS – then you might get a BusyBox prompt after you successfully enter your crypt partition password:


If this happens then you need to specify, to grub, on the kernel command line, where your root is. In my case root is found on the /dev/mapper/crypt device after decryption which must be subsequently mounted by Linux.

So to boot successfully I reboot and enter the following into grub:

grub> kernel /vmlinuz-3.13.0-86-generic root=/dev/mapper/crypt
grub> initrd /initrd.img-3.13.0-86-generic
grub> boot

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: