Results 1 to 6 of 6

Thread: installing knoppix on HD

  1. #1
    loji
    Guest

    installing knoppix on HD

    Are there nay tricks to installgin knoppix s a HD i go tthis form teh slackware site
    Q: Can my ZipSlack installation be moved onto a real Linux partition?


    Yes, it can. Here are the steps you'll need to follow to migrate your installation onto a Linux ext2 partition:

    Define a Linux partition using fdisk or cfdisk. If you find it easier, you can use DOS or Windows tools to create the partition and then use Linux fdisk to change the partition type to 83 (Linux native).

    Format this partition with 'mke2fs'. For example, if your new Linux partition is /dev/hdb1 you'd use the following command:
    mke2fs /dev/hdb1

    Formatting destroys the existing filesystem on the partition, so make sure to format the correct partition!


    Mount the new partition on /mnt. In the case of the example above, this command will do it:
    mount /dev/hdb1 /mnt


    Make a few directories on the new partition:
    mkdir /mnt/cdrom
    mkdir /mnt/mnt
    mkdir /mnt/proc


    Now it's time to actually move the data. First you'll need to set your 'umask' to 000 to correctly preserve all file permissions, and then you'll copy the top-level directories (other than cdrom, mnt, and proc) and the kernel file (vmlinuz) onto the new Linux partition:
    umask 000
    cp -a /bin /mnt
    cp -a /boot /mnt
    cp -a /dev /mnt
    cp -a /etc /mnt
    cp -a /home /mnt
    cp -a /lib /mnt
    cp -a /root /mnt
    cp -a /sbin /mnt
    cp -a /tmp /mnt
    cp -a /usr /mnt
    cp -a /var /mnt
    cp -a vmlinuz /mnt

    If you've made any new top-level directories that you want to save, copy them over to the new partition in the same way.


    Edit the /mnt/etc/fstab. Change the device listed for the '/' partition to the new Linux partition's device.

    That's it! Your system should be ready to boot on the new partition. To do that, you can use loadlin (if it's installed on your DOS or Windows partition), or a bootdisk. Once you've booted the new partition you can proceed to set up LILO if you like. Note that when you boot a native Linux partition you should boot it in read-only mode (unlike UMSDOS). This allows it to do automatic filesystem checking periodically, or if the machine is ever shut down improperly. To boot a partition in read-only mode, add 'ro' instead of 'rw' to the bootdisk or loadlin command line.
    Since this operation must be done as root and involves dangerous operations like using fdisk, you need to be careful to avoid losing data. But, if you can migrate your installation successfully, you've earned your intermediate Linux sysadmin merit badge. :^)



    I wanna knwo what unmask does::::::

    And also any tips or hints...

  2. #2
    Member registered user
    Join Date
    Nov 2002
    Posts
    73
    i think what u are asking is how to install to a hard drive. as many have said before, RTFM!!! or atleast, RTFF (RTF Forum). it is sudo knx-hdinstall

  3. #3
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041

    Umask, chmod and octal numbers

    >> I wanna knwo what unmask does... And also any tips or hints...

    --The ' umask ' command sets the file permissions when a new file is created, and is related to the chmod command.

    From ' man umask ' (the actual doc is in ' man bash ' and you have to search for it by typing '/umask' and hitting 'n' a couple of times: )

    Code:
    umask [-p] [-S] [mode]
                  The  user  file-creation  mask  is set to mode.  If
                  mode begins with a digit, it is interpreted  as  an
                  octal number; otherwise it is interpreted as a sym
                  bolic  mode  mask  similar  to  that  accepted   by
                  chmod(1).  If mode is omitted, the current value of
                  the mask is printed.  The -S option causes the mask
                  to  be printed in symbolic form; the default output
                  is an octal number.  If the -p option is  supplied,
                  and  mode  is omitted, the output is in a form that
                  may be reused as input.  The return status is 0  if
                  the  mode  was  successfully  changed or if no mode
                  argument was supplied, and false otherwise.
    --Octal is base 8. (Actually 0 thru 7.) From my tips page ( http://wolfrdr.tripod.com/linuxtips.html#filemanip ) :

    Code:
    chmod == Modify file attributes for:
    + User, Group, AllOtherusers (non-group), or Allusers
    +
    + Note: For readability, '.' in the LS example stands for any value
    + (Command example does not affect this position)
    +
    + Note: For readability, '-' in the LS example stands for No access
    + (Command example DOES affect this position)
    +
    + Note: For the purposes of brevity, all ' LS ' examples for chmod are assumed ' LS -L '.
    
    ' chmod -cv +x <file> '
    == Make Executable for Owner(?) 
    (LS == ?..x...... )
    
    ' chmod -cv a+x <file> '
    == Make file executable for All users 
    (LS == ?..x..x..x )
    
    ' chmod -cv u+rwx <file> '
    == Make file Read,Write,Exec for User(Owner) 
    (LS == ?rwx...... )
    
    ' chmod -cvR g+rwx <file*> '
    == Make files Read,Write,Exec for Group 
    (LS == ?...rwx... )
    
    ' chmod -cvR o+rwx <file*> '
    == Give access for AllOther users not in Group 
    (LS == ?......rwx )
    
    ' chmod -cvR o-rwx <file*> '
    == Remove access for AllOther users not in Group 
    (LS == ???????--- )
    
    ' chmod -cv a-rwx <file*> '
    == Remove ALL access for ALL users except root
    
    Chmod addendum/shortcut from Glenn Milley:
    
    "Chmod may also be revised or set using an octal value, with a three
     digit sequence (req'd.), or alternatively with a fourth, leading digit.
     The relation between the alpha designations and the octal are shown below:
    
     ===== ( Optional fourth leading digit: )
     s       4       Set user ID (SUID; usually root) on execution 
     s       2       Set group ID on execution 
     t       1       Set sticky bit           
     ===== ( Regular settings: )
     r       4       Read         \
     w       2       Write         > Add these together for each position (user,group,other)
     x       1       execute      /
    
     Special Characteristics         User/Owner      Group   Others
                                     (u)             (g)     (o)
     --------------------------------------------------------
             4 (s)                   4       4       4       (r-typical)                                  
             2 (s)                   2       2       2       (w-typical)
             1 (t)                   1       1       1       (x-typical)
    
     Now you just make the selections and add the values in the appropriate
     column, e.g.,
    
     chmod 4755 <file1> is the same as,
    +  chmod u=srwx,g=rx,o=rx <file1>
    
     To set Read,Write,Execute for userid only on a file and deny all other access:
    +  chmod 700 <file>
    
     Note that the "=" sign defines permissions, a "+" would add and a "-" remove."
    --Note that the default umask is (I think) 666, which is "RW-" (Read+Write, and not Execute) for Owner, Group, and AllOthers. This value is normally set in one of the startup scripts, and individual users (such as root, knoppix, etc) can redefine it in their own personal login scripts.

    --BTW, probably one of the easiest ways to copy files is by using ' mc ' if you have it installed. (Knoppix does, by default.)

    Quote Originally Posted by Tigren
    i think what u are asking is how to install to a hard drive. as many have said before, RTFM!!! or atleast, RTFF (RTF Forum). it is sudo knx-hdinstall
    [/code]

  4. #4
    Guest
    Yes i was exactly askign hwo to isntall to HD..... that is before i was informed that ther eis the knx-hddinstall script itn there....

    but the install still isnt' knoppix.. ti's jsut debian... : /


    Thanks for letting me know what unmask means I loev learnign new things.. ( and i know next to nothing about linux.. so i'm learnign ltos)

  5. #5
    Member registered user
    Join Date
    Jan 2003
    Location
    UK
    Posts
    47
    Quote Originally Posted by Anonymous
    but the install still isnt' knoppix.. ti's jsut debian... : /
    What do you mean _just_ Debian?

    ;>

  6. #6
    Senior Member registered user
    Join Date
    Jan 2003
    Location
    42.3° N 122.9° W
    Posts
    166
    Knoppix isn't a distro. It's a very well scripted live CD Debian installation. Debian is one of if not the best distros out there.

Similar Threads

  1. Installing XP after Knoppix
    By Jseegs in forum Hdd Install / Debian / Apt
    Replies: 6
    Last Post: 01-08-2005, 01:22 AM
  2. installing knoppix to hdd
    By marijn in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 12-09-2004, 10:10 PM
  3. Installing Knoppix to MBR
    By sunpascal in forum MS Windows & New to Linux
    Replies: 2
    Last Post: 12-08-2004, 12:25 PM
  4. Installing Knoppix..
    By williamb in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 11-21-2004, 05:36 PM
  5. installing knoppix vs installing Linux from scratch
    By jza in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 05-03-2003, 11:30 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
  •  


VTG Atari 400 Home Computer System ** Sold

VTG Atari 400 Home Computer System ** Sold "AS-IS" for Parts or Repair

$88.75



Atari 130 XE/Atari 1050 Bundle W/ Cords And Extras (Powered On) picture

Atari 130 XE/Atari 1050 Bundle W/ Cords And Extras (Powered On)

$300.00



DEFECTIVE Atari 810 Vintage Computer Disk Drive  powers on Unit Only Boo G3D picture

DEFECTIVE Atari 810 Vintage Computer Disk Drive powers on Unit Only Boo G3D

$49.29



Atari 800 8-bit Computer System Fully Tested Great Condition 48k READ picture

Atari 800 8-bit Computer System Fully Tested Great Condition 48k READ

$350.00



Fujinet 1.7.1 Atari 400 800 800XL 130XE 65XE XEGS Assembled, Tested, Working picture

Fujinet 1.7.1 Atari 400 800 800XL 130XE 65XE XEGS Assembled, Tested, Working

$99.99



SDrive Max Floppy Drive Emulator Atari 8-Bit 400/800/XL/XE Firmware 1.5 USB C R2 picture

SDrive Max Floppy Drive Emulator Atari 8-Bit 400/800/XL/XE Firmware 1.5 USB C R2

$70.00



Atari XE  130XE Computer NTSC with Power Supply Powers On Untested picture

Atari XE 130XE Computer NTSC with Power Supply Powers On Untested

$159.95



INFO/soft Character Generator Manual for Atari 3000/5000/7000 NTSC picture

INFO/soft Character Generator Manual for Atari 3000/5000/7000 NTSC

$40.00



UNOCART-2600 SD card Multi Rom Cartridge for ATARI 2600 with CASE picture

UNOCART-2600 SD card Multi Rom Cartridge for ATARI 2600 with CASE

$34.25



Atari 1200xl Original ROM And MMU set picture

Atari 1200xl Original ROM And MMU set

$20.00