poniedziałek, 27 maja 2013
[Slax] Install Slax on HDD and usefull command
# run sshd
sh /etc/rc.d/rc.sshd start
mkfs -t ext2 /dev/sdc1
sed -i 's/OLD/NEW/g' filename
Installation
fdisk /dev/sda
# delete old partition "d"
# create new partition "n"
# more http://tldp.org/HOWTO/Partition/fdisk_partitioning.html
mkfs.ext2 /dev/sda1
mkswap /dev/sda2
swapon /dev/sda2
cd /mnt
mkdir sda1
mount /dev/sda1 sda1
mount
cp --preserve -R /{bin,dev,etc,home,lib,root,sbin,usr,var,opt} /mnt/sda1
mkdir /mnt/sda1/{boot,mnt,proc,sys,tmp}
cp /boot/vmlinuz /mnt/sda1/boot
mount -t proc proc /mnt/sda1/proc
mount --bind /dev /mnt/sda1/dev
Startx
#Enter KDE desktop. Visit slax.org to downlad and install #grub0.93.mo for slax #and rename it as grub.lzm
#www.slax.org/modules.php?category=system&id=2493&name=Grub #install the module
slax activate grub*
grub-install --root-directory=/mnt/sda1 /dev/sda
cd /mnt/sda1/boot/grub
slax activate nano
nano /mnt/sda1/boot/grub/menu.lst
#paste
timeout 1
default 0
color white/blue black/light-gray
# Linux Kernels
title Slax6
root (hd0,0)
kernel /boot/vmlinuz max_loop=255 init=linuxrc root=/dev/sda1 ro autoexec=xconf;kdm
boot
autoexec=swapon~/dev/sdb2
Subskrybuj:
Komentarze do posta (Atom)
Brak komentarzy:
Prześlij komentarz