Hi I understand you (mostly). 0) How do i "install the MBR code as well and to activate your partition." 1) "mount /dev/sda1 /mnt" -->> successfully completed. 2) "mkdir /mnt/extlinux" -->> successfully completed. 3) "extlinux --install /mnt/extlinux" -->> does not work. Funny, but it it seems that there is no such thing as extlinux anymore. Here is an Q&A that I got from the syslinux site:> Hi!>> I was looking to download EXTLINUX in the following page :> http://www.syslinux.org/wiki/index.php/Download> But I do not see that it can be done.>> It is said that "The SYSLINUX download includes PXELINUX, ISOLINUX and> MEMDISK as well."> But, there is no word about EXTLINUX>> Please, adviseI see that page needs a little work on terms. Anyways, EXTLINUX is no longer a separate boot loader variant as its functionality has been merged into SYSLINUX as of 4.00. extlinux/extlinux is the SYSLINUX installer for mounted file systems on Linux. linux/syslinux and mtools/syslinux are the SYSLINUX installers for unmounted FAT* file systems on Linux. So this puts me back in Square 1. Thanks Mau On Mon, Jan 13, 2014 at 7:43 PM, Ferenc Wagner <wferi at niif.hu> wrote:> Mau Z <zmau1962 at gmail.com> writes: > > > On Mon, Jan 13, 2014 at 10:44 AM, Ferenc Wagner <wferi at niif.hu> wrote: > > > >> Mau Z <zmau1962 at gmail.com> writes: > >> > >> > So, basically I understand that I must create 2 partitions. > >> > >> If your application partition is ext2, then there's no need to create a > >> separate boot partition, you can simply use extlinux. Basically, > >> extlinux is the (mounted) ext[234]/btrfs/XFS installer, while syslinux > >> is the (not mounted) FAT installer of the same boot loader. > > > > Thanks > > but I am still in the same spot : > > 1) I have created a partition (ext2 with GParted). > > 2) Now what ? I was thinking that I should install syslinux (the > > bootloader). > > All the examples say something like "syslinux --directory > /boot/syslinux/ --install /dev/sdb1" > > but this does not make any seance, because the is no /boot on the > system. > > I have tried it anyways, but the answer was : > > "Invalid media signature (not a FAT filesystem?)" > > You have to mount the freshly created partition, create the installation > directory on it (unless you want to install into its root), and install > extlinux: > > # mount /dev/sdb1 /mnt > # mkdir /mnt/extlinux > # extlinux --install /mnt/extlinux > > Don't forget to install the MBR code as well and to activate your > partition. > -- > Feri. >
On Jan 13, 2014 6:51 PM, "Mau Z" <zmau1962 at gmail.com> wrote:> > Hi > > I understand you (mostly). > 0) How do i "install the MBR code as well and to activate your partition." > 1) "mount /dev/sda1 /mnt" -->> successfully completed. > 2) "mkdir /mnt/extlinux" -->> successfully completed. > 3) "extlinux --install /mnt/extlinux" -->> does not work. > Funny, but it it seems that there is no such thing as extlinuxanymore. But there is. extlinux is the installer that lives on but EXTLINUX was merged in. Did you try the above? What version? --Gene
Ferenc Wagner
2014-Jan-14 10:24 UTC
[syslinux] installing syslinux on a fresh system (SATA)
Mau Z <zmau1962 at gmail.com> writes:> I understand you (mostly). > 0) How do i "install the MBR code as well and to activate your partition."Find mbr.bin in the mbr directory of your syslinux tarball, then: # cat mbr.bin >/dev/sda To activate the partition (mark it bootable for the MBR code): # fdisk /dev/sda Print the partition table with the 'p' command. There should be a single '*' in the 'Boot' column, in the row of sda1. Use the 'a' command to toggle as necessary.> 1) "mount /dev/sda1 /mnt" -->> successfully completed. > 2) "mkdir /mnt/extlinux" -->> successfully completed. > 3) "extlinux --install /mnt/extlinux" -->> does not work. > Funny, but it it seems that there is no such thing as extlinux anymore.The extlinux binary is in the extlinux directory of your syslinux tarball. It's one of the various installers, see http://www.syslinux.org/wiki/index.php/EXTLINUX. If you don't use a separate boot partition on your disk (to be mounted under /boot), but use a single (ext2) partition for everything, then using /mnt/boot/extlinux above would be more natural. Syslinux does not care, though. -- Regards, Feri.
Thanks all, I did find extlinux in "my syslinux tarball" (I think that I understand my confusion now - I will explain at the end). So, now almost everything is fine...... Clearly my extlinux.conf is working (I can see my output on the console (SAY XXX)) I have a bzImage + rootfs.tar I tried : 0) mount /dev/sda1 /mnt/MyMountForSda1 -->> success 1) cd /mnt/MyMountForSda1 -->> success 2) tar xvf rootfs.tar -->> success 3) cp bzImage . -->> success 4) ls -->> success, looks like everything is in the correct place 5) reboot Here is my extlinux.conf prompt 1 DEFAULT linux LABEL linux SAY Now booting my first extlinux KERNEL bzImage APPEND ro root=/dev/sda1 When I reboot I see : Now booting my first extlinux -->> ( :-) ) boot: -->> ( here it stops :-(( ) BUT I can manually write "/bzImage" and press ENTER Now the kernel starts loading :-)))) (and crashes after 3 seconds, but that's a different story). So, it looks like my only issue (with extlinux) is to find the bzImage. What did I do wrong ? Maybe my extlinux.conf is not good ???? I also tried prompt 1 DEFAULT linux LABEL linux SAY Now booting my first extlinux KERNEL /bzImage APPEND ro root=/dev/sda1 but I got the same results........ Any advice ? It looks like I am on the edge..... Thanks Mau On Tue, Jan 14, 2014 at 12:24 PM, Ferenc Wagner <wferi at niif.hu> wrote:> Mau Z <zmau1962 at gmail.com> writes: > > > I understand you (mostly). > > 0) How do i "install the MBR code as well and to activate your > partition." > > Find mbr.bin in the mbr directory of your syslinux tarball, then: > # cat mbr.bin >/dev/sda > > To activate the partition (mark it bootable for the MBR code): > # fdisk /dev/sda > Print the partition table with the 'p' command. There should be a > single '*' in the 'Boot' column, in the row of sda1. Use the 'a' > command to toggle as necessary. > > > 1) "mount /dev/sda1 /mnt" -->> successfully completed. > > 2) "mkdir /mnt/extlinux" -->> successfully completed. > > 3) "extlinux --install /mnt/extlinux" -->> does not work. > > Funny, but it it seems that there is no such thing as extlinux > anymore. > > The extlinux binary is in the extlinux directory of your syslinux > tarball. It's one of the various installers, see > http://www.syslinux.org/wiki/index.php/EXTLINUX. > > If you don't use a separate boot partition on your disk (to be mounted > under /boot), but use a single (ext2) partition for everything, then > using /mnt/boot/extlinux above would be more natural. Syslinux does not > care, though. > -- > Regards, > Feri. >