You are not logged in.

#1 2012-09-12 14:36:17

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Syslinux installation issue

Hi!
Today i wanted to remove grub2 and give syslinux a try.(yes it seems easier than grub2, more like grub-legacy was).
Following the wiki, i installed the syslinux package, then:

syslinux-install_update -iam

But this returned "syslinux install failed".
I have no separated /boot, everything is mounted in / . I installed syslinux a month ago on my brother's netbook, and everything went good.
Any idea/ help to debug?
Thanks!

Offline

#2 2012-09-12 15:00:07

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: Syslinux installation issue

Read on, the next section of the syslinux wiki takes you through a manual install. Any errors trying that?

Offline

#3 2012-09-12 15:35:30

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: Syslinux installation issue

Yes i know i can follow that part.
I'm just wondering why automatic install isn't working, and how to debug (may be it is a bug, and it could be useful if i could provide more info).

Offline

#4 2012-09-12 15:44:13

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: Syslinux installation issue

Well I think if you went through the manual install, it might give a better indication of why it may be failing (if it fails via the manual install).  Then I think that would be a decent start at debugging, yeah?  Basically, the auto install is doing the manual install just w/o your interaction.  So start there and see what kind of info that brings.  Heck, naybe it will simply work and you won't have to worry about it.

Offline

#5 2012-09-12 16:17:35

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: Syslinux installation issue

Well, following your tip, i was trying to make a manual installation.
But i'm already stuck at

mkdir /boot/syslinux

It says that dir already exists. And yes, it already exists!
Because it already exists, i tried the next command:

extlinux --install /boot/syslinux 

But other error:

extlinux: cannot find device for path /boot/syslinux
extlinux: cannot open device (null)

Any idea?

Offline

#6 2012-09-13 08:44:31

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: Syslinux installation issue

Post the output of "fdisk -l  diska diskb ..." (i.e. for all attached disks ) and "mount".

Offline

#7 2012-09-13 09:11:29

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: Syslinux installation issue

I've only sda (one hdd) .
Here it is:

fdisk -l /dev/sda

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 testine, 63 settori/tracce, 30401 cilindri, totale 488397168 settori
Unità = sectors di 1 * 512 = 512 byte
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Identificativo disco: 0x0007ef70

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sda1              63   483990254   241995096   83  Linux
/dev/sda2       483990255   488333311     2171528+  82  Linux swap / Solaris
/dev/sda3       488333312   488396799       31744   ef  EFI (FAT-12/16/32)

and

mount
/dev/root on / type ext4 (rw,noatime,nodelalloc,commit=600,data=ordered)
devtmpfs on /dev type devtmpfs (rw,relatime,size=1029164k,nr_inodes=220052,mode=755)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620)
tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=20,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
/var/log on /var/log type tmpfs (rw,noatime,nodiratime,mode=755)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime,size=614400k)
gvfs-fuse-daemon on /run/user/1000/gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,relatime,user_id=1000,group_id=100)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)

Offline

#8 2012-09-13 09:40:54

blackout23
Member
Registered: 2011-11-16
Posts: 781

Re: Syslinux installation issue

Easy. Start your live CD. If you have just one Partition on your first drive for everthing mount /dev/sda1 to mount with "mount /dev/sda1 /mnt" do "syslinux-install_update -i -a -m -c /mnt". Enter. Done.

Last edited by blackout23 (2012-09-13 09:41:14)

Offline

#9 2012-09-13 09:52:24

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: Syslinux installation issue

That could be a solution. But i'm wondering why i'm having this kind of troubles. Perhaps it's a bug, and i should report it...
EDIT: I guess it is somehow related to :

We refused to do this, and our syslinux always worked. But with our latest
toolchain, we keep breaking syslinux. Using 'make installer' should leave
us on the safe side.

(https://projects.archlinux.org/svntogit … cf972e0244)

Last edited by nierro (2012-09-13 10:13:42)

Offline

#10 2012-09-13 10:26:35

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Syslinux installation issue

I think you just forgot to mount the root partition.

From a 2012 Arch install media:

# mount /dev/sdxY /mnt
# arch-chroot /mnt
# syslinux-install_update -iam

Done.

Then adjust syslinux.cfg (/boot/syslinux/syslinux.cfg) to point to the right partition (unless your root partition really is /dev/sda3), and reboot.

Last edited by DSpider (2012-09-13 10:29:17)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#11 2012-09-13 10:36:15

nierro
Member
From: Milan, Italy
Registered: 2011-09-02
Posts: 849

Re: Syslinux installation issue

That's ok, i understand.
But let me tell you again: i'm wondering why it won't work when i'm logged in my arch.
By the way, i'll probably to that, thanks.

Offline

#12 2012-09-13 10:58:08

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: Syslinux installation issue

I agree with Dspider

nierro wrote:

i'm wondering why it won't work when i'm logged in my arch.

I think extlinux is finding out what partition "/boot" is. In your case it is the same as "/" so "mount" shows extlinux .... that / is on a device called root. If you add an entry for /dev/sda1 and / in /etc/fstab it may let you proceed, e.g. I have

$ grep root /etc/fstab /etc/mtab
/etc/fstab:/dev/mapper/secret-root  /          ext4 defaults 0 1
/etc/mtab:rootfs / rootfs rw 0 0
/etc/mtab:/dev/mapper/secret-root / ext4 rw,relatime,data=ordered 0 0

(my / is under lvm so imagine "/dev/mapper/secret-root" as "/dev/sda1" and I actually have a separate /boot I only mount when updating)

Last edited by vacant (2012-09-13 10:59:57)

Offline

#13 2013-12-13 10:09:23

angelg
Member
From: Bangalore
Registered: 2013-12-13
Posts: 1

Re: Syslinux installation issue

i got the same error while trying to change from the grub bootloader to extlinux in the linux pc.

To resolve that i passed the device name while installing the bootloader like below.

./extlinux --install /boot/extlinux --device /dev/sda1

This resolved the issue.

Offline

#14 2013-12-13 10:47:38

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,238
Website

Re: Syslinux installation issue

Welcome to our forums angelg. Please note that we prefer to leave the dead in peace around here: https://wiki.archlinux.org/index.php/Fo … Bumping.22

Closing.

Offline

Board footer

Powered by FluxBB