LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-03-2017, 08:18 AM   #1
Ehtshamulhaq
LQ Newbie
 
Registered: Apr 2017
Posts: 4

Rep: Reputation: Disabled
fdisk -l command shows no storage after boot


Hi there,
Let's make it simple. I'm new to Linux.

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.

Any help will be highly appreciated.
 
Old 04-03-2017, 08:33 AM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 8,892

Rep: Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857Reputation: 1857
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?

Last edited by yancek; 04-03-2017 at 08:34 AM.
 
Old 04-03-2017, 08:47 AM   #3
Ehtshamulhaq
LQ Newbie
 
Registered: Apr 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
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
 
Old 04-03-2017, 04:40 PM   #4
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec, CANADA
Distribution: Arch
Posts: 1,234

Rep: Reputation: 451Reputation: 451Reputation: 451Reputation: 451Reputation: 451
Quote:
Originally Posted by Ehtshamulhaq View Post
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 04:41 PM. Reason: Typos ...
 
Old 04-03-2017, 05:44 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,472

Rep: Reputation: 3085Reputation: 3085Reputation: 3085Reputation: 3085Reputation: 3085Reputation: 3085Reputation: 3085Reputation: 3085Reputation: 3085Reputation: 3085Reputation: 3085
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.
 
Old 04-04-2017, 01:01 AM   #6
mrmazda
Senior Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 2,173

Rep: Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694
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.
 
Old 04-04-2017, 02:07 AM   #7
Ehtshamulhaq
LQ Newbie
 
Registered: Apr 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
@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'


CONFIGURING BOOTLOADER
'cd /mnt/flash'
'mkdir grub'
'cd grub'
'cp /bin/stage* .'
'grub'

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?
Attached Thumbnails
Click image for larger version

Name:	linux fdisk.jpg
Views:	3
Size:	116.5 KB
ID:	24669  
 
Old 04-04-2017, 02:39 AM   #8
mrmazda
Senior Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 2,173

Rep: Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694
Quote:
Originally Posted by Ehtshamulhaq View Post
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?
The CF card is probably on a bus for which a required module is available and loaded, while for the SSD not true.
 
Old 04-05-2017, 01:59 AM   #9
Ehtshamulhaq
LQ Newbie
 
Registered: Apr 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
No more ideas?

Does this attachment give a better view of my problem?
Attached Thumbnails
Click image for larger version

Name:	linux boot.jpg
Views:	7
Size:	136.8 KB
ID:	24678  
 
Old 04-05-2017, 02:32 AM   #10
mrmazda
Senior Member
 
Registered: Aug 2016
Location: USA
Distribution: openSUSE, Debian, Knoppix, Mageia, Fedora, others
Posts: 2,173

Rep: Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694Reputation: 694
Quote:
Originally Posted by Ehtshamulhaq View Post
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.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] command line shows up upon boot theAdmiral Debian 7 06-29-2013 12:27 AM
fdisk -l shows sata hdd as hda ?? piyush.ml20 Red Hat 15 09-27-2009 09:18 AM
single volume from IBM ESS storage shows multiple times in fdisk -l output? kingston Linux - Newbie 3 07-06-2009 05:31 AM
fdisk for Shared Storage? your_shadow03 Linux - Newbie 2 08-20-2008 05:09 AM
fdisk -l shows external HD...can't mount tho dauphinfay Linux - Hardware 8 07-28-2005 02:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration