LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 10-02-2012, 01:52 AM   #31
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 201Reputation: 201Reputation: 201

Quote:
Originally Posted by hotchili View Post
Edit: The initrd is also created with -r LABEL=USBROOT
That's much cleaner than the mix of syntax I used. I like that.
 
1 members found this post helpful.
Old 10-02-2012, 10:09 AM   #32
perbh
Member
 
Registered: May 2008
Location: Republic of Texas
Posts: 261

Original Poster
Rep: Reputation: 40
My heartiest congrats!!
Good job!!

I believe grub might work as well - it's what goes into the initrd that is the deciding factor and that's were _I_ failed.
(running off to change my own stick ...)[COLOR="Silver"]

Last edited by perbh; 10-02-2012 at 10:12 AM.
 
Old 10-02-2012, 11:13 AM   #33
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 201Reputation: 201Reputation: 201
Yes, the initrd was where I screwed up the most, though for completeness sake, I screwed every part up more than once! Ha. Glad we were able to get it working, now I'm off to the office to have a little fun!
 
Old 10-02-2012, 12:16 PM   #34
FeyFre
Member
 
Registered: Jun 2010
Location: Ukraine, Vinnitsa
Distribution: Slackware
Posts: 308

Rep: Reputation: 22
Quote:
Originally Posted by perbh View Post
Plueeze - is there nobody that knows how to have a persistent linux on a usb-stick???
Maybe the subject-line is not sufficiently 'catching'?
Em, syslinux plus initrd? This how works installer on USB. There are a number of fast FAQ's in internet "how to make bootable linux usb stick(including external USB HDD)".
 
Old 10-02-2012, 12:53 PM   #35
apeitheo
LQ Newbie
 
Registered: Apr 2006
Distribution: Slackware
Posts: 26

Rep: Reputation: 8
Linux on a stick, eh? This thread makes me hungry for penguin shish kebab.
 
Old 07-24-2013, 04:55 PM   #36
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1
Posts: 228

Rep: Reputation: 15
Question

mkinitrd
Code:
mkinitrd -c -k 3.2.28 -f ext4 -r /dev/sdb2 -m usbcore:usb-storage:ehci-hcd:usbhid:uhci-hcd:mbcache:jbd2:ext4 -u -o /boot/initrd.gz
What does mkinitrd do exactly and where exactly do you execute this line of code? Is this what is necessary for the /boot/initrd.gz file to be created? Is this really necessary? What does the initrd.gz file do? I checked in the /boot/ folder for the initrd.gz file and the file doesnt exist, seems it has to be created manually with the command you gave.

Thanks,
Dumdadum

Last edited by dumdadum; 07-24-2013 at 05:43 PM.
 
Old 07-24-2013, 09:39 PM   #37
perbh
Member
 
Registered: May 2008
Location: Republic of Texas
Posts: 261

Original Poster
Rep: Reputation: 40
Basically (very basically), the _huge_ kernel does not need an 'initrd', the _generic_ kernel does.
'initrd' is supposed to load modules that are required for the boot to succeed (eg. if you have some exotic fs as the rootfs, then, if that is not supported in the 'huge' kernel, you need an 'initrd' loading that particular module first)

As for what an initrd should contain, I can only point to Alien's excellent /usr/share/mkinitrd/mkinitrd_command_generator.sh which, when run, will give you the modules needed to generate an appropriate initrd
 
Old 07-25-2013, 08:09 AM   #38
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,902

Rep: Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963Reputation: 963
FWIW, you might also want to look at this:

https://wiki.archlinux.org/index.php...sistent_naming

EDIT: Sorry missed that this was solved and I only read the first page

Last edited by ruario; 07-25-2013 at 08:13 AM.
 
Old 07-25-2013, 10:51 AM   #39
perbh
Member
 
Registered: May 2008
Location: Republic of Texas
Posts: 261

Original Poster
Rep: Reputation: 40
@ruario,
yup - it _was_ marked as solved. Then I referred to it in another topic by 'dumdadum' and he posted the question(s) above my last answer, so I thought it just proper to answer him. Guess I should mark the thread as 'truly solved' *chuckles*
 
Old 07-25-2013, 11:48 AM   #40
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1
Posts: 228

Rep: Reputation: 15
Lightbulb i had same problem, same problem solved with this

Hello,

All I wish to say is that by default, you need to declare /dev/sda1 as a minimum before using the OS on the usbkey being on device /dev/sdbX.

Thanks,
Dumdadum
 
Old 07-25-2013, 02:53 PM   #41
perbh
Member
 
Registered: May 2008
Location: Republic of Texas
Posts: 261

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by dumdadum View Post
Hello,

All I wish to say is that by default, you need to declare /dev/sda1 as a minimum before using the OS on the usbkey being on device /dev/sdbX.

Thanks,
Dumdadum
That is _wrong_ - well, kindof ...
If you want it to be 'sdbX', yes, then you must have a 'sda' somewhere.
My point - and the way I am using it - is that grub so easily lets me change the 'sdb3' to sda3, sdc3, sdd3, etc etc
If you have no idea about how many disks are in the computer, then it will fail at loading the root filesystem, but ... it will tell you which partitions are available, so you can recycle power and then change to the correct sdX3 on the next boot.
However, by grafting a proper initrd (like damgard did), then you can have persistent naming, ie you can use root=UUID=... (this goes for both lilo and grub). _My_ problem with persistence is that making an initrd will be valied for that _particular_ computer only (though most of the required modules are generic (as such) and not really hardware dependent) which is why I choose to change the boot=/dev/sdX3 at boot-time.
Hope this makes sense ...

Last edited by perbh; 07-25-2013 at 02:56 PM.
 
  


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
LXer: Installing "Sugar on a stick" (Strawberry Release) On A USB Stick LXer Syndicated Linux News 0 08-04-2009 04:50 PM
LXer: Linux on a stick LXer Syndicated Linux News 0 06-19-2009 01:21 AM
Which linux on usb stick Corrado Linux - General 3 04-11-2007 01:10 AM
mount/umount usb stick - PQI Intelligent Stick 2.0 sandbag Linux - Software 5 05-06-2005 12:12 PM
Mixing 512MB Ram 2700 stick with a 256MB 3200 stick? Will it screw things up? Fear58 Linux - Hardware 2 07-15-2004 02:20 PM


All times are GMT -5. The time now is 08:51 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration