Users online right now: 122 - Login  » search  » forum index  

new users of slax on HDD.....(how to ....)

mahmoud_liby
wrote 5 years ago


reply
hello every body.
I know that this subject not new, but i have to say it is not completed in any threat before.
so i want to start again step by step.
so any one can help????
 
mahmoud_liby
wrote 5 years ago


reply
first i have the live-cd and now i want to install slax on my HDD.
i have logical partition NTFS file system.
how i can install the slax to it.
step by step plz.
thanks.
 
mocabilly
wrote 5 years ago


reply
If you want a dual boot system (keep your windows) then document yourself to:

- create an other partition (ext2 or ext3 would be nice)

- copy the contents of your boot cd to the root of that new partition (it's called a "frugal install" and it's the easiest way to install slax to HDD.)
DON'T use the slax install scripts if you want to keep using your windows OS

- install grub or some other boot loader

- create, be sure, there is a menu entry in grub's "menu.lst" file, pointing to the slax kernel..


If you are completely new to slax and or linux, be sure to do some thorough research on the
steps you have to take to install slax.
 
jcsoh
wrote 5 years ago


reply
@ mahmoud_liby

The information you give is not really complete . Slax can be installed to both logical or primary partition.
Assumptions :

(a) You want to do a frugal install (meaning afterward slax will be running live as in a cd or usb , but the only difference is that it will be running from the hard disk. You will still see the followings sub directories /base , /modules , /rootcopy etc. The most important aspect is that you will be able to use slax's lzm modules as it is ie by merely putting the module in /modules or activating it on the fly.

(b) You have window xp in the 1st primary partition (sda1 or hda1).
(c) You want to keep window xp.

STEPS

(A) BACK UP
How you want to do this , I leave it up to you. Disregard back up at your own risk.

(B) PARTITIONING

You need to create a partition for slax. If you entire hard disk is dedicated to window xp , you need to shrink it. Note the fuller the existing partition is , the greater is the risk of "errors /data lost " when shrinking, hence the need for back up.

Step to do before shrinking window partition.
(a) Defrag the files to move as much of the files together to make space for the new partition.
(b) Run check disk /scan disk . Check disk or scan disk you entire hard disk or window partition to mark any bad sector etc.

The actual partitioning:

(1) Use the konsole . It can be done but I am not familiar with the konsole and command line , so I won't comment further on this.

(2) Use a partitioning software like Gparted or Qtparted:
I use Gparted.
Get it at:

http://www.slax.org/modules.php?search=gparted&category=

I have use /am using Gparted 0.4.3-all.
Since you have not installed slax on the hard disk yet , save the lzm module on any write able media , after booting up slax from the cd or usb , just click on the module . Gparted will show up in KDE System Menu , or you can start it from a konsole , by typing

gparted.

Read Gparted documentation on how to partition /shrink etc:
Get it at:

http://gparted.sourceforge.net/documentation.php

Assumption at this point:

You have sucessfully create a new partition for slax.
Your hard disk now look like this

sda1 - with window xp
sda2 - for slax

Note : You hard disk partition may be shown as hda1 and hda2 instead of sda1 and sda2 .

(C) FORMATING

Format sda2 (or hda2) with a linux filesystem
As with the partitioning , you can use
(1) Command line from the konsole
(2) Partitioning software like Gparted /Qtparted etc.
If you are using Gparted as suggested earlier , then refer to the documentation at the link given earlier.

(D) MOUNT THE NEW PARTITION

If i recalled correctly if you only create a single partition . Gparted won't auto mount it (If you create a second partition , then it will automount the partition created earlier when it rescan).

From a konsole type

mount /dev/sda2

You can also right click the the partition name in the list shown on Gparted to mount it , but it won't allow this immediately after creating the partition . You need to quit Gparted and restart it.

(E) ADD A BOOT LOADER (GRUB /LILO etc)

I am using Grub , so I confined my comments to grub only.

(1) Down load Grub 0.97
Get it at:

http://www.slax.org/modules.php?search=grub&category=

On the link above , you will also see Grub 1.96 ,. Don't use that. The newer Grub behave differently.

(2) Activate Grub

Since you have not installed slax on the hard disk yet , save the lzm module on any writeable media ,just click on the module to activate grub.

(3) install Grub
I assumed Grub is to be install to sda2 , as you want to keep windox xp (in sda1 ) as it is.

GRUB installation "install SLAX on an iPod nano " by Jakemikey
 
jcsoh
wrote 5 years ago


reply
Continue From last posting . As the posting get chopped off.

(3) install Grub
I assumed Grub is to be install to sda2 , as you want to keep windox xp (in sda1 ) as it is.

GRUB installation "install SLAX on an iPod nano " by Jakemikey . I know it says ipod but it work for hard disk.
From a konsole , type (or cut and paste)

grub-install --root-directory=/mnt/sda2 /dev/sda

If grub is successfully installed , then in sda2 , you will see

/boot/grub , with grub files inside.

(F) menu.lst

You need a menu.lst . This is the menu use by grub.
The menu.lst must be placed in sda2 in /boot/grub , where all the grub files are.

The menu.lst is just a text file so you can just use kwrite to write it , or create an empty text file and cut and paste from the sample below:


default 0

timeout 10

color cyan/blue yellow/blue

title SLAX 609 IN SDA 2
root (hd0,1)
kernel /boot/vmlinuz ramdisk_size=6666 root=/dev/ram0 rw init=linuxrc autoexec=xconf;kdm;telinit~4
initrd /boot/initrd.gz

title WINDOW XP IN SDA 1
root (hd0,0)
chainloader +1
rootnoverify)
savedefault
boot

I do not include options like toram , changes=. Any option can be placed in the kernel line.

You are done. Reboot the computer after making sure your computer bios is set to boot the hard disk first.
 
mahmoud_liby
wrote 5 years ago


reply
ok,
i started to do this.
and i will tell you about every thing i got after.
thanks
 
Robert
wrote 5 years ago


reply
It's not working. But I think it's something about the syntax, I copy and past but Grub adds a sign in the middle(???) It's Ubuntu's Grub (Ubuntu is fucked), 8.10.

I'll search a manual for Grub commands. I think it's only that.
 
Solved!
wrote 5 years ago


reply
Sorry, it was only a syntax problem, it's working ok. Without the menu-options (splash screen) but it seems that all it's working ok (and fast!). Thanks.
 
topher-t-mill
wrote 5 years ago


reply
Thanks a helpful thread, I am testing out slax and have been using an older version on a laptop (newer version judders to a halt, but the lap top does only have 128mb Ram) So I am giving the latest KDE version a try out on a desk top with 256Mb Ram and am thinking of installing to a 2G hard drive
 
topher-t-mill
wrote 5 years ago


reply
Thanks a helpful thread, I am testing out slax and have been using an older version on a laptop (newer version judders to a halt, but the lap top does only have 128mb Ram) So I am giving the latest KDE version a try out on a desk top with 256Mb Ram and am thinking of installing to a 2G hard drive
 
topher-t-mill
wrote 5 years ago


reply
I have tied to make a boot iso, using run Slax from hard drive, but no wriring drive on this computer so I transfer image to burn using kde Burner, but still no joy.move cd writer to this comp and try again live?
 
topher-t-mill
wrote 5 years ago


reply
I have tied to make a boot iso, using run Slax from hard drive, but no wriring drive on this computer so I transfer image to burn using kde Burner, but still no joy.move cd writer to this comp and try again live?
 
tjdonahoo
wrote 5 years ago


reply
This is a lot of work. I just put an IDE adapter into my HDD caddy in my Dell and keep Slax running from a 4GB SDHC card.

http://sites.google.com/site/solidstatelinux/

Joe

jcsoh wrote:
@ mahmoud_liby

The information you give is not really complete . Slax can be installed to both logical or primary partition.
Assumptions :

(a) You want to do a frugal install (meaning afterward slax will be running live as in a cd or usb , but the only difference is that it will be running from the hard disk. You will still see the followings sub directories /base , /modules , /rootcopy etc. The most important aspect is that you will be able to use slax's lzm modules as it is ie by merely putting the module in /modules or activating it on the fly.

(b) You have window xp in the 1st primary partition (sda1 or hda1).
(c) You want to keep window xp.

STEPS

(A) BACK UP
How you want to do this , I leave it up to you. Disregard back up at your own risk.

(B) PARTITIONING

You need to create a partition for slax. If you entire hard disk is dedicated to window xp , you need to shrink it. Note the fuller the existing partition is , the greater is the risk of "errors /data lost " when shrinking, hence the need for back up.

Step to do before shrinking window partition.
(a) Defrag the files to move as much of the files together to make space for the new partition.
(b) Run check disk /scan disk . Check disk or scan disk you entire hard disk or window partition to mark any bad sector etc.

The actual partitioning:

(1) Use the konsole . It can be done but I am not familiar with the konsole and command line , so I won't comment further on this.

(2) Use a partitioning software like Gparted or Qtparted:
I use Gparted.
Get it at:

http://www.slax.org/modules.php?search=gparted&category=

I have use /am using Gparted 0.4.3-all.
Since you have not installed slax on the hard disk yet , save the lzm module on any write able media , after booting up slax from the cd or usb , just click on the module . Gparted will show up in KDE System Menu , or you can start it from a konsole , by typing

gparted.

Read Gparted documentation on how to partition /shrink etc:
Get it at:

http://gparted.sourceforge.net/documentation.php

Assumption at this point:

You have sucessfully create a new partition for slax.
Your hard disk now look like this

sda1 - with window xp
sda2 - for slax

Note : You hard disk partition may be shown as hda1 and hda2 instead of sda1 and sda2 .

(C) FORMATING

Format sda2 (or hda2) with a linux filesystem
As with the partitioning , you can use
(1) Command line from the konsole
(2) Partitioning software like Gparted /Qtparted etc.
If you are using Gparted as suggested earlier , then refer to the documentation at the link given earlier.

(D) MOUNT THE NEW PARTITION

If i recalled correctly if you only create a single partition . Gparted won't auto mount it (If you create a second partition , then it will automount the partition created earlier when it rescan).

From a konsole type

mount /dev/sda2

You can also right click the the partition name in the list shown on Gparted to mount it , but it won't allow this immediately after creating the partition . You need to quit Gparted and restart it.

(E) ADD A BOOT LOADER (GRUB /LILO etc)

I am using Grub , so I confined my comments to grub only.

(1) Down load Grub 0.97
Get it at:

http://www.slax.org/modules.php?search=grub&category=

On the link above , you will also see Grub 1.96 ,. Don't use that. The newer Grub behave differently.

(2) Activate Grub

Since you have not installed slax on the hard disk yet , save the lzm module on any writeable media ,just click on the module to activate grub.

(3) install Grub
I assumed Grub is to be install to sda2 , as you want to keep windox xp (in sda1 ) as it is.

GRUB installation "install SLAX on an iPod nano " by Jakemikey
 
jcsoh
wrote 5 years ago


reply
"This is a lot of work. "

Not really . If you install grub to a separate partition or subdirectory (just remember never to delete it) , it can be use to boot most linux merely by amending the menu.lst.

Basically, learn to do it once and you can use it many times.
 
rgaitan
wrote 5 years ago


reply
mahmoud_liby wrote:
first i have the live-cd and now i want to install slax on my HDD.
i have logical partition NTFS file system.
how i can install the slax to it.
step by step plz.
thanks.


hallo well, i can see who can install on partition, but i whitch only install slax on my pc
 
tyoc
wrote 5 years ago


reply
What people can say me about this?


root@slax:~# grub-install --root-directory=/mnt/hda1/ /dev/hda1
The file /mnt/hda1//boot/grub/stage1 not read correctly.
 
jcsoh
wrote 5 years ago


reply
"The file /mnt/hda1//boot/grub/stage1 not read correctly."

It happen to me on one computer but I think for "stage2" ie the message i get is "stage2 not read correctly.".
I didn't solved it as I gave up and used grub for dos.
 
tyoc
wrote 5 years ago


reply
By grub for dos, you mean you formated the partition as FAT32?
 
jcsoh
wrote 5 years ago


reply
slax grub4dos
http://www.slax.org/forum.php?action=view&parentID=20462

Only work if you have a window xp installation as you need to edit window xp boot.ini and it rely on window boot loader.
 
tyoc
wrote 5 years ago


reply
mmmmm, aparently I get to bot from hd... but the thing is that if I not put the image of live CD, then it doesnt run... (I have copied the contents of the live CD to the virtual HD)

here http://img43.imageshack.us/i/pantallazo6.png/
 

  » search  » forum index  

Post your reply

Your name (Login):

Message:

These HTML tags are allowed: <quote>, <b>, <u>, <i>, <pre>, <code>, <small>, <h1>, <h2>, <h3>, <li>



Slax is generously supported by: P&P Software GmbH and wisol technologie GmbH