Results 1 to 4 of 4

Thread: Problem with "root=" kernel command-line argument

  1. #1

    Problem with "root=" kernel command-line argument

    So I ran the knoppix-installer script and successfully got a working Knoppix filesystem installed onto my USB hard disk, /dev/sda2. The phase of the installation where the boot disk is created failed, which is no big problem since I don't think this machine can boot from a USB floppy.

    My plan was to boot from the CD again with the boot command "knoppix root=/dev/sda2". This doesn't work - Knoppix just boots into it's regular mode, using the uncompressed root drive image.

    It's as if the kernel ignores the root= parameter.

    I can actually boot from a Gentoo CD with the LILO command "gentoo root=/dev/sda2" and this *works*. So I know that the hard drive install worked correctly.

    Anyone know why I can't get the parameter to be adhered to? Thanks.

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Europe
    Posts
    148

    Re: Problem with "root=" kernel command-line argum

    Quote Originally Posted by LukeyBoy
    I can actually boot from a Gentoo CD with the LILO command "gentoo root=/dev/sda2" and this *works*. So I know that the hard drive install worked correctly.
    Very very interesting, the fact of being able to pass a boot time argument to boot/have your root on an sd* hard drive :)) I have no internal HDD in my laptop, and have to use an external firewire drive (this is where Linux is cool - try doing this trick with Windows!).

    Sounds as though I shold try out Gentoo, but I've put a fair amount of effort in learning about the debian way of doing things (and this is after a try out of Mandrake 18 months ago or so)... And one huge advantage of Knoppix is these forums - support here is good.

    To get back to your question - I don't know the answer, but I can tell you how I and a few others use the Knoppix CD to boot (well technically move root) to the external 1394 hard drive. The technique was originally found by tinker, see this post for more info http://knoppix.net/forum/viewtopic.php?t=6463

    Code:
    knoppix single   #at boot prompt
    sudo su 
    lsmod   #check firewire/1394 modules are present
    /mnt/floppy/rescan-scsi-bus.sh   #run a script from floppy to find my hard drive, apparently this should not be needed for 2.6
    mkdir /mnt/new_root 
    mount /dev/sda1 /mnt/new_root  
    mkdir /mnt/new_root/mnt/old_root   #required the first time only, not needed for subsequent boots
    cd /mnt/new_root 
    pivot_root . /mnt/new_root/mnt/old_root
    mount /proc /proc -t proc 
    swapon -a 
    init 5
    There are a couple of problems with this approach - it's a pain to type all the commands each time, you need to set the hostname, I'm not sure if the ramdisk is destroyed afterwards nad the RAM given back to the system. But hey it works. But it seems the Gentoo way is better ;)

  3. #3
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Europe
    Posts
    148
    I shoulld add that my BIOS does not give me the choice of booting from USB or Firewire, I can only boot from Floppy or CD-ROM.

  4. #4
    No, I'm actually just using the Gentoo kernel to boot since it accepts the root= parameter. It's still a Debian system - in fact I'm posting from it right now (albeit with the Links browser).

Similar Threads

  1. Problem logging into "Root"
    By maxcruiver in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 04-02-2005, 06:54 PM
  2. Booting problem: "hde: drive not ready for command"
    By MrBigTime in forum Hardware & Booting
    Replies: 2
    Last Post: 02-14-2005, 11:35 AM
  3. Booting problem: "hde: drive not ready for command"
    By MrBigTime in forum General Support
    Replies: 1
    Last Post: 02-14-2005, 01:42 AM
  4. startx with "root" and not with "knoppix"
    By ix86i in forum Customising & Remastering
    Replies: 1
    Last Post: 10-30-2004, 12:16 PM
  5. "Foreign" drive formats and "dd" command
    By geebee2000 in forum Hardware & Booting
    Replies: 9
    Last Post: 05-21-2003, 07:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


HPGYT DELL Micron 5100 PRO 960GB SATA 6Gb/s 2.5in SSD 0HPGYT MTFDDAK960TCB Gen14 picture

HPGYT DELL Micron 5100 PRO 960GB SATA 6Gb/s 2.5in SSD 0HPGYT MTFDDAK960TCB Gen14

$69.00



G5T03 Dell Intel DC S3700 Series 800GB SATA 6Gb/s 2.5

G5T03 Dell Intel DC S3700 Series 800GB SATA 6Gb/s 2.5" SSD 0G5T03 SSDSC2BA800G3E

$55.00



### MZ-7KE1T0 Samsung 850 Pro Series 1TB 2.5 inch SATA3 SSD ### picture

### MZ-7KE1T0 Samsung 850 Pro Series 1TB 2.5 inch SATA3 SSD ###

$105.00



005051096 EMC Data Domain 400GB SATA 3Gbps 2.5

005051096 EMC Data Domain 400GB SATA 3Gbps 2.5" Internal SSD 118000078

$335.99



Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5

Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot

$14.99



Micron 5100 MAX 120GB SATA 6Gb/s 2.5

Micron 5100 MAX 120GB SATA 6Gb/s 2.5" Internal SSD MTFDDAK120TCC Solid State

$9.89



Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot picture

Netac 1TB 2TB 512GB Internal SSD 2.5'' SATA III 6Gb/s Solid State Drive lot

$13.99



Fanxiang SSD 512GB 1TB 2TB 4TB 2.5'' SSD SATA III Internal Solid State Drive lot picture

Fanxiang SSD 512GB 1TB 2TB 4TB 2.5'' SSD SATA III Internal Solid State Drive lot

$13.99



M.2 NVMe SSD 128GB 256GB 512GB Single Notch with Windows Installed 10 / 11 picture

M.2 NVMe SSD 128GB 256GB 512GB Single Notch with Windows Installed 10 / 11

$85.25



Fanxiang M.2 SATA SSD 2TB 1TB 512GB 256GB SSD Internal M2 Solid State Drive Lot picture

Fanxiang M.2 SATA SSD 2TB 1TB 512GB 256GB SSD Internal M2 Solid State Drive Lot

$109.99