Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: Poor man's install, with extra storage, on NTFS/Win7

Hybrid View

  1. #1
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802

    Poor man's install, with extra storage, on NTFS/Win7

    Here is a short account of my (rather trivial) procedure for running Knoppix off an unmodified NTFS partition, with extra storage.

    In case partitions can't be shrinked or deleted, this is a non-invasive way of adapting the PC to Linux. I have just used it on a new Toshiba Satellite R830, w/640GB disk.

    1. Boot from USB. (In this case, external SSD-disk on USB3, very fast)
    2. Copy KNOPPIX over to main NTFS partition.
    3. Setup a new, large image file on the NTFS partition with ext4, mount it as /store.
    4. Copy over /store from backup to the new "partition".

    Here's what I did run:

    Code:
    # fdisk -l
    
      Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1         192     1536000   27  Unknown
    /dev/sda2             192       76169   610284544    7  HPFS/NTFS
    /dev/sda3           76169       77826    13309952   17  Hidden HPFS/NTFS
    
    # mount /media/sda2
    # rsync -ax /mnt-system/KNOPPIX /media/sda2 &
    # dd if=/dev/zero of=/media/sda2/store.img bs=1M count=60000 &
    60000+0 records in
    60000+0 records out
    62914560000 bytes (63 GB) copied, 682.558 s, 92.2 MB/s
    # losetup /dev/loop6 /media/sda2/store.img
    # mkfs.ext4 /dev/loop6
    # losetup -d /dev/loop6
    # mkdir /store
    # mount -o loop=/dev/loop6 /media/sda2/store.img /store
    # mount /media/sdb2
    # rsync -ax /media/sdb2/local/ /store &
    All the indirection is of course not optimal, but with a Sandy Bridge I5-2410, I think I can live with it. Here's a snapshot of top while copying the files

    Code:
    PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND           
      5071 root      20   0  2668 1184  664 S   22  0.0  14:26.44 mount.ntfs         
    21056 root      20   0  7668 4704  840 R   19  0.1   2:20.18 rsync              
    21058 root      20   0 19144 1916  620 R   19  0.0   2:21.09 rsync
    After starting from HD, I can manually mount this new image file, or I can add the commands to rc.local.

    This /store can be used also for remastering, but to be as failsafe as possible, I would recommend repeating the procedure for another similar image for that purpose. Maybe I'll come back with a detailed exposition of remastering on "foreign land" like NTFS.

    Normally, it should be enough just to enter knoppix{64} and the usual boot options to run from NTFS - that image should be found first and used. But, of course, using the fromhd=/dev/sda2 makes it even more foolproof.

  2. #2
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    Quick update: I'm writing this from Firefox under WinXP Pro, running under VMware workstation in a virtual machine located in that second persistent image I created, mounted on /store. It is of course not for really heavy work but it works quite well, though., So, everything works right out of the box in this procedure.

    To reduce the services overhead, I only start VMware server when I need it, so the init is done manually.
    Code:
    # su
    # mkdir /store
    # mount -o loop=/dev/loop6 /mnt-system/store.img /store
    # /etc/init.d/vmware start
    The two lines creating and mounting /store can be added to /etc.rc.local to have this automatically carried out. Beware that this system feature is special for this install, so, ulike basic installs, the setup cant be simply copied using the ordinary Knoppix tools.

    Also, there was a Windows Boot directory, so I chose not to create the Knoppix /boot directory on NTFS.

  3. #3
    Senior Member registered user
    Join Date
    May 2006
    Location
    Columbia, Maryland USA
    Posts
    1,631
    @ Capricorny

    Having Windows Professional and VMWare as part of your arsenal,
    you don't represent a lot of us poor souls with mere basic Windows
    setups.

    Windows 7 Home premium will make nice Virtual Hard Drives
    but it wont boot them; you need Win 7 Professional or Ultimate for
    that. VMWare and Win7 Professional are both in the $200 upgrade
    category. I'd like to see what's possible with more meager software
    tools to begin with.

    My impression of VirtualBox is that it offers some rudimentary
    Virtual capability, but is not a very satisfactory environment
    to work around in for very long. The price is right, however.

  4. #4
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    Quote Originally Posted by utu View Post
    @ Capricorny

    Having Windows Professional and VMWare as part of your arsenal,
    you don't represent a lot of us poor souls with mere basic Windows
    setups.
    This is no professional stuff, it's Win7 Home Premium right out of the box on a Toshiba R830 - middle class no-nonsense 13.3" I5-2410/4GB laptop. VMware workstation is ca $200 full price, but you don't need it to run virtual machines, you can download that running software from VMware for free. And, as you must have noted: I used it merely for illustrative purposes here: To show that running off vm in a loop-mounted ext4 image residing in a NTFS file works quite well. You can do just the same with other virtualization programs. And virtualization support is getting real strong in Linux now. Only reason I'm running VMware, is that I'm a long-time user, and it's hassle-free for my needs.

    My main point in this exercise is to provide a recipe for you and others who feel stuck with Windows-occupied hardware: That is no reason for not running full versions of Linux, and you can even do virtualization on top of it. With no system changes to the M$ infestations.

  5. #5
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    Quote Originally Posted by utu View Post
    My impression of VirtualBox is that it offers some rudimentary
    Virtual capability, but is not a very satisfactory environment
    to work around in for very long. The price is right, however.
    May I suggest that your impression of VirtualBox may be somewhat influenced by you "insisting" on running it off a Windows host, with all M$ antics in effect, rather than on a host built on a more empowering philosphy? Perform the described poor man's install, add the storage, boot Knoppix natively, and then you can experiment with Knoppix Virtualbox.
    I may come back with some notes on that - but virtualization in itself isn't that interesting to me. And I have never understood the people running Linux guests on Wondows hosts instead of the other way around, when they have a choice. And as I just have shown, with Knoppix you always have a choice .

  6. #6
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802

    Virtualbox trouble on 6.4.4

    Quote Originally Posted by Capricorny View Post
    Perform the described poor man's install, add the storage, boot Knoppix natively, and then you can experiment with Knoppix Virtualbox.
    Sad state of affairs on my machine- Pre-installed Virtualbox won't run, and apt-get:

    Code:
    # apt-get install virtualbox
    ......
    The following packages have unmet dependencies:
     virtualbox : Depends: libqtcore4 (>= 4:4.7.0~beta1) but 4:4.6.3-4+squeeze1 is to be installed
                  Depends: libstdc++6 (>= 4.6) but 4.4.5-8 is to be installed
                  Recommends: virtualbox-qt (= 4.0.10-dfsg-1) but it is not going to be installed
    E: Broken packages
    So, it seems virtualbox is going to be extremely virtual for a while.

  7. #7
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Quote Originally Posted by Capricorny View Post
    Code:
    # apt-get install virtualbox
    ......
    The following packages have unmet dependencies:
     virtualbox : Depends: libqtcore4 (>= 4:4.7.0~beta1) but 4:4.6.3-4+squeeze1 is to be installed
                  Depends: libstdc++6 (>= 4.6) but 4.4.5-8 is to be installed
                  Recommends: virtualbox-qt (= 4.0.10-dfsg-1) but it is not going to be installed
    E: Broken packages
    So, it seems virtualbox is going to be extremely virtual for a while.
    As you can see from here, virtualbox has many packages built with many different dependencies :-

    http://www.virtualbox.org/wiki/Linux_Downloads

    I always use the last entry, ie All distribution i386. Using this one, it is able to avoid the file dependency problem.

  8. #8
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    By the way virtualbox need to rebuild it's kernel module driver for a target kernel, and this can be done by doing once after installation :-

    # /etc/init.d/vboxdrv setup

    This will compile the kernel driver needed to run vb if you have the proper kernel header.

  9. #9
    Senior Member registered user
    Join Date
    Dec 2009
    Posts
    423
    Quote Originally Posted by utu View Post
    My impression of VirtualBox is that it offers some rudimentary
    Virtual capability, but is not a very satisfactory environment
    to work around in for very long.
    I think you are referring to OSE version - Knoppix is preinstalled with OSE version if I am not mistaken. But if you are using PUEL version, it should be at par with VMplayer.

  10. #10
    Senior Member registered user
    Join Date
    Sep 2006
    Posts
    802
    Quote Originally Posted by kl522 View Post
    I think you are referring to OSE version - Knoppix is preinstalled with OSE version if I am not mistaken. But if you are using PUEL version, it should be at par with VMplayer.
    I think utu has used it under Windows? But it may seem that the OSE version isn't that much to brag about, plus there is a dependency maze sometimes. Still, it may be a strategical tool to care about for us?

Page 1 of 3 123 LastLast

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