After installing Ubuntu on a Mass storage device I can't use RedHat. Error: No such device <hex number>
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
After installing Ubuntu on a Mass storage device I can't use RedHat. Error: No such device <hex number>
Hello.
So my computer has RedHat and I used a pendrive to instal ubuntu on a Mass Storage device to have a portable OS in case I need it.
The issue is that after installing Ubuntu on the external hard drive, when I unplug it, all I get is this error message:
Error: No such device <hex number>
grub rescue>
I tried to follow some youtube videos with not much of a success.
When I type:
grub rescue> ls
(hd0) (hd0,2) (hd0,1)
with any option I always get:
error: unknown filesystem.
If I type:
grub rescue> set
prefix=(hd0,1)/boot/grub
root=hd0,1
Also if I type:
grub rescue> set boot=(hd0,1)
grub rescue> set prefix=(hd0,1)/boot/grub
grub rescue> insmod normal
grub rescue> normal
I get:
error: unknown filesystem.
So I haven't been able to get near a solution.
I tried to follow the thread
"[SOLVED] Error: No such device <hex number>, Grub Rescue>"
from this forum, but I'm not really that good with Linux, so I can't really follow the thread (I guess I'm not the sharpest tool in the shed).
It is worth mentioning that I do not have a redhat install pendrive or anything, nor do I have now the option of getting one.
As a note: When the Hard drive is connected it will open Ubuntu, but will not let me open RedHat, and when it's not plugged it just will jump to the error.
I suppose you actually mean Red Hat Enterprise Linux (RHEL) when you say "Red Hat". Tell us which version you installed on this computer.
Quote:
Originally Posted by ASF84
It is worth mentioning that I do not have a redhat install pendrive or anything, nor do I have now the option of getting one.
Of course you do. Launch Ubuntu and get a RHEL or Centos installation ISO file.
After launching Ubuntu, you can also check what is on your internal disk. Start by running lsblk and blkid to list your storage devices and pasting the output here.
There are chances you just overwrote the RHEL boot partition. It's not too hard to recreate it. Alternatively, you should be able to recover the data from the internal disk, reinstall RHEL and copy the data back.
Last edited by berndbausch; 04-10-2020 at 06:53 PM.
The other problem is that when I use the Ubuntu I can't connect to Internet. It is Ubuntu 10.04 that I had on an old USB and my plan was to install it, since it was the only one I had, and then Update it to a never version.
Ok, thanks a lot, I'll try solving the connection issue and then following your steps, and I'll let you know.
All the information should remain there shouldn't it? The should not be any loss of data?
I tried to run Ubuntu, but now it won't, it will just send me to the grub rescue.
If I try to use F12 to select the OS it doesn't appear. And if I run Ubuntu using the pendrive, then if I go to terminal and try lsblk and blkid I get:
lsblk
No command 'lsblk' found, did you mean 'lslk' (universe)
The commands I gave you only list information, they don't change anything. However, obviously you will eventually have to change something to repair your system.
Ubuntu 10 is over ten years old and might not have the tools that I am familiar with. Since blkid and lsblk don't reveal anything, do you get something out of this command?
Code:
$ sudo ls /sys/block
The best way to get your system back, without having to follow some guy on the internet (me) who asks you to type arcane commands without seeing their output, is by booting from a RHEL 7 installation medium, DVD or USB drive. Gain access to the internet from the pendrive, or from some other device, download the RHEL 7 or Centos 7 ISO and copy it to a different drive. Boot from it and select the rescue option. It should have an option for reinstalling the boot partition.
First step to get internet access: Tell us the output of
Code:
$ ip address
$ ifconfig (if ip address doesn't work)
$ cat /etc/network/interfaces
EDIT: Also try installing Ubuntu on the external drive again. It's much easier to use a full installation rather than live media for troubleshooting.
Last edited by berndbausch; 04-10-2020 at 08:32 PM.
This means that two SCSI disks sda and sdb are recognized, but not any partitions on those disks, which would be named sda1, sda2 etc.
There are two possibilities: The partition tables on those disks have been wiped out, or they have GPT partition tables (all modern PCs use GPT these days) and Ubuntu 10 is too old to see them. I lean towards the latter.
Quote:
ubuntu@ubuntu:-$ ip address
l: lo: <LOOPBACK, UP, LOWER UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6::1/128 scope host
valid_lft forever preferred_lft forever
2: pane: <BROADCAST, MULTICAST> mtu 1500 qdisc noop state DOWN
link/ether 22:01:02:38:6a:59 brd ff:ff:ff:ff:ff:ff
It doesn't recognize any network interface. "lo" is not a physical interface (it's a kernel structure that refers to the system itself), and I have no idea what "pane" is. ifconfig doesn't even see this pane, and an OUI lookup of 22:01:02 doesn't result in anything.
Quote:
ubuntu@ubuntu:-$ cat /ect/network/interfaces
cat: /ect/network/interfaces: No such file or directory
You mistyped that. Try "etc" instead of "ect".
I have the feeling that Ubuntu 10 is unable to deal with your PC. It doesn't seem to see GPT partitions and doesn't recognize network interfaces. Can you also run lspci, please?
And this command:
Quote:
dmesg | grep sd[ab]
to see if the kernel messages have anything to say about the disks.
Last edited by berndbausch; 04-10-2020 at 10:04 PM.
If I had the system in front of me, I would probably poke around a little more, but given all these obstacles and oddities I think it's better to wait for the Centos/RHEL ISO media. I don't feel confident I can solve this from remote.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.