Difference between revisions of "Installation of older Knoppix to HDD"
m (category) |
(HUGE format fixing, please preview new pages) |
||
Line 1: | Line 1: | ||
− | Installation of older | + | Installation of older Knoppix to HDD |
- Described installation was tried on Dannix (CZ Knoppix) from 3.7. 2003 | - Described installation was tried on Dannix (CZ Knoppix) from 3.7. 2003 | ||
+ | |||
- Boot Knoppix CD | - Boot Knoppix CD | ||
+ | |||
- Run Root Console | - Run Root Console | ||
+ | |||
- Use "fdisk" to create two primary partitions. Larger for OS (for example /dev/hda1 | - Use "fdisk" to create two primary partitions. Larger for OS (for example /dev/hda1 | ||
− | + | as type 83 Linux) and smaller for swap (for example /dev/hda2 as type 82 Linux Swap). | |
− | + | Don't forget to set up bootable attribute "a" to /dev/hda1. | |
+ | |||
- Run "mke2fs /dev/hda1" for initialization of the device | - Run "mke2fs /dev/hda1" for initialization of the device | ||
+ | |||
- Run "mkdir /mnt/hda1" for creation of the mounting point | - Run "mkdir /mnt/hda1" for creation of the mounting point | ||
+ | |||
- Run "mount -t ext2 /dev/hda1 /mnt/hda1" for mounting of the device | - Run "mount -t ext2 /dev/hda1 /mnt/hda1" for mounting of the device | ||
+ | |||
- Run "cp -a /KNOPPIX/* /mnt/hda1" to copy of needed files | - Run "cp -a /KNOPPIX/* /mnt/hda1" to copy of needed files | ||
+ | |||
- Run "cp /etc/fstab /mnt/hda1/etc" to copy "fstab" file to new system location | - Run "cp /etc/fstab /mnt/hda1/etc" to copy "fstab" file to new system location | ||
+ | |||
- Run "chroot /mnt/hda1" for moving to interactive shell | - Run "chroot /mnt/hda1" for moving to interactive shell | ||
− | |||
+ | - Modify "/etc/fstab" file: | ||
+ | <pre> | ||
/dev/hda2 none swap sw 0 0 | /dev/hda2 none swap sw 0 0 | ||
/dev/hda1 / ext2 noatime 0 1 | /dev/hda1 / ext2 noatime 0 1 | ||
Line 23: | Line 33: | ||
/dev/cdrom /cdrom auto noauto,user 0 0 | /dev/cdrom /cdrom auto noauto,user 0 0 | ||
/dev/fd0 /floppy auto noauto,user, umask=000 0 0 | /dev/fd0 /floppy auto noauto,user, umask=000 0 0 | ||
+ | </pre> | ||
- Run "mkdir /dev/shm" to create of needed directory | - Run "mkdir /dev/shm" to create of needed directory | ||
− | |||
+ | - Modify "/etc/lilo.conf" file: | ||
+ | <pre> | ||
lba32 | lba32 | ||
boot=/dev/hda | boot=/dev/hda | ||
Line 39: | Line 51: | ||
label=DaNiX | label=DaNiX | ||
read-write | read-write | ||
+ | </pre> | ||
- Run "lilo" for writing of new informatin to MBR | - Run "lilo" for writing of new informatin to MBR | ||
− | - Modify "/etc/init.d/*xsession" file. Find "USER=knoppix" and change it to "USER=root" (aproximately 5th line) | + | |
+ | - Modify "/etc/init.d/*xsession" file. Find "USER=knoppix" and change it to "USER=root" | ||
+ | (aproximately 5th line) | ||
+ | |||
- Reboot Knoppix and then boot it from HDD (NOT from CD!!!) | - Reboot Knoppix and then boot it from HDD (NOT from CD!!!) | ||
+ | |||
- Run Root Console | - Run Root Console | ||
+ | |||
- Run "mkswap /dev/hda2" for setting up /dev/hda2 as swap device | - Run "mkswap /dev/hda2" for setting up /dev/hda2 as swap device | ||
+ | |||
- Reboot Knoppix | - Reboot Knoppix | ||
Line 50: | Line 69: | ||
- If you want to run Knoppix OS as a different user (not root), create it (run "adduser"). | - If you want to run Knoppix OS as a different user (not root), create it (run "adduser"). | ||
− | - Modify "/etc/init.d/*xsession" file. Find "USER=root" and change it to "USER=%UserName%" (aproximately 5th line), where | + | |
− | + | - Modify "/etc/init.d/*xsession" file. Find "USER=root" and change it to "USER=%UserName%" (aproximately 5th line), where %UserName% is the user name of created user. | |
− | - Run "visudo" to modify "/etc/sudoers". There you have to find and change "knoppix" to "USER=%UserName%", where | + | |
− | + | - Run "visudo" to modify "/etc/sudoers". There you have to find and change "knoppix" to "USER=%UserName%", where %UserName% is the user name of created user. This change will allow you to run Root Console. | |
+ | |||
- Reboot Knoppix. | - Reboot Knoppix. | ||
[[Category:Hard drive Installation]] | [[Category:Hard drive Installation]] |
Revision as of 18:34, 19 October 2006
Installation of older Knoppix to HDD
- Described installation was tried on Dannix (CZ Knoppix) from 3.7. 2003
- Boot Knoppix CD
- Run Root Console
- Use "fdisk" to create two primary partitions. Larger for OS (for example /dev/hda1 as type 83 Linux) and smaller for swap (for example /dev/hda2 as type 82 Linux Swap). Don't forget to set up bootable attribute "a" to /dev/hda1.
- Run "mke2fs /dev/hda1" for initialization of the device
- Run "mkdir /mnt/hda1" for creation of the mounting point
- Run "mount -t ext2 /dev/hda1 /mnt/hda1" for mounting of the device
- Run "cp -a /KNOPPIX/* /mnt/hda1" to copy of needed files
- Run "cp /etc/fstab /mnt/hda1/etc" to copy "fstab" file to new system location
- Run "chroot /mnt/hda1" for moving to interactive shell
- Modify "/etc/fstab" file:
/dev/hda2 none swap sw 0 0 /dev/hda1 / ext2 noatime 0 1 none /proc proc defaults 0 0 none /dev/shm tmpfs defaults 0 0 /dev/cdrom /cdrom auto noauto,user 0 0 /dev/fd0 /floppy auto noauto,user, umask=000 0 0
- Run "mkdir /dev/shm" to create of needed directory
- Modify "/etc/lilo.conf" file:
lba32 boot=/dev/hda prompt delay=50 vga=normal default=DaNiX image=/vmlinuz append="lang=us apm=power-off" root=/dev/hda1 label=DaNiX read-write
- Run "lilo" for writing of new informatin to MBR
- Modify "/etc/init.d/*xsession" file. Find "USER=knoppix" and change it to "USER=root" (aproximately 5th line)
- Reboot Knoppix and then boot it from HDD (NOT from CD!!!)
- Run Root Console
- Run "mkswap /dev/hda2" for setting up /dev/hda2 as swap device
- Reboot Knoppix
- The Knoppix system is now installed on your HDD and you can run it as root user.
- If you want to run Knoppix OS as a different user (not root), create it (run "adduser").
- Modify "/etc/init.d/*xsession" file. Find "USER=root" and change it to "USER=%UserName%" (aproximately 5th line), where %UserName% is the user name of created user.
- Run "visudo" to modify "/etc/sudoers". There you have to find and change "knoppix" to "USER=%UserName%", where %UserName% is the user name of created user. This change will allow you to run Root Console.
- Reboot Knoppix.