Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Knoppix_dir and /cdrom2 error + fix< Next Oldest | Next Newest >
chaostic Offline





Group: Members
Posts: 328
Joined: Mar. 2005
Posted: July 07 2008,08:29 QUOTE

I have started using the "knoppix_dir=" (along with toram) cheatcode, and have come up with an error. It always fails after copying toram, with a "Chaging to /cdrom2 failed." error. I have tracked it down to the minirt64.gz -> minirt -> linuxrc function "remount_knoppix". It always fails the test for the file "$Target/$knoppix_dir/$knoppix_name". That can be traced to the calling function "copy_to". The rsync command used within copy_to FAILS to copy the containing directory holding the knoppix file, the "knoppix_dir" to the target directory.

Rsync just copies the containing files (knoppix, linux24, minirt24.gz) to /cdrom2/, instead of to /cdrom2/knoppix_dir/.
The backup cp command that gets run if rsync is missing does copy the knoppix_dir folder though.

(Also, from trying to run the commands, the first rsync command copies everything over to the target folder, and then the second rsync doesn't copy anything at all, but still exits with 0, never triggering the "Copying DSL image failed" error.)

The quickest fix is to simply remove lines 543-551 and 553 (Remove rsync, and it's if/else, leaving just the cp command).

I tested this on 4.4.2's minirt24.gz, but the same problem exists on 3.4.11. (remove lines 458~466 and 468).

My boot environment:
Code Sample

dsl3/
    /linux24
    /minirt24.gz
    /knoppix
dsl4/
    /linux24
    /minirt24.gz
    /knoppix
dslcore/
    /bzimage
    /dslcore.gz
syslinux/
    /boot.msg (f1)
    /dsl3.msg (f3)
    /dsl4.msg (f4)
    /dslcore.msg (f5)
    /standard.msg (f2)
    /ldlinux.sys
    /logo.16
    /syslinux.cfg


Boot options of note for each distro:
Code Sample

dsl 3.4.11
KERNEL /dsl3/linux24
append ~snip~ toram frugal initrd=/dsl3/minirt24.gz knoppix_dir=dsl3/

dsl 4.4.2
KERNEL /dsl4/linux24
append ~snip~ toram frugal initrd=/dsl4/minirt24.gz knoppix_dir=dsl4/ fromusb

dslcore
KERNEL /dslcore/bzimage
append ~snip~ initrd=/dslcore/dslcore.gz vga=792


Dslcore gave me no problems at all (Except as mentioned in the alpha thread, natch :P :laugh: )
As an added bonus from the fix, you also get a copy of linux24 and minirt24.gz copied to /cdrom along with knoppix, as it should.

(Oh, and is having "frugal" when you have "toram" redundant?)
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: July 08 2008,04:22 QUOTE

Good job. Will be in the next release of 4.x.
Back to top
Profile PM WEB 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: July 08 2008,05:16 QUOTE

Quote
(Oh, and is having "frugal" when you have "toram" redundant?)
Yes, I think so.  And the frugal part would then just be ignored.
Back to top
Profile PM 
chaostic Offline





Group: Members
Posts: 328
Joined: Mar. 2005
Posted: July 08 2008,05:35 QUOTE

Quote (^thehatsrule^ @ July 08 2008,01:16)
Quote
(Oh, and is having "frugal" when you have "toram" redundant?)
Yes, I think so.  And the frugal part would then just be ignored.

Yea, I noticed that when reading the scripts. But better to ask then to be sorry :laugh:
Back to top
Profile PM 
3 replies since July 07 2008,08:29 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Knoppix_dir and /cdrom2 error + fix

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code