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.
Problem:
After booting fedora Linux, grub is not executed which I copied in /mnt/flash/grub. When I checked with 'fdisk -l' there's no sda or sdb etc. simply nothing.
Information:
I just replaced an adlink cPCI-3695 having compact flash card with a cPCI-3510 with an SSD card and followed the same procedure which I used to do for compact flash card.
Not sure what you are trying to do or why you would copy to /mnt/flash/grub/. Did you create just a grub partition rather than a boot partition as usually the Grub files go under /boot/grub. Are you trying to put Feodra Grub files on another partition. What exactly do you see from fdisk?
If you can't boot Fedora, can you boot anything on the machine?
Do you have some other OS installed? If so, what?
Have you tried running gdisk?
I asked myself the same question exactly. In fact, I'm just following the documentation provided by our supplier to prepare a new pc.
Please note that we're using industrial AdLink cpu which are card type and works in a subrack only
Problem is coming while migrating from old with compact flash only to new with SSD only.
Further info: Initially I'm using PXE boot (if it helps)
Well,
1. fdisk -l just shows nothing but the same command prompt
2. Fedora is booted successfully but storage (SSD) is missing and probable the NICs
3. There's no other OS installed.
4. I'll try gdisk
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,363
Rep:
Quote:
Originally Posted by Ehtshamulhaq
I asked myself the same question exactly. In fact, I'm just following the documentation provided by our supplier to prepare a new pc.
Please note that we're using industrial AdLink cpu which are card type and works in a subrack only
Problem is coming while migrating from old with compact flash only to new with SSD only.
Further info: Initially I'm using PXE boot (if it helps)
Well,
1. fdisk -l just shows nothing but the same command prompt
2. Fedora is booted successfully but storage (SSD) is missing and probable the NICs
3. There's no other OS installed.
4. I'll try gdisk
Hi,
Are you using fdisk as root ? The symptom you're describing is similar to what happens when trying to run certain commands as a regular user.
Last edited by Rickkkk; 04-03-2017 at 03:41 PM.
Reason: Typos ...
Fedora requires sudo for fdisk, amongst others - no message, as you saw. You could also use root, but stick with sudo for (a little) more safety. The fdisk shipped with current Fedora handles gpt ok - gdisk will also require sudo/root.
Make sure your user is in the wheel group.
Why Fedora - something that doesn't require upgrading every 6 months might be a better option.
Sounds to me like the boot media may be missing a storage device module that the new card requires. Fedora builds its initrds using hostonly, but if there's a rescue option in its Grub menu, you should try it, because it will include all storage modules that were available for its kernel.
@mrmazda, hi,
I've been watching a lot of youtube video tutorials on Linux booting process. Your reply makes more sense to me.
@All, thanks all for your help and sorry for discovering that the Linux version is embedded linux:
Linux version 2.6.27.21-ELinOS-46
Fedora was installed on the pc used to generate the image.
Now here are the steps mentioned in case we put a new compact flash card:
PARTITIONING:
'fdisk /dev/sda
'd'
'n'
'p'
'1'
default 1 selected for first cylinder
'+1000M' for last cylinder
'n'
'p'
'2'
default selected for first cylinder
default selected for last cylinder
'w'
'mkfs.ext3 /dev/sda1'
'mkfs.ext3 /dev/sda2'
'mount /dev/sda1 /mnt/flash'
at grub prompt:
'root (hd0,0)'
'setup (hd0)
'quit'
COPYING CONFIGURATION AND BINARY FILE 'VMLINUZ' from /mnt/usb
'cp menu.lst /mnt/flash/grub/'
'cp vmlinuz /mnt/flash/'
'cp config.xml /mnt/flash/'
QUESTION remains the same: why if we do the above procedure with a compact flash card it works and with an SSD card it doesn't? Please refer to the attached if it helps?
Does this attachment give a better view of my problem?
It more or less confirms my #6 reply. Your new cPCI-3510 probably needs a different storage device module (driver) than the old one needed, and the required module is not provided by the PXE server, nor is the functional equivalent built into the kernel that the PXE server is providing. What the required module is needs to be determined, supplied and loaded before the kernel can create the necessary storage device files in /dev/.
Your prior screenshot shows you've booted a very old 2.6.27 kernel. There may not be a driver for that old kernel that supports the QM87's storage controller on the cPCI-3510, which is years newer than kernel 2.6.27. Sounds to me like the PXE server is misconfigured for the cPCI-3510. I've never used PXE, so can help figuring out what might need to be done there. Maybe it's running the Fedora you mentioned. Maybe the 2.6.27 kernel needs a rebuild for the cPCI-3510. I can only speculate.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.