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
  •  


1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot picture

1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot

$80.39



Seagate ST1000VM002 1TB 64MB SATA6Gb/s 3.5

Seagate ST1000VM002 1TB 64MB SATA6Gb/s 3.5" (Low Power) Hard Drive -PC, CCTV DVR

$24.99



Monterey - Apple MacBook Pro 15

Monterey - Apple MacBook Pro 15" 1TB SSD 16GB i7 3.40Ghz Retina - ALLSTATE

$499.50



Type C USB 3.0 Flash Drive Thumb Drive Memory Stick for PC Laptop 1TB 2TB lot picture

Type C USB 3.0 Flash Drive Thumb Drive Memory Stick for PC Laptop 1TB 2TB lot

$73.29



Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5

Patriot P210 128GB 256GB 512GB 1TB 2TB 2.5" SATA 3 6GB/s Internal SSD PC/MAC Lot

$19.99



1TB SATA 3.5

1TB SATA 3.5" HDD Mixed Brand Mixed Speed WD HGST Seagate Hitachi

$12.95



Samsung - Geek Squad Certified Refurbished 870 EVO 1TB SATA Solid State Drive picture

Samsung - Geek Squad Certified Refurbished 870 EVO 1TB SATA Solid State Drive

$67.99



External Hard Disk Drives 1TB/2TB/4TB USB 3.0 Portable Data Transfer Hard Drive  picture

External Hard Disk Drives 1TB/2TB/4TB USB 3.0 Portable Data Transfer Hard Drive

$18.00



4TB Ssd 870 Internal Solid State Drive Hard Disk 2.5 Inch Sata Iii 2TB Ssd picture

4TB Ssd 870 Internal Solid State Drive Hard Disk 2.5 Inch Sata Iii 2TB Ssd

$34.99



Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot picture

Fanxiang 4TB 2TB 1TB SSD 550MB/s 2.5'' SATA III Internal Solid State Drive lot

$188.99