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

How do I install slax?

David2010
wrote 5 years ago


reply
I have build a custom slax with all the tools I need and it is a nice 133 MB large. xD

It takes up a good 100MB of ram while running in live cd mode.

But I have no idea how to install to my hard drive.

I know slax was meant to be portable but I want to use it as a replacement for Windows.
 
jcsoh
wrote 5 years ago


reply
slax grub4dos (need window xp)
http://www.slax.org/forum.php?action=view&parentID=20462


slax grub (no need window xp . Just ignore /delete the window xp portion in the menu.lst)
http://www.slax.org/forum.php?action=view&parentID=37269&highlight=hard%20disk%20install%20jcsoh
 
forum
wrote 5 years ago


reply
jcsoh wrote:
slax grub4dos (need window xp)
http://www.slax.org/forum.php?action=view&parentID=20462


Wow that works great! Thanks!

Now I can use Windows xp to run my games while I use Slax linux for just about everything else.
 
guttaslax
wrote 5 years ago


reply
jcsoh wrote:
slax grub4dos (need window xp)
http://www.slax.org/forum.php?action=view&parentID=20462

slax grub (no need window xp . Just ignore /delete the window xp portion in the menu.lst)
http://www.slax.org/forum.php?action=view&parentID=37269&highlight=hard%20disk%20install%20jcsoh


[Political mode ON]
A third way exists!
[Political mode OFF]

G4D can be used with its own mbr, and I believe it is not more difficult than other ways.
I've not time to write now, but if someone is interested in this thing, I'll be back in the night (GMT+1).
 
jcsoh
wrote 5 years ago


reply
"G4D can be used with its own mbr, and I believe it is not more difficult than other ways.
I've not time to write now, but if someone is interested in this thing, I'll be back in the night"

I am interested . I am using grub4dos on one computer because grub wouldn't work.
 
Dude
wrote 5 years ago


reply
So... 4 reply posts later nobody noticed that this guy does not want a frugal install?

@David2010: please consider installing slackware.
I installed slax to HD (not frugal) on my laptop and was happy with it for years, but I recently (4 or 5 months ago) ventured into slackware and it works quite well also.
I just installed about the same packages that slax has, and got a light, fast and stable OS that serves my needs.

I think Tomas is right on this one (and it took me a while to agree with this view): slax is a live linux distro and installing it to HD should not be supported.
If you still want to do it, you can... but you are on your own.
If you want to do a frugal install (which is supported) read the documentation or the hundreds of posts on the subject.
 
jcsoh
wrote 5 years ago


reply
For real install:
slax2hd module:
http://www.slax.org/modules.php?search=slax2hd&category=
 
David2010
wrote 5 years ago


reply
Dude wrote:
So... 4 reply posts later nobody noticed that this guy does not want a frugal install?

@David2010: please consider installing slackware.
I installed slax to HD (not frugal) on my laptop and was happy with it for years, but I recently (4 or 5 months ago) ventured into slackware and it works quite well also.
I just installed about the same packages that slax has, and got a light, fast and stable OS that serves my needs.

I think Tomas is right on this one (and it took me a while to agree with this view): slax is a live linux distro and installing it to HD should not be supported.
If you still want to do it, you can... but you are on your own.
If you want to do a frugal install (which is supported) read the documentation or the hundreds of posts on the subject.


Well I had in mind to do a full install and not frugal but I decided that for the safety of the OS and the fact that I have a tendency to accidentally screw things up I made a small script that would mount my hard drive save all my settings into a compressed tar file and then unmount the hard drive.

This way if I make a big mistake I can easily just delete my saved file and start over again without having to reinstall the entire OS.

I just have to figure out how to load it at startup and save to it at shutdown. :-/

The only thing I don't like about it is that it takes 2 minutes to boot up. :-/
 
guttaslax
wrote 5 years ago


reply
jcsoh wrote:
I am interested . I am using grub4dos on one computer because grub wouldn't work.


This allows g4d booting itself without WinXp, grub-like way.

Ingredients:
-Grub4dos files
-Dos booting capability (freedos diskette works well, Ubcd freedos boot CD also works
or
-Linux booting capability (some live CD)
-a bit of attention

Target:
install g4d boot code in mbr not scratching a disk (if possible).

Common part (Dos, Win, Linux, gui or command line:

As first, make a "grub" folder in the target drive and copy all the g4d
files in it. While you are there, copy grldr to the root of the same hd (the
following process doesn't itself).
EDIT
"Root" means the top level of the drive (c:\ or /dev/hdxx.
/EDIT
You also must provide a valid menu.lst in the "grub" folder.
If you want, you can begin to build your hd with your preferred OS (let's
take a random OS, to make it easy, and copy boot and slax
folders from the downloaded and untarred :-P file or from the downloaded
iso). When you are satisfied of the jam, proceed to next step.

The linux way:

Boot the same random OS from a live CD.
Unmount the target drive.
Open a console, chdir to that grub folder or the previous step and type
the command:

bootlace.com /dev/hda

The command name must include the extension, Linux doesn't
recognize automatically .com or .exe as executables.
The argument can be changed according to your needs (I use /dev/hdc for
the secondary hd I'm preparing for other machines).

The dos way:
Boot a flat dos.
Chdir to the same "grub" folder and type the command:

bootlace 0x80 or bootlace.com 0x80

The argument can be changed according to your needs. I also use 0x81 for
the secondary hd on first adapter. I don't know the Hex addresses of the
second adapter.

Done. The system should boot directly in g4d menu.
A poor reference for bootlace can be found in g4d readme, usually
included in the package.
One note:
every beetle is fine for his mother, so if you upgrade g4d you must "bootlace" again your mbr, 'cause every grldr has its bootlace.
This took me an afternoon of bad words when upgrading from g4d 043 to 044.
----------
There is another utility to make the same job, "grubinst", for which a nice gui is available. I use this couple of programs to make usb grub-bootable in the easiest way (expecially pendrives); just format and shot the utility.
----------
EDITED A FEW TIMES
 
jcsoh
wrote 5 years ago


reply
@ guttaslax

Thanks for the how to, but I have 1 question.
I have 4 partition on my hard disk sda.
sda1 a primary partition with window xp
sda 2 a primary partitioon with slax
sda 4 and 5 are logical partition for my data.
Assuming I want to put /grub in /sda1 /

You stated "While you are there, copy grldr to the root of the hd (the
following process doesn't itself).

Which is consider the root of the hard disk (I am doing in from linux say a slax live cd).
"/" ,"/mnt" "/sda2" ???
 
forum
wrote 5 years ago


reply
Most aaked question here!

Don't you people have better questions to ask?
Use search function type "How do I install Slax" and you should get more than 1000 threads asking the same question!
 
Dude
wrote 5 years ago


reply
forum wrote:
Most aaked question here!

Don't you people have better questions to ask?
Use search function type "How do I install Slax" and you should get more than 1000 threads asking the same question!

Nah, it's better to make another thread.
Were going for a guinness world record for the most asked question in a single forum.
 
guttaslax
wrote 5 years ago


reply

Which is consider the root of the hard disk (I am doing in from linux say a slax live cd).
"/" ,"/mnt" "/sda2" ???


/mnt/hda1

or

c:\ in dos/win

where usually ntldr installs itself.

I thought "/" was the user root, not hd root if you don't define it this way, isn't it?
I repeat, I'm all but a system specialist.

EDIT

If you are working on a second hd installed "on the fly" on your machine, to be used in another machine, the path can obviously vary (/mnt/hdx, or d:\, or whatever).
 
jcsoh
wrote 5 years ago


reply
@ Guttaslax

"where usually ntldr installs itself."

Ok .Thanks.
 
captain_picard
wrote 5 years ago


reply
Dude wrote:
Were going for a guinness world record for the most asked question in a single forum.
I'm not sure if it's this or about the wireless... Both questions seem to have 100's of threads by now :(
 
guttaslax
wrote 5 years ago


reply
Add graphics, localization, boot, changes corruption, forum language.
Time to start some sticky howto?
 
captain_picard
wrote 5 years ago


reply
There are many resources out there, like the wiki by fundamental, Hool.de.Nord's site with video guides: http://slaxy.tk/ or http://natureheals.info/linux/slax/index.html by Guy and of course there is Google but no one seems to use them. At some point the older (and wiser) users left the forum or stopped answering the same questions on and on which had already been answered 2 hours earlier...

I remember back in the old days, many users had expressed their interest into some restructuring of the Slax site but nothing was done. To prevent flames and rants (I seem to attract them) let me remind you that the Build feature is nice but unrelated to this issue.

At least some links in the main site to the above sites might decrease the load of questions...
 
guttaslax
wrote 5 years ago


reply
What about?

A little group of users could share the same account (password provided by private mail) and maintain a sticky thread (approved by Tomas): one post, one howto. I don't know if it's possible to make a reserved, or read-only thread (anyway posts can be deleted by the first mantainer online), and what could happen if more maintainers are accessing the forum together in the same moment with the same account.
A little traffic of private mails and a lot of re-editing in the beginning, but I guess in a short time the number of posts will decrease.
I wrote "I guess", not "I bet" :-D
 
Dude
wrote 5 years ago


reply
captain_picard wrote:
Dude wrote:
Were going for a guinness world record for the most asked question in a single forum.
I'm not sure if it's this or about the wireless... Both questions seem to have 100's of threads by now :(

Well, the "install to hd" threads win by a large margin because there are many different wireless devices and it's kinda legitimate to ask for help for each wifi NIC...
 
jcsoh
wrote 4 years ago


reply
@ guttaslax

I finally had the time to try you how to.
Feedback

My sole hard disk is sda
I put grub4dos in /mnt/sda6/grub
I copy grldr to /mnt/sda1 (or c:\)

I have menu/lst at 3 locations

/mnt/sda1 (use by grub4dos depending on window xp as a boot loader via boot.ini
/mnt/sda4/boot/grub (use by grub)
/mnt/sda6/grub (this is what I intended to use for this experiment)

Open console
Change directory to /mnt/sda6/grub
Type
bootlace.com /dev/sda

I tried a few time but I get a command not found.
I renamed bootlace.com to bootlace.sh
I type
./bootlace.sh

It run sucessfully and I can boot up in grub menu , but it pick up the 1st menu.lst in /mnt/sda1 (c:\)
Any way I renamed bootlace.sh back to bootlace.com and retried
bootlace.com /dev/sda

This time it work.(I don't know why it won't work earlier)

By trial and error, I can confirm that it will pick up the menu.lst in sequence ie , 1st from /mnt/sda1 , then /mnt/sda4 and finally from /mnt/sda6.

I confirmed that it no longer relies on window xp by renamimg the window boot.ini file and still boot up sucessfully.

So the only comment to your how to is:
This part is not true:

"You also must provide a valid menu.lst in the "grub" folder . It appear to pick up the first menu.lst it detected , but obviously under normal circumstance , it's logical to put the menu.lst in grub folder to avoid accidentally deleting it.

EDITED / ADDITION

I did it again on another computer .On this computer grub doesn't work so all the while I had to rely on grub4dos using window xp boot loader.\
As before running the command bootlace.com gives "command not found" , so I just rename it to boolace.sh and run ./bootlace.sh , and it work.
 
guttaslax
wrote 4 years ago


reply
Well I admit it's based on my preference to keep a config file near its owner.
There is well-known order in finding menu.lst, explained in g4d readme.

By default, GRUB will locate its config file in the following order:

(DOS file) .\menu.lst, the MENU.LST in the current dir.

(DOS file) \menu.lst, the MENU.LST in the root dir of the current drive.

(GRUB file) /menu.lst, the MENU.LST in the root dir of the boot device.

The default boot device is still (hd0,0).

Take a look here too.
http://diddy.boot-land.net/grub4dos/Grub4dos.htm
 
jcsoh
wrote 4 years ago


reply
@ guttaslax

If i run ./bootlace.sh /dev/sda , what happen if I delete window xp (on sda1) and reformat sda1 ? Does this mean the grub4dos bootloader will be deleted,

If I decide to get rid of window xp , I would rather format sda1 to a linux file system as currently only window partition is using ntfs while all the other partitions are already using ext3.
 
guttaslax
wrote 4 years ago


reply
I did it erasing all win stuffs and retaining fat32 without formatting.
The right (general) question is "Does a format write mbr?"
I suppose it doesn't in Dos (if I'm not wrong, you must shoot a sys for the volume to write the boot code).
I suppose programs like gparted do it only if asked but I can't say what kind of code they write on mbr.
I can remember I've reformatted partitions with gparted, and reused without "bootlacing" again.
I must reread some docs.
 
guttaslax
wrote 4 years ago


reply
By the way, a fourth way exists.
-boot a freedos cd
-make a sys on your c drive
-verify that freedos kernel.sys is in place on c:\ , if not copy it
-add grub.exe
-add menu.lst
-write a simple autoexec.bat or fdauto.bat containing only the command "grub".
-done
 
getsmart
wrote 3 years ago


reply
how can I install a slax in my usb??
thank u
 
karis
wrote 3 years ago


reply
@getsmart

You can use this documentation of Slax WebSite

http://www.slax.org/documentation_install_slax.php

Cheers
 

  » 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