LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-20-2016, 01:44 AM   #16
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322

I repeat what I said earlier. Most probably it is lacking your root filesystem module in the initrd. Is the initrd even loading? Also, you are usually told _why_ the root filesystem was not mounted. Error like 'no such device' or 'cannot mount filesystem' & 'tried these types' are cryptic but vital.Exactly what does your system say after the mount root error?
 
Old 04-20-2016, 05:14 PM   #17
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,833

Original Poster
Rep: Reputation: 108Reputation: 108
Thank you for your comment.

Yes, I do agree. My system cannot read file system. I need to figure out why.

Attached file, please check if these messages are concordant.

1. This screen shows with debian repo image with initrd.
2. This exact same disk drive works with old motherboard.
3. With my custom kernel, where ext4 driver is compiled in, the second line to end is slightly different, it reads "Kernel Offset: disabled"

So, my best guess is:
My system cannot read root file system.
Correct drivers do exist.
Bootloader cannot locate root file system for whatever reason. (uuid? or kernel parameter)

If I am on the right track.
Attached Thumbnails
Click image for larger version

Name:	debianRepo.jpg
Views:	17
Size:	270.2 KB
ID:	21581  
 
Old 04-21-2016, 01:48 AM   #18
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
from that screen,For that kernel option

For that kernel option, you will have a kernel line somewhere
Code:
kernel Some_Kernel_Name root=some_device> 
The root= option is essential, and it is wrong, meaning it doesn't point to a disk partition.
 
Old 04-21-2016, 06:08 PM   #19
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,833

Original Poster
Rep: Reputation: 108Reputation: 108
Thank you for your comment.

Yes, I do agree.

I have tried
both
root=/dev/sda# (obsolete, outdated notation)
and
root="UUID..." (modern cutting edge notation)

Old motherboard boots, but new one chokes.

cheers
 
Old 04-21-2016, 06:46 PM   #20
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Sounds like the device controller changed...

Can you boot a live system to see what the disk is identified as?

One explanation for this is that the controller changed, and the initrd doesn't have the correct driver for it. That is why the suggestion for a live system boot to find out...

If that is the case, you will have to rebuild the initrd including the correct driver.

I had this problem with Slackware using a VM - though the boot disk initrd did support the virtio, (and went through the installation), the installed kernel initrd did not.

With the result that I had the same problem.
 
Old 04-22-2016, 03:18 AM   #21
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by kaz2100 View Post
Thank you for your comment.

Yes, I do agree.

I have tried
both
root=/dev/sda# (obsolete, outdated notation)
and
root="UUID..." (modern cutting edge notation)

Old motherboard boots, but new one chokes.

cheers
Stay here. root=/dev/sda2(or whatever) is still a valid way of addressing it. The kernel has to mount it over the initrd (which is mounted on / to give /lib/modules/some kernel). Check the contents of the initrd for motherboard chipset and file systems. What was the "root=801" option shown in your screen picture? That doesn't look kosher. Where did that come from?
 
Old 04-22-2016, 05:34 AM   #22
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
It comes from the hardware tranlation of the root= option. The physical device specified doesn't exist.

I think you are missing a driver.

Last edited by jpollard; 04-22-2016 at 05:35 AM.
 
Old 04-27-2016, 12:07 AM   #23
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,833

Original Poster
Rep: Reputation: 108Reputation: 108
Thank you for your comments.

I have not tried live CD.

I tried rescue mode. Under this environment, UUID was correct (or same). I did run lilo, but did not rebuild initrd (update-initramfs).

Both ext4 and sata3 (ahci) modules exist (that's what debian repo config says). These are complied in with my custom kernel!!

By the way,
I have tried several other my old custom kernels. They all choke at the same step, but with slightly different panic messages.
 
Old 04-28-2016, 06:45 AM   #24
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
May I point out here that there's 23 posts on this thread. Most threads don't go above 8 or 10. You're missing something obvious, or else not thoroughly trying the suggestions you're being given. This is a simple enough problem. Why not take a distro kernel, modules, and initrd and install that lot to boot your system? BTW, you still didn't address this one:
Quote:
What was the "root=801" option shown in your screen picture(a few posts back)? That doesn't look kosher. Where did that come from?
 
Old 04-29-2016, 02:43 AM   #25
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,833

Original Poster
Rep: Reputation: 108Reputation: 108
Thank you for your comment.

Yes, I do agree. It should be simple. No objection whatsoever.

As mentioned before in several posts (17, 15, 13, 8, 4 and 1), debian repo kernal image was used.

I rebuilt an initrd image on my old system. But new system chokes.

Both old and new system use ahci and libata as drivers. (not piix nor sata_sil)

About 801. My lilo.conf does not point anything to 801. I think that is something like physical location on the disk, (sector ??) Web search says that 801 looks like common one.
This 801 message does not show up, when root is pointed by "UUID...." It shows up when root is pointed by 'sd#'

cheers

Last edited by kaz2100; 04-29-2016 at 04:09 AM. Reason: add several lines about 801 message
 
Old 05-02-2016, 09:42 PM   #26
zOSGuy
LQ Newbie
 
Registered: Sep 2010
Location: Central NY, USA
Distribution: Debian
Posts: 27

Rep: Reputation: 0
Have you tried flashing the motherboard? I avoid doing this like the plague and only out of necessity, but I have an ASUS that would freeze recording video (i.e. from a digital video camera) and I finally tried it as a last resort. It took care of the freezes I was seeing. Just be careful, flashing the mobo is about the only way you can "brick" your system permanently without breaking the hardware.
 
Old 05-04-2016, 06:08 AM   #27
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,833

Original Poster
Rep: Reputation: 108Reputation: 108
Hya,

I have not flashed mobo yet. I checked that bios (or whatever) is the most updated version.

I will try and see how it goes.

cheers

++++ added on edit
I flashed bios. I regret to say, but the problem persists.

Last edited by kaz2100; 05-05-2016 at 05:33 AM.
 
Old 05-04-2016, 06:39 AM   #28
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,833

Original Poster
Rep: Reputation: 108Reputation: 108
Hya,

Partially solved.

Following what I did.

Using another clean installed HD, (post #15), booted onto that system.
Tried to boot onto cloned HD again choked at the same step. Checked UUID and all correct.

Followed this wiki and found that my current system is legacy boot while new system is EFI boot. Entire HD is converted into EFI using gdisk, then EFI (boot/efi) partition was created.

Followed debian official installation manual, using "un*x or GNU system" as an installation media, then connect the cloned HD to chroot onto it.
Mounted /proc and MAKEDEV, then mount efivars (efivarfs)
Then installed grub, update-grub

Now I can boot into cloned HD, using boot menu.

I have not tried lilo yet. (It is somewhat long story. One reason is elilo is missing in debian stretch repo, as of Apr-Mar 2016)

I need to figure out where problem was, but one step ahead.

I will update.

Last edited by kaz2100; 05-04-2016 at 06:44 AM.
 
Old 05-22-2016, 07:33 AM   #29
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,833

Original Poster
Rep: Reputation: 108Reputation: 108
Solved !?

I guess I probably have resuscitated the penguin.

I tried to boot into the new disk, which failed!! (Penguin went to lilo and choked.)
Problem was outside penguin world. I needed to go to boot menu, select EFT boot, not whole disk boot on bios.

I can get onto Debian on the now logic board, but still slight problem. Network is not working, no eth0. !!

Once the problem resolves, I will post the solution.

cheers
 
Old 05-22-2016, 10:31 AM   #30
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
UUID is unique for filesystem, so it will not be same if you replace the HDD.
You said LiLo and UEFI, these two do not go together.
You can use PARTUUID instead of UUID, Linux kernel can find PARTUUID without initrd, while mounting by UUID needs proper initrd.
 
  


Reply

Tags
debian.hardware, install, replace, trouble



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
Testing the efficiency of the memory system part of linux paragdas31s Linux - Newbie 1 05-07-2010 05:48 AM
LXer: This week at LWN: Memory part 7: Memory performance tools LXer Syndicated Linux News 0 11-22-2007 08:51 AM
LXer: This week at LWN: Memory part 3: Virtual Memory LXer Syndicated Linux News 0 10-20-2007 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:09 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
Open Source Consulting | Domain Registration