You are not logged in.
Hello.
I have almost completed an installation of ArchLinux on a Samsung 900x3c laptop. Everything seems to have installed correctly using pacstrap, but I can not get the bootloader to install correctly without the old AIF I was used to. I've tried to follow the articles on Syslinux and Grub2 in the wiki, using dd and related tools.
My boot/root partition is on a logical partition sda5, it is marked as bootable. The last thing I tried was installing Syslinux by using
dd bs=440 count=1 conv=notrunc if=/usr/lib/syslinux/mbr.bin of=/dev/sdaand symlinking everything correctly to /boot/syslinux/ e.g. menu.c32.
I hope someone has some thoughts, this is important to me.
Offline
Did you run the syslinux-install_update script?
Offline
Did you run the syslinux-install_update script?
Hey! Yes, I did in fact do that:
root@archiso / # syslinux-install_update -i -a -m
Syslinux install successful
Boot Flag Set - /dev/sda5
Installed MBR (/usr/lib/syslinux/mbr.bin) to /dev/sda
root@archiso / #It has no effect when booting, results in escaping into pxeboot.
Edit: I might also add that before installing linux I backed up the original bootcode and installed it just now using dd as per described in Grub2 Arch Wiki article, it works ... but I want linux ![]()
Last edited by rusma (2012-08-08 20:42:33)
Offline
You can try comparing your mbr with the syslinux mbr.bin file just to make sure it did indeed install correctly:
https://bbs.archlinux.org/viewtopic.php … 7#p1128337
As a sanity check, I'd also just verify that you are actually booting to the hard drive by disabling everything other than it in your BIOS.
Offline
Here goes the diff::
root@archiso / # dd if=/dev/sda of=/dev/stdout bs=440 count=1 | diff -s /usr/lib/syslinux/mbr.bin -
1+0 records in
1+0 records out
440 bytes (440 B) copiedBinary files /usr/lib/syslinux/mbr.bin and - differ
, 0.000104044 s, 4.2 MB/s
root@archiso / # This makes sense since I installed the old Samsung standard windows mbr, and this is not syslinux mbr anymore.
Offline
Relocating to university campus, so I'll be off the internet for some days until registration.
More ideas are welcomed though, since I still can't boot into Arch, just Windows 7. To be honest I don't know whether this laptop or Windows 7 uses UEFI or GPT or some strange stuff other than common MBR ... I know there are a option in the bios to turn UEFI on and off, though.
I'm a newbie when it comes to bootloading, just used to it simply working as it should; oh the good ol' Grub 0.97 ...
Offline
Got internet back now. I'm seriously considering using windows to boot linux ...
Offline
So what are your settings in BIOS? That is, do you have UEFI or BIOS/legacy booting enabled? (Or both and in what order?)
GPT is to do with how your disk is partitioned. It affects the installation of the bootloader but it isn't a bootloader.
You can still use legacy grub if you prefer it - it is still available. (Assuming you are booting in BIOS/legacy mode.)
If you have a logical partition, you are not using GPT.
If you don't know whether you have MBR or GPT and whether you are using UEFI or BIOS, I don't see how you can have followed the instructions for installing the boot loader.
When you say your boot/root partition, do you mean /boot or do you not have a separate /boot partition? The instructions for syslinux seem to apply to a separate boot but I don't use syslinux so I'm not sure if this is required.
Did you mark your boot partition bootable?
Have you tried disabling all other boot options (PXE etc.) for testing purposes?
What happens exactly? We know it doesn't work but there are lots of ways for things not to work.
Have you worked through the troubleshooting tips in the wiki for syslinux? What results did you get?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
# fdisk -l /dev/sdXfdisk is MBR aware only, so if you are using GPT it will return something like this:
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdb: 128.0 GB, 128035676160 bytes
256 heads, 63 sectors/track, 15505 cylinders, total 250069680 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 1 250069679 125034839+ ee GPTThe one partition is called a MBR protective partition and is there simply to block programs that are only MBR aware from thinking it can use the HDD as it pleases.
If you are using UEFI, you should have an UEFI system partition. When you run
# blkidif you have something that looks like
/dev/sda1: SEC_TYPE="msdos" UUID="90E2-6EE8" TYPE="vfat" that is typically the UEFI partition. It is used to boot the system instead of the first 512 bytes that the MBR uses.
Find out the stuff that cfr is asking about, and be more specific with your question. Otherwise helping is a crapshoot, and everyone will eventually give up.
Offline
Hello. Nice replies! Yeah, I know this is a hard one, but I have tried to give the best information I know from the start.
I have set UEFI Boot Support to enabled in the bios, that means I can boot legacy also. I do not know the order.
I know a little bit about gpt from using it in FreeBSD with ZFS, so it can not be a boot loader, but FreeBSD makes freebsd-boot type of partitions that I believe contains a boot loader.
I have tried grub legacy with success in the arch-chroot. I followed the installation guide in the wiki using the grub shell as well as copying/symlinking everything correctly. This must mean I am using MBR, no?
I may not have followed the guides correctly, I assumed MBR and standard bios, as this is most common, and it seem to work with grub legacy.
/boot and / is on the same partition.
I did mark my partition bootable.
I have currently disabled (Ctrl+1) all other bootable devices other than the ssd.
The Troubleshooting topics covered by the Syslinux wiki article seems to be aimed at people who have correctly installed Syslinux.
Offline
Okay, so I gave you very specific and straight forward steps to determine what it is you are using.... yet you still are telling us that you are assuming this and assuming that. Help cannot be expected if all of your fasts are simply assumptions. I don't doubt you are familiar with gpt, but being familiar with gpt does not tell us wheter you are actually USING it or not.
Offline
I have tried grub legacy with success in the arch-chroot. I followed the installation guide in the wiki using the grub shell as well as copying/symlinking everything correctly.
Does this mean you have solved your problem?
Offline
As WonderWoofy and others have said, nobody can help you if you don't provide the information they need to help you. We don't have access to your machine. If you don't know how your machine is set up or what exactly you are trying to do, how do you expect us to? Remember, all we know is what you tell us.
Give us the output of the commands WonderWoofy gave you:
fdisk -l /dev/sdX
blkidwhere X is the relevant letter e.g. I would use
fdisk -l /dev/sdabut you might need b or c or something else.
Which boot loader are you trying to install? Which installation instructions did you follow? Give us the link to the relevant section of the wiki.
As far as I can tell, you've tried to install syslinux, grub2 and grub-legacy. You had problems with the first two but the third installed just fine. However, you're still trying to install a boot loader for some reason. So as Lennie pointed out, it isn't even clear whether your problem is solved or not. If it is solved, please mark the thread [solved]. If not, please explain things more clearly.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Hey, I've been quite busy lately, sorry. It is nice of all of you to be so interested
I have successfully installed grub-legacy, and the system has been booting fine for some time, but it is legacy ... so, if it is easy to install Syslinux in a correct way not breaking the system, it or grub2 would be preferable choices. The relevant wiki article section for installing Syslinux on MBR (standard for grub-legacy?) would be https://wiki.archlinux.org/index.php/Sy … tion_Table . IMHO this is a down-to-earth, hands-on case. Here are some output:
root@angrist / # fdisk -l /dev/sda
Disk /dev/sda: 128.0 GB, 128035676160 bytes
255 heads, 63 sectors/track, 15566 cylinders, total 250069680 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x4731e833
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 97976319 48884736 7 HPFS/NTFS/exFAT
/dev/sda3 97976320 200071167 51047424 5 Extended
/dev/sda4 200071168 250068991 24998912 27 Hidden NTFS WinRE
/dev/sda5 97976383 131182674 16603146 83 Linux
/dev/sda6 131182738 200071167 34444215 83 Linux
root@angrist / # blkid
/dev/sda1: LABEL="SYSTEM" UUID="E238F3BD38F38EB3" TYPE="ntfs"
/dev/sda2: UUID="80AE7205AE71F3CE" TYPE="ntfs"
/dev/sda4: LABEL="SAMSUNG_REC" UUID="8A3E69483E692DFF" TYPE="ntfs"
/dev/sda5: UUID="6f2fd053-a000-4bcd-9bd7-a4d249ebae61" TYPE="ext4"
/dev/sda6: UUID="a45a4e1b-9bb3-45bd-b2fc-9d458788ba28" TYPE="ext4"
root@angrist / # I hope this was not too little info? Just ask for more.
Offline
I have a Samsung 900x3a
I also had problems with the bootloader.
So after hours of research and trial and error, here is what I found out and what worked for me. I don't know how similar the models are, so I hope it helps:
My Samsung has support for UEFI, but it isn't working for me and I have found similar reports in the net.
I also had problems with GPT and if you plan to keep Win7, you have to keep MBR anyway. And as far as I can understand GPT doesn't have advantages for a normal user anyway.
So I have disabled UEFI and installed GRUB2 in MBR. Also make sure your partition is marked as bootable. I set the attribute, but forgot to issue the write to disk command xD
After that everything worked out of the box, except for the Keyboard brightness control. Had to write a script to make it work. And don't forget to check out the Wiki article for the SSD. The other tweaks I applied aren't really device specific.
edit: found a link regarding uefi & gpt http://jablonskis.org/2011/fedora-16-li … -np900x3a/
Last edited by raudi (2012-08-28 20:51:06)
Offline
OK. So you have MBR partitioning and grub-legacy works. I have to ask, is there some particular reason you wish to change? Just because it is called "legacy"? If it works fine... It is just a boot loader, after all.
But if you want to use syslinux, it should work with MBR/BIOS. But you'll need to redo the filesystem on your boot partition, won't you?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Twice I have had frustrating bootloader issues; once grub and once syslinux. I still don't know what the exact problems were, but the first one came about when accidentally changing grub versions and the second one because I resized some partitions and wasn't careful about what I was doing. I was able to solve them by using dd to zero the MBR:
dd if=/dev/zero of=/dev/sda bs=446 count=1Reinstall syslinux.
I've heard people say that reinstalling grub or syslinux overwrites the MBR so this should be unecessary, but, this is the only thing that worked for me. Twice.
Offline
It has been a while since the OP posted this, but this may still be useful: I had the same problem on a Samsung laptop (syslinux didn't load at boot) and I solved this by setting the first partition on the HD as bootable (not the /boot partition!), where I have Windows 8, and made sure that in the Boot Priority menu in the BIOS "Windows bootlader" comes well after the HD (and DVD) drive. Now syslinux shows up nicely at boot.
BIOS/MBR setup here (no UEFI but CMS boot) thanks to the infamous briking problem of Samsung laptops.
Offline