LinuxQuestions.org
Visit Jeremy's Blog.
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 07-11-2009, 08:39 AM   #31
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,473
Blog Entries: 4

Rep: Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525Reputation: 1525

Hi,

To accomplish the task you describe then just 'mkinitrd' to create your 'initrd' to present the requirements to the kernel.
 
Old 07-11-2009, 08:49 AM   #32
linus72
Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,084

Rep: Reputation: 336Reputation: 336Reputation: 336Reputation: 336
I think there may be a solution igadoter;

PartedMagic-4.3 is Slack-12x based, and the pmagic-hdd-4.3.tar.bz2 is basically
a full install of pmagic to usb or hdd.

Now, they get around the problem with finding the partition/usb device with a small initrd, qouted from pmagic site-

Quote:
Note: The small initrd is needed to "find" the partition with the installed Parted Magic. Device numbers change from system to system and this eliminates the need to keep changing the device number in the extlinux.conf. So, in theory it should boot from a USB flash without the device numbers confusing the boot loader or computer device configuration. This does in fact run like any other distro that boots from a hard disk install. Everything you do is saved and everything you break will be there the next boot.
It does work, the extracted pmagic-hdd has a linuxarc and a kernel/initrd.
The linuxarc is a link to /bin/busybox
It found both my hd and my ext3 usb I booted it off of.

You can also add slack pkg's to pmagic
Quote:
Pre-made Packages:
Parted Magic is not exactly Slackware based, but the main tool chain was compiled on Slackware. If you would like to add programs your best bet is to use TGZ packages from Slackware 12.x. You can also use DEB files, but Parted Magic doesn't make any attempt to resolve dependencies. Copy the packages to /pmagic/pmodules and Parted Magic installs the packages automatically at boot. If you are using the USB version the packages can be simply copied to /pmagic/pmodules. If you are using the LiveCD version you must remaster the iso file with the add packages. As of Parted Magic 4.x there is a spot in the "save session" routine that allows you to add packages to the CD that you used to boot Parted Magic.
so, there must be a way to somehow hack slack and pmagic
and maybe the initrd will help autofind usb, as with pmagic?

There is a extlinux.conf in boot/extlinux that has the kernel/initrd
info.
convert that into menu.lst if using grub, like me.

So, I think you could "Macgyver" this method into slack usb
and it should work...right?

I think this is good info and does relate to what you wanna achieve.

Last edited by linus72; 07-11-2009 at 09:03 AM.
 
Old 07-11-2009, 01:04 PM   #33
uppman
Member
 
Registered: Jul 2008
Location: Stockholm, Sweden
Distribution: Slackware 13.1 32-bit
Posts: 145

Rep: Reputation: 24
It can work without an initrd, it just won't be very flexible.

Two simple steps are needed:

1. You need to specify the correct root partition at the Lilo boot prompt.

Example, assuming the root partition is /dev/sda1:

IMPORTANT: This must be the physical device for the partition. Label or UUID doesn't work unless using an initrd.

WhatEverKernelImage rootdelay=10 root=/dev/sda1

2. You need to specify the correct root partition in /etc/fstab, either by UUID, LABEL or physical device.

Example, assuming the root partition is device /dev/sda1:
/dev/sda1 / ext3 defaults 1 1

Example, by using a label:
LABEL="MEDIA-ROOT" / reiserfs defaults 1 1

Example, by using UUID:
UUID="1789683e-c85a-45b7-bdf1-8bb04fc6275c" / ext3 defaults 1 1
 
Old 07-12-2009, 01:25 PM   #34
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 109Reputation: 109
This post made me want to make one for work and home... I'm wondering how you get around the whole changing of the device reference in /dev (e.g. /dev/sda at work instead of /dev/sdb at home). Does lilo.conf only have to have the current one when you run 'lilo' ?

I know /etc/fstab can have symlinks and labels so that isn't a problem.
 
Old 07-13-2009, 09:09 AM   #35
uppman
Member
 
Registered: Jul 2008
Location: Stockholm, Sweden
Distribution: Slackware 13.1 32-bit
Posts: 145

Rep: Reputation: 24
Quote:
Originally Posted by lumak View Post
Does lilo.conf only have to have the current one when you run 'lilo' ?
That's correct! Lilo doesn't care a jota about /dev/xxx at boot time.

The main problem is when the kernel tries to mount the root filesystem. The kernel is a bit stupid and doesn't know about LABELs and UUIDs so we have to use an initrd to help out, unless of course we specify root=/dev/xxx at the boot prompt.
 
  


Reply

Tags
flash drive, qemu


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
Conflicting USB mouse & usb pendrive on Slackware 11.0 aruntom55 Slackware 3 08-26-2007 02:34 AM
HP Deskjet (USB) & CUPS & Slackware 9.1: Unable to open USB device "usb:/dev/usb/lp0&qu arnostienen Slackware 2 01-29-2004 04:22 PM
slackware 9.1 USB mouse and other usb devices not working jimMC Linux - Hardware 11 01-24-2004 11:58 AM


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