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

Thread: Useful tip: Run LiveCD and eject CD

  1. #11
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Germany
    Posts
    297

    Re: Cannot Eject CD

    Quote Originally Posted by drmarathe
    knoppix@ttyp2[knoppix]$ sudo umount -l /cdrom
    umount: /cdrom: not mounted
    knoppix@ttyp2[knoppix]$ sudo eject /dev/cdrom
    eject: unable to find or open device for: `/dev/cdrom'
    knoppix@ttyp2[knoppix]$ mount /dev/cdrom
    mount: mount point /mnt/auto/cdrom does not exist
    2.6 in Knoppix 3.4 had some problems:

    sudo eject /dev/scd0 or /dev/hdX should work though.

    cu

    Fabian

  2. #12
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Germany
    Posts
    297

    Copy to HD / RAM while running from CD

    Hi,

    this is really really cool.

    Now we can copy to HD / RAM while running from CD, which basically also allows changing the applications that run from the CD! Changing is just limited by the number of cloop devices, which is sad :-/ due to a bug (?) in cloop ...

    Code:
    # copy to HD
    mount /mnt/hda6
    rsync -avP /cdrom/KNOPPIX /mnt/hda6/
    
    # load from HD
    losetup /dev/cloop1 /mnt/hda6/KNOPPIX/KNOPPIX
    mount /dev/cloop1 /KNOPPIX
    
    # remove CD
    umount -l /cdrom
    eject /dev/cdrom
    
    # fill in /cdrom again (optional)
    # either through --move or --bind
    mount --bind /mnt/hda6 /cdrom
    Thats it.

    Possibilities are of course again unlimited. This could create an ISO on the fly from the CD and then insert it, copy to NTFS partitions and whatever you have not even thought of.

    I'm still working on a solution to put out the CD cleanly without risking cloop to not be able to read some blocks ... (when you can't change to another backing device)

    Possibly you could just copy (e.g. videoplayer) whats necessary to ramdisk and then run from there ...

    cu

    Fabian

  3. #13
    Junior Member registered user
    Join Date
    Aug 2004
    Location
    Pune, India
    Posts
    13

    Ejecting CD

    Fabien,

    That worked. i.e.
    #sudo eject /dev/scd0

    It looks like I have to start the video/audio playing program beforehand and then eject the Knoppix CD, put a video/music Cd. Which is ok.

    But I tried to remount the Knoppix CD
    with
    # mount /mnt/cdrom
    or
    #mount /dev/scd0

    But the first gives an error saing no valid fstab entry. Doue he umount remove this entry or what? How can I remount the Knoppix CD after finishing playing a music/video CD.

    Thanks

  4. #14
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Germany
    Posts
    297

    Re: Ejecting CD

    Quote Originally Posted by drmarathe
    Fabien,

    That worked. i.e.
    #sudo eject /dev/scd0

    It looks like I have to start the video/audio playing program beforehand and then eject the Knoppix CD, put a video/music Cd. Which is ok.

    But I tried to remount the Knoppix CD
    Just use:

    Code:
    sudo mount /dev/scd0 /cdrom
    cu

    Fabian

  5. #15
    Senior Member registered user
    Join Date
    Aug 2003
    Location
    Dublin, Ireland
    Posts
    164

    Now I find bootfrom

    NOTE: All the instructions in this seem to be superceeded by my discovery of bootfrom, I'd done it and written it though so I'm posting them just in case they are useful to anyone!

    Of course instead of copying tohd, if you already have the iso on your hd you can just loop mount that, even if the iso is sitting on NTFS!

    Code:
    knoppix@ttyp0[knoppix]$ sudo su -
    # replace /dev/hda2 with the device holding your iso
    root@ttyp0[~]# mount /mnt/hda2
    root@ttyp0[~]# mkdir /locdrom
    # loopback mount the iso
    root@ttyp0[~]# mount -o loop /mnt/hda2/1bfree/2burn/knoppix_3.7_PC-Welt.iso /locdrom/
    # setup and mount the cloop
    root@ttyp0[~]# losetup /dev/cloop1 /locdrom/KNOPPIX/KNOPPIX
    root@ttyp0[~]# mount -o ro /dev/cloop1 /KNOPPIX
    # now you can umount the cd and eject it
    root@ttyp0[~]# umount -l /cdrom
    root@ttyp0[~]# eject /dev/scd0
    # (optional) fill the /cdrom back in so everything shoudl appear correct
    root@ttyp0[~]# mount --bind /locdrom/ /cdrom
    Now of course I just have to remember to unmount it all again (but of course it is only mounted read only So it means any poor soul with a machine fully formatted to ntfs and only one cd/dvd drive can download knoppix to the ntfs drive from the devils OS (or if they get a cd can they use rawrite under xp to copy it across? or what other free tool would there be), burn it, boot it, swap in the on-ntfs iso and then eject the cd. Of course I now realise you could just as easily burn it (or stick a cd in the drive) and then copy out the KNOPPIX folder under windows and use fromhd, but where's the fun in that (and it means using double the disc space or deleting the iso)!

    Perhaps knoppix-autoconfig should have an option like "fromhd=iso:/dev/hda2" ... wait, when did bootfrom arrive (it's in 3.6 anyway) Looks like all I really needed instead of all the above was "bootfrom=/dev/hda2/1bfree/2burn/k*.iso". It seems Fabian is way ahead of me as always I'll have to look at how bootfrom works! Next stop allowing it to load multiple cloops from cheatcodes (though I guess there is no point until someone builds a suitable second image to load).

    Perhaps this post will help someone else realise bootfrom is what they need! I just went and tried it and it boots off the cd, switches to the iso and releases the cd drive (so you can eject the cd), magic!

  6. #16
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY, USA
    Posts
    1,256
    What about toram?

    I can do this on some of my PCs which have about 1GB of RAM. However, most PCs I use won't be able to handle this.

    Does anyone know if Damn Small Linux does toram? DSL is a lot like KNOPPIX as its a pared-down remaster that only takes a 50MB ISO! I have used it on occassion on the road to access my DEBIAN server at school so I can use all the apps I want. I never tried toram with DSL. I burn DSL on the 210MB 8cm CDRs, but it could even fit on one of those Business Card or Credit Card sized CDRs.

    Just my 2 cents,
    AJG

  7. #17
    Senior Member registered user
    Join Date
    Feb 2004
    Posts
    949
    Quote Originally Posted by A. Jorge Garcia
    What about toram?

    I can do this on some of my PCs which have about 1GB of RAM. However, most PCs I use won't be able to handle this.

    Does anyone know if Damn Small Linux does toram? DSL is a lot like KNOPPIX as its a pared-down remaster that only takes a 50MB ISO! I have used it on occassion on the road to access my DEBIAN server at school so I can use all the apps I want. I never tried toram with DSL. I burn DSL on the 210MB 8cm CDRs, but it could even fit on one of those Business Card or Credit Card sized CDRs.

    Just my 2 cents,
    AJG
    Yea, it has toram. Omly takes a few minutes too.

    If it could support my computer I would buy a copy (A. to Help devoplement. B. Because I want one of those creditcard cds that I can't find anywhere.)

  8. #18
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    Long Island, NY, USA
    Posts
    1,256
    I know, the only place I've seen the Business Card CDRs is:

    http://cgi.ebay.com/ws/eBayISAPI.dll...123929535&rd=1

    Regards,
    AJG

  9. #19
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    hmmm, i ordered some 50Mb Cd's this summer from
    http://www.clasohlson.se/
    perhaps you could get from there.
    EDIT i found some 30Mb (Verbatim ) here
    http://www.dataprince.se/webshop/sho...&article=43027
    /EDIT

  10. #20
    Junior Member
    Join Date
    Jan 2005
    Posts
    2
    killer! thanks a lot for a tip. this "lazy" umount seems to discard "in use" thing.
    P.S. the same situation here - hd crashed, and now it seems i could go well without it

Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. CD Eject and installing files
    By macstrat in forum Hdd Install / Debian / Apt
    Replies: 4
    Last Post: 05-12-2005, 04:40 PM
  2. CD eject with KNOPPIX live
    By Mark Walter in forum Hardware & Booting
    Replies: 2
    Last Post: 07-25-2004, 06:24 PM
  3. how to eject cd?
    By redss in forum General Support
    Replies: 2
    Last Post: 07-10-2004, 04:44 PM
  4. custom knoppix eject on poweroff/reboot problem
    By bartavelle in forum Customising & Remastering
    Replies: 0
    Last Post: 11-27-2003, 05:10 PM
  5. Eject cd
    By Ambrose in forum General Support
    Replies: 1
    Last Post: 03-15-2003, 02:24 AM

Posting Permissions

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


Knoppix 9.1 Live Linux GNU Bootable USB Flash Drive USA picture

Knoppix 9.1 Live Linux GNU Bootable USB Flash Drive USA

$14.77



Knoppix NSM 1.2 picture

Knoppix NSM 1.2

$16.00



Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive picture

Knoppix Live GNU Linux System 9.1 on Bootable CD / DVD / USB Flash Drive

$9.99



Hamshack Live DVD-ROM picture

Hamshack Live DVD-ROM

$12.00



Linux Knoppix 4.0.2 Installation Disc picture

Linux Knoppix 4.0.2 Installation Disc

$39.99



Knoppix Linux Bootable OS v8.6

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 16G USB Stick

$19.95



KNOPPIX 9.1 LINUX INSTALL & LIVE DVD picture

KNOPPIX 9.1 LINUX INSTALL & LIVE DVD

$9.99



Acer Aspire One 9 inch Netbook ZG5 512MB RAM 8GB SSD HD Knoppix Linux WiFi VGA picture

Acer Aspire One 9 inch Netbook ZG5 512MB RAM 8GB SSD HD Knoppix Linux WiFi VGA

$79.99



Knoppix Linux Bootable OS v8.6

Knoppix Linux Bootable OS v8.6 "Original Live Operating System" 32G USB Stick

$20.30