LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 05-29-2018, 04:58 PM   #16
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 510

Original Poster
Rep: Reputation: 58

I kept making 71MB initrd.gz but failing, though my little 1.44mb one worked

i had 2 methods of making (cpio and losetup). both seemed to read off usb and be ignored

i forgot to put both linuxrc (and optionally directory /initrd) in / of image before compressing it with gzip

i then got different error:

???? 00000

-------------------------

flew by my eyes upon boot, then I got

RAMDISK: incomplete write (4740 != 16377) ...

(follow by some ext2 read boundary errors and a message saying init was not found - though i'm not attempting an initramfs)

finally i decided my image couldn't be corrupt and time to try kernel parameters:

ramdisk_size=300000 # did the trick, yes it's for iniitrd not just initramfs

the (not so) funny thing is i read like 20 linux Q&A on other forums like stackexchange that danced around the question blaming the OS or the person's files. ugh!
 
Old 05-29-2018, 05:33 PM   #17
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,023

Rep: Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632
Might try it with qemu loading it or place your stuff on a different vm or real hard drive to test if the usb is the issue.

When you boot to bios select the usb in the hard drive order as first in order and it should boot to sda I'd think.
 
Old 05-29-2018, 07:03 PM   #18
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 510

Original Poster
Rep: Reputation: 58
emulation is slow. if i leave it on the "old PC" it will be faster than emulating on a "new chip"

Last edited by X-LFS-2010; 05-29-2018 at 11:08 PM.
 
Old 05-29-2018, 11:18 PM   #19
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 510

Original Poster
Rep: Reputation: 58
ouch. it appears none of these work as module (note usb-storage compiled into kernel, a possible mistake i'm following up on)

ehci-hcd ohci-hcd uhci-hcd

it could be the "newish PC" having Intel Z170 chipset is not supported by 2.6.38 kernel modules (or, see above)

i'll just have to keep hacking a bit more to pin down if it's still a module order issue or if it's required upgrade for hw support or if new kernel even has support

----------------------------------

anyone out there ever hear of USB support for Intel Z170 boards with linux kernel being an issue ?
 
Old 05-30-2018, 04:41 PM   #20
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 510

Original Poster
Rep: Reputation: 58
SOLVED. xhci-hcd was not tried and was the answer.

i was un-aware xhci-hcd even existed and that when tried the grub2 disk worked. sorry i asked the question to begin with.

to find this. first i compiled all the usb stuff as modules (for testing). during that i was preparing lk 4.x and happened to see xhci-hcd, typed it in thinking it wasn't in 2.6 about to give up and whack! it was there and loaded.

i had booted with a 71mb compressed loopbck ext2 filesystem (which i just cp'ed essential directories into, unmounted, then gzip'ed and named initrd.gz) having linuxrc script in / that only ran 'sh'. i found by surprise if root=/dev/ram0 that the script /linuxrc is skipped (used initrd.gz as real root), but when root=otherwise, the /linuxrc runs (and tries to mount root after exit).

I ALSO FOUND THAT COMPILING XHCI-HCD was helpful - INITRD IS THE HARDER WAY for anyone who finds compiling the linux kernel easily

in initrd i could load the modules and even mount the root: but upon exit the kernel claimed none of that existed (there are ways around this to tell kernel where root is so it isn't lost on initrd exit). when compiled into kernel it "just booted" into the ext2 partition of the flash drive simply.

SOLVED
 
Old 05-30-2018, 04:49 PM   #21
X-LFS-2010
Member
 
Registered: Apr 2016
Posts: 510

Original Poster
Rep: Reputation: 58
furthermore i read more about QEMU and WINDOWS10 / HIGH SIERRA and KVM

i was wrong about "true virtualization" i though that was a thing of a dual boot computer running two OSes side by side (i had read that once long ago). i had no idea it was really "an accelerated emulator method", that one OS was "being emulated" and the other really running raw.

i had thought qemu (with accelerations) was an emulator and kvm was for running multiple kernels. i didn't realize it was integrated and leveraged to run under win10 and imac to run "almost at normal speeds"

So my fault on that. QEMU i a good consideration and sometime i will try that as a good or better alternative to having a bootable flash that is ultimately "keyed to a brand of PC".

yet i don't think i'd want to be stuck with either as my only way to run linux. either could end up becoming incompatible or inaccessible much later ?

thank you all for your advice
 
Old 05-30-2018, 07:20 PM   #22
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,023

Rep: Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632
Thanks for the update and solution.
 
  


Reply



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] /dev/sdb: unrecognised disk label and can't boot from usb konakona Linux - Software 1 07-25-2016 12:03 AM
USB Flash Drive: No Media Detected; Format gets: exit code 1: cannot open /dev/sdb: sisterdelirious Linux - Newbie 15 01-30-2012 09:25 PM
cant boot sdb2 (win7); sdb is usb 3.0 externel drive; grub is on sda; ununun Linux - General 11 01-02-2012 01:27 PM
[SOLVED] Grub: If exists sdb, then boot sdb, else sda defaultyeti Linux - Desktop 6 06-28-2011 02:38 AM
USB thumb drive detected by usb but not by scsi ashlock Linux - Hardware 6 06-02-2005 02:58 PM

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

All times are GMT -5. The time now is 02:48 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