📜 ⬆️ ⬇️

Installing SMS Linux (Slackware) on eBox-2300SX

I've been looking at eBox-2300SX for quite some time and trying it on as a simple home server. Moreover, I read the Ideal NAS topic on Habré ? Another point of view is the eBox-2300SX . The piece of iron looks quite interesting, but is it suitable as an HTTP server and Jabber? I think that everyone can solve it independently. And I'll just describe my experience installing Linux on it.

About eBox-2300SX itself


Temporarily pulled one eBox home from work for experiments. The patient has the following connectors: 3 USB, 1 Ethernet, 1 PS / 2 for the keyboard, 1 VGA, 1 CompactFlash and 1 power. Depending on the configuration, other interfaces may be present. I got a model with two COM ports (which I personally don’t need at all).

The first thing I opened it. Inside, as it was already possible to learn from the reviews, there are cPCI and E-IDE connectors. But do not roll your lip, because The connector of a standard E-IDE cable does not climb into the case in height. But it did not upset me, because I do not have an IDE drive, but there is a SATA drive with an adapter to USB.
')
Separately, I want to note that eBox pulled the USB CD-ROM. True, I had to take for this two connectors of the three available.

The first attempt to install Linux


Possessing the knowledge that eBox-2300SX does not have a mathematical coprocessor, I selected the distribution kit taking into account this parameter. In addition, I wanted to choose an already familiar distribution kit or its clone - for me, this is Slackware and Arch. A little googling, I chose SMS . First, it is Slackware for weak machines. Secondly, it is Slackware with a small number of packages. And thirdly, this is Slackware, with which I am slightly familiar, starting from 4.0 to 13.0.

I downloaded SMS 1.6.0 (it was the latest version at that time) and wrote down a blank on RW. I booted from the USB CD-ROM and realized that the installation will not go - eBox just hung up during the boot phase. And one more USB connector was missing; I did not have a PS / 2 keyboard.

The second (and more correct attempt) to install Linux


Then I thought that installing Linux on eBox itself is not necessary, you can take advantage of the possibilities of virtualization. To be precise, VMWare. We create a new virtual machine with standard settings and delete all unnecessary - sound, floppy and disk. As a disk we add the winchester connected to the USB host machine. Installation in a virtual machine is quite easy and familiar (for those who are familiar with Slackware, of course). Unfortunately, VMWare does not know how to boot from a USB disk as from a USB device (I did not find such options in its BIOS). So go to the field tests on eBox.

There is nothing surprising in the fact that eBox again hung with the kernel from SMS. At least I was not surprised. In order not to torment the venerable public, I will not continue to pour so much water, but I will briefly tell you what difficulties I encountered and how I solved them.

Core preparation


If the kernel from SMS does not go to eBox, then on eBox you can tighten the kernel from X-Linux . This is such a special Linux for eBox, in which there is nothing sensible. But he works on eBox. It's just not interesting to take a ready-made kernel 2.6.29. It is best to prepare the kernel 2.6.37.6 (SMS native) based on its .config. To do this, do the following:

Preparing the kernel on the x86_64 host


I installed Arch x86_64 on my laptop and after the build I got a kernel that needs a 64-bit processor. Somehow strong for eBox, I thought. In order for the kernel to properly assemble in a system with x86_64 (amd64) architecture, you should do everything as described in the previous section, but add the prefix ARCH = i386 to the make command:
All this will work if multilib is supported on the host.

Ext4 feature


When installing SMS Linux, I, of course, formatted the root partition in Ext4, and when preparing the kernel I turned off support for large files. Yes, and where on the eBox will be files on 2TB? It turned out that I was mistaken. For Ext4 to work correctly, the CONFIG_LBDAF option (large file support) must be set. It is clear that in my case eBox did not load. It seems that there are two ways to solve the problem, I thought. The first is to reinstall SMS on the Ext3 partition. The second is to rebuild the kernel with support for large files. And the third is to disable support for large files in the Ext4 section . Yes, the third method was found in Google and I liked it more than the first two. We connect the USB disk to the host system and execute the following commands:

# tune2fs -O ^huge_file /dev/
# fsck /dev/


Installing a new kernel on a USB drive


While the USB drive is connected to the host machine, copy the new kernel to the root partition (I have it / dev / sdb2). I called it vmlinuz-xlinux-5.7-2.6.37.6. To do this, go to the directory with the kernel sources and execute the commands:

# mkdir /mnt/tmp
# mount /dev/sdb2 /mnt/tmp
# cp arch/i386/boot/bzImage /mnt/tmp/boot/vmlinuz-xlinux-5.7-2.6.37.6
# umount /mnt/tmp


Do not forget to fix the LILO config. I added this section:

image = /boot/vmlinuz-xlinux-5.7-2.6.37.6
root = /dev/sda2
append = "rootdelay=10"
label = X-Linux-5.7
# initrd = /boot/initrd.splash
read-only


It is clear that on eBox I have only one disk, therefore not / dev / sdb2, but / dev / sdba2. And pay attention to the rootdelay option = 10. This option sets the delay before mounting the root file system, which is useful when using a USB device as the carrier of the root file system.

After that, you need to boot into VMWare again from the SMS installation disk and execute the following magic commands (so that LILO finds out about the new kernel):

# mount /dev/sda2 /mnt
# chroot /mnt
# lilo
# exit
# halt


As a result


As a result, the eBox still loaded with SMS Linux. The first download took quite a long time, in my opinion, most of which (time, not look) was taken by the generation of OpenSSH keys. This diminished my optimism in further setting up the server on eBox.

For myself, I made the following conclusions. The advantages of eBox are its small size and noiselessness, because passive cooling is used. But since these advantages do not matter to me, I am thinking of building a server on the VIA PV530. If you add the memory and the case there, then you can completely keep within the price of eBox (~ $ 130). And it will already be more nimble iron and memory will turn out 2 GB and not 128 MB (on eBox).

While preparing the material, a new version of SMS 1.6.1 was released. To alter the topic did not, because The principle of installing SMS is the same.

Source: https://habr.com/ru/post/124082/


All Articles