Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 29

Thread: How to start HD knoppix with just CD?

  1. #11
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Europe
    Posts
    148
    Couple of observations on the problems I had above:

    1. I wrote/edited the above script in Windows, hence the error ":bad interpreter : No such file or directory". Solution is to write it in Linux/Knoppix, or find a way of converting Windows carriage returns to *nix carriage returns.

    2. "mkdir /mnt/new_root/mnt/old_root" is needed the first time only; after that (i.e. in a script) the dir exists so so cannot be created.

    3. "pivot_root . /mnt/new_root/mnt/old_root" does not work as the working directory when the command is issued is not "/mnt/new_root" :( I don't know how to fix this.

  2. #12
    Senior Member registered user
    Join Date
    Feb 2004
    Posts
    235
    I tried these commands on my computer, and when I entered: mkdir /mnt/new_root/mnt/old_root, it fails saying directory or file doesn't exist. However, when I enter mkdir /mnt/old_root, it works. What's up with that? Also, I'm attempting this in script as well, and so far no go as of yet. I do have one question: what's the period after pivot_root for?

  3. #13
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Europe
    Posts
    148
    Quote Originally Posted by Durand Hicks
    I tried these commands on my computer, and when I entered: mkdir /mnt/new_root/mnt/old_root, it fails saying directory or file doesn't exist. However, when I enter mkdir /mnt/old_root, it works.
    On what sort of a device are you trying to use for your root? I'm using an external HDD, and before I can 'mkdir /mnt/new_root/mnt/old_root' I have to mount my external HDD (for me this is 'mount /dev/sda5 /mnt/new_root'). And before I can mount my external HDD, I have to run the "rescan-scsi-bus.sh" script... Are you sure you external HDD is recognised and then mounted by Knoppix?

    Quote Originally Posted by Durand Hicks
    I do have one question: what's the period after pivot_root for?
    Not sure what the . (dot, full stop, period, whatever you want to call it) means :( These two man pages should reveal all though, when I get time to read them:

    http://www.die.net/doc/linux/man/man2/pivot_root.2.html
    http://www.die.net/doc/linux/man/man8/pivot_root.8.html

    OK, time for me to get back to work...

  4. #14
    Senior Member registered user
    Join Date
    Feb 2004
    Posts
    235
    I didn't have an external device, just a wicked multi-boot layout. I.e. hda1 is dos 6.22 (FAT16), hda5 is winxp (NTFS), hda6 is apps(NTFS), hda7 is data(NTFS), hda8 is games(NTFS) also 2nd xp (now deleted to make room for-->), hda9 was knoppix hdbased on FAT32. I gave up the ghost and reformatted hda9 to ext3 and did a full hd install of knoppix. After the install, it took me another 3 hrs to figure out what I needed to get LILO installed into NT's bootloader on hda1. For a newbie, I pretty much fried my brain doing this but man, I'm glad I sorted this out.

  5. #15
    Junior Member
    Join Date
    Nov 2003
    Posts
    3
    has anyone gotten this to work on a USB HD? It worked fine for me up until entering the "init 5" command which caused error message relating to reading off of the hard drive. I have a USB 2.0 Datastor with a Knoppix distribution on a ext2 partition

  6. #16
    Junior Member
    Join Date
    Feb 2004
    Posts
    1
    Hi all,
    i'm trying to boot knoppix from an external Iomega CD-RW usb, but it doesn't seem to work can someone help me?
    I tried to modify the miniroot.gz as explained here but it can't find the root filesystem and drops me to a (very limited) shell. I also tried the RUNT boot floppy and after it loads usb modules it detects the external cd, but then says that can't mount /dev/sda1 or something like that, what am I wrong?
    Is there any way to make it mount the root on the usb cdrom?
    Thanks for any help!

  7. #17
    Junior Member
    Join Date
    Feb 2004
    Posts
    2
    Quote Originally Posted by c123
    Couple of observations on the problems I had above:

    1. I wrote/edited the above script in Windows, hence the error ":bad interpreter : No such file or directory". Solution is to write it in Linux/Knoppix, or find a way of converting Windows carriage returns to *nix carriage returns.

    2. "mkdir /mnt/new_root/mnt/old_root" is needed the first time only; after that (i.e. in a script) the dir exists so so cannot be created.

    3. "pivot_root . /mnt/new_root/mnt/old_root" does not work as the working directory when the command is issued is not "/mnt/new_root" I don't know how to fix this.
    Quote Originally Posted by Durand Hicks
    I tried these commands on my computer, and when I entered: mkdir /mnt/new_root/mnt/old_root, it fails saying directory or file doesn't exist. However, when I enter mkdir /mnt/old_root, it works. What's up with that? Also, I'm attempting this in script as well, and so far no go as of yet. I do have one question: what's the period after pivot_root for?
    Common guys, use your brains!! :

    Code:
    pivot_root /mnt/new_root /mnt/new_root/mnt/old_root
    Try thinking about the code/commands you are typing and you may really learn about what you are doing!

    BTW:
    Good work tinker... I'd been looking for this pivot technique.

  8. #18
    Junior Member
    Join Date
    Sep 2004
    Posts
    6

    thanks, can I automate this using knoppix.sh or linuxrc?

    Thanks, this works great. It lets me use Linux on my laptop using an external drive. Unlike the poormansinstall, I was able to use apt-get to install gnome and mono and update the whole system.

    The only change I needed to the above instructions was to type knoppix26 single on boot instead of just knoppix single, because otherwise my ethernet wasn't working (eepro100 issue perhaps). One other issue is that shutting down hangs at the very end, but I can live with that.

    Now, I'd like to have it so I don't have to manually type in all the commands each time I boot. I'm not sure if this can be accomplished via a custom knoppix.sh file (and use the myconfig cheatcode or else burn a new CD with knoppix.sh), or if I need to modify the linuxrc file in the initrd boot image used by the CD, similar to what this article describes doing: http://www-106.ibm.com/developerwork...lnxw16FireBoot.

  9. #19
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Europe
    Posts
    148
    Apparently as from 3.4, the bootfrom cheatcode will now work with firewire (and usb) drives as well, but I still (after more than two minths or so) have to try this.

    I'm not sure if you have to point to the partition or to the actual kernel... Anway a bit of trial and error should tell you pretty quickly.

    Please post back with your results.

    BTW the IBM article is a a good read :)

  10. #20
    Junior Member registered user
    Join Date
    Nov 2004
    Posts
    11

    Pivot_root causes X server to crash

    Hi,

    Hope that this forum is still being monitored...

    I downloaded knoppix 3.6 and installed it into a (non-bootable) external USB-HDD as a Debian Distribution with Hardware Auto detection. I then booted into the cd in single user mode and used the "pivot_root" command to transfer to the Hard Drive as detailed in the how-to at

    http://www.knoppix.net/docs/index.php/PivotRootInstall
    Everything worked fine and I thought I had a fully operational Mobile Debian installation. I used apt-get to update all packages and installed some new ones and everything was okay across several reboots. However, when I connected my HD to another machine and tried to do pivot_root from it's CD-ROM drive, disaster struck. The CD booted correctly and dropped me into a shell. The pivot_root command worked and everything, but the minute I switched to runlevel 5, my X Server Crashed, claiming that the config of xf86Config file was wrong. Apparently, the X server config from my original machine persisted in the HD!!!

    I have included the log file below. Is this supposed to happen? Why is it that all the other hardware parameters did not stay persistent (as is required for a mobile HD installation that will be connected to different computers) and were autodetected but the X-Server config was not? How do I make sure that the X-Server and display manager are automatically configged in all computers to which I connect the HD (Bear in mind that the knoppix cd itself boots fine all the way to X, so detection is not the problem)>

    If I have to manually config X each time I put it in a different machine, then is there a good non-graphical tool in Debian that I can use?

    Please let me know.

    Thanks,
    AR


    Log File:

    This is a pre-release version of XFree86, and is not supported in any
    way. Bugs may be reported to XFree86@XFree86.Org and patches submitted
    to fixes@XFree86.Org. Before reporting bugs in pre-release versions,
    please check the latest version in the XFree86 CVS repository
    (http://www.XFree86.Org/cvs).

    XFree86 Version 4.3.0.1 (Debian 4.3.0.dfsg.1-6 20040707142024 fabbione@fabbione.net)
    Release Date: 15 August 2003
    X Protocol Version 11, Revision 0, Release 6.6
    Build Operating System: Linux 2.4.23 i686 [ELF]
    Build Date: 07 July 2004
    Before reporting problems, check http://www.XFree86.Org/
    to make sure that you have the latest version.
    Module Loader present
    OS Kernel: Linux version 2.6.7 (root@Knoppix) (gcc-Version 3.3.4 (Debian 1:3.3.4-3)) #2 SMP Wed Jul 28 04:25:36 CEST 2004
    Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    (==) Log file: "/var/log/XFree86.0.log", Time: Sun Nov 28 17:44:43 2004
    (EE) Unable to locate/open config file
    (EE) Error from xf86HandleConfigFile()

    Fatal server error:
    no screens found

    When reporting a problem related to a server crash, please send
    the full server output, not just the last messages.
    This can be found in the log file "/var/log/XFree86.0.log".
    Please report problems to submit@bugs.debian.org.

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Before I Start Knoppix
    By Barton71 in forum General Support
    Replies: 4
    Last Post: 03-05-2005, 06:03 PM
  2. Knoppix won't start
    By ahnaqsh in forum General Support
    Replies: 2
    Last Post: 12-01-2004, 05:32 AM
  3. Hoe to start Knoppix on TV
    By banevere in forum Hardware & Booting
    Replies: 0
    Last Post: 02-22-2004, 08:31 AM
  4. How do you start knoppix?
    By Login_Here in forum General Support
    Replies: 1
    Last Post: 02-19-2004, 05:24 AM
  5. Knoppix does not start
    By mundhra_ritesh in forum General Support
    Replies: 3
    Last Post: 04-08-2003, 05:42 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
  •  


LSI 9305-16i SATA SAS 12Gbs RAID Controller PCIe 3.0 x8 IT-Mode 4* 8643 SATA picture

LSI 9305-16i SATA SAS 12Gbs RAID Controller PCIe 3.0 x8 IT-Mode 4* 8643 SATA

$229.99



HPE 843201-001 SMART ARRAY P840ar/2GB 12Gb/s FBWC SAS RAID CONTROLLER BOARD picture

HPE 843201-001 SMART ARRAY P840ar/2GB 12Gb/s FBWC SAS RAID CONTROLLER BOARD

$345.60



HPE 848147-001 SMART ARRAY P840ar/2GB 12Gb/s FBWC SAS RAID CONTROLLER BOARD picture

HPE 848147-001 SMART ARRAY P840ar/2GB 12Gb/s FBWC SAS RAID CONTROLLER BOARD

$323.55



HPE 843199-B21 SMART ARRAY P840ar/2GB 12Gb/s FBWC SAS RAID CONTROLLER BOARD picture

HPE 843199-B21 SMART ARRAY P840ar/2GB 12Gb/s FBWC SAS RAID CONTROLLER BOARD

$355.50



Inspur LSI 9300-8i Raid Card 12Gbps HBA HDD Controller High Profile IT MODE picture

Inspur LSI 9300-8i Raid Card 12Gbps HBA HDD Controller High Profile IT MODE

$15.98



LSI MegaRAID 9361-8i 12Gb PCIe 8-Port SAS/SATA RAID 1Gb w/BBU/CacheVault/License picture

LSI MegaRAID 9361-8i 12Gb PCIe 8-Port SAS/SATA RAID 1Gb w/BBU/CacheVault/License

$35.96



ORICO Multi Bay RAID Hard Drive Enclosure USB 3.0/ Type-C For 2.5/3.5'' HDD SSDs picture

ORICO Multi Bay RAID Hard Drive Enclosure USB 3.0/ Type-C For 2.5/3.5'' HDD SSDs

$86.99



LSI MegaRAID 9361-8i 12Gbps PCIe 3 x8 SATA SAS 3 8 Port RAID + BBU & CacheVault picture

LSI MegaRAID 9361-8i 12Gbps PCIe 3 x8 SATA SAS 3 8 Port RAID + BBU & CacheVault

$39.00



ACASIS 2.5/3.5 inch 2 Bay SATA USB 3.0 Hard Drive Disk HDD SSD Enclosure 4 RAID picture

ACASIS 2.5/3.5 inch 2 Bay SATA USB 3.0 Hard Drive Disk HDD SSD Enclosure 4 RAID

$58.99



Yottamaster 5 Bay RAID Hard Drive Enclosure USB3.1 Type C 2.5

Yottamaster 5 Bay RAID Hard Drive Enclosure USB3.1 Type C 2.5"/3.5" SATA HDD SSD

$142.49