Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
04-13-2014, 07:33 PM
|
#1
|
Member
Registered: Apr 2006
Distribution: Slackware 14.2
Posts: 48
Rep:
|
Slack 14.1 install - usb boot stick didn't work?
I just installed Slackware64 14.1 on another partition of my Windows7 computer, and when prompted, created a USB boot stick. However, when I try to boot off it, it's simply ignored and I go straight into Windows.
I've had USB boot sticks which others have given me work just fine on this same machine, so I know it can boot off USB.
Is there something I was supposed to've done to this USB stick beforehand? I assumed the setup utility would do whatever's needed for formatting, etc.
|
|
|
04-13-2014, 08:22 PM
|
#2
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,033
|
You don't indicate whether you changed the boot priority to first boot from USB. That would explain your result. If you did make this change, something obviously went wrong and you will probably have to do it over.
|
|
|
04-13-2014, 09:37 PM
|
#3
|
Member
Registered: Apr 2006
Distribution: Slackware 14.2
Posts: 48
Original Poster
Rep:
|
Quote:
Originally Posted by yancek
You don't indicate whether you changed the boot priority to first boot from USB. That would explain your result. If you did make this change, something obviously went wrong and you will probably have to do it over.
|
Yes, I did have USB device set to be first in the boot devices list in my BIOS. My motherboard's USB boot has worked fine for another USB bootable stick I have which contains a demo Linux install; however, someone gave that to me, and I've no idea what they did to get it to work.
|
|
|
04-14-2014, 10:06 PM
|
#4
|
Member
Registered: Apr 2006
Distribution: Slackware 14.2
Posts: 48
Original Poster
Rep:
|
I do have an update: It appears the bios boot order setting wasn't good enough, but if I hit a key (F8) at boot time, it would present me with a list of found devices to boot off of, and it seemed to find my boot stick.
But I selected it, and got error:
"This is not a bootable disk. Please insert a bootable floppy and try again..."
I downloaded Win32DiskImager and burnt the recent ArchLinux ISO to the same stick. Then using the above F8 method, got that to boot just fine.
So I rebooted off the Slack DVD, reran pkgtool/makebootsick, again on the same stick, and repeated the boot attempt, but got the same "floppy" error listed above.
Is there some other voodoo I need to get this to work? The stick itself evidently seems fine (as per my Arch test), but the 80.make-bootstick process isn't cutting it.
Any advice appreciated.
|
|
|
04-15-2014, 04:54 PM
|
#5
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,260
Rep:
|
Mounting the USB stick it seems that the 14.1 version lacks a file "ldlinux.sys" that is present in the 14.0 version. I'm not 100% sure about that, because I used an internationalized script to make the boot stick instead of the genuine one in both cases, but I'll check and if this is confirmed try to understand why.
|
|
|
04-15-2014, 06:37 PM
|
#6
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,260
Rep:
|
Well, I'm a bit puzzled, because when I run "makebootstick" on an installed Slackware64-14.1 it works, but not when I make the boot stick during installation, though /sbin/makebootstick be just a symlink to /var/log/setup/setup.80.makebootdisk that is run during installation.
I'll make more tests tomorrow, meanwhile please check that the file ldlinux.sys be present or not on your usb stick.
For that plug it in then mount it like "mount /dev/sdb /mnt" then "ls /mnt".
Of course adapt to the stick's device name if not /dev/sdb, that you can check with "cat /proc/partitions".
|
|
|
04-15-2014, 07:16 PM
|
#7
|
Member
Registered: Apr 2006
Distribution: Slackware 14.2
Posts: 48
Original Poster
Rep:
|
Quote:
Originally Posted by Didier Spaier
Well, I'm a bit puzzled, because when I run "makebootstick" on an installed Slackware64-14.1 it works, but not when I make the boot stick during installation, though /sbin/makebootstick be just a symlink to /var/log/setup/setup.80.makebootdisk that is run during installation.
|
Didier, thank you for looking at this. I've actually just been testing it this evening and I found out the exact same thing that you did!
Prior to now, I'd only been trying to make bootsticks off the setup program from a booted installation DVD, but never after the complete install. Before today, I never installed LILO, so I've never actually booted into the full installation on my HDD itself, but have been running off the install DVD, fiddling with my stick.
Giving up on the bootstick, I finally installed LILO, booted into the full installation, reran the makebootstick script from pkgtool/setup, and it now works.
Unfortunately, I still can't boot directly off of the USB stick unless I do the F8 thing at boot time, which mostly defeats the purpose; but I guess that's between me & my motherboard--the bootstick itself is certainly working now.
|
|
|
04-16-2014, 12:39 PM
|
#8
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,260
Rep:
|
I have narrowed the problem to this command failing in /var/log/setup/setup.80.makebootdisk if run during during installation, at least for Slackware64-14.1:
Code:
syslinux -s /dev/$STICK 1> /dev/null 2> /dev/null
To check I just replaced "2 > /dev/null" with "2>/tmp/2.txt" and here is the error message:
Code:
Error converting to codepage 850 Invalid argument
Cannot initialize 'S:'
Bad target s:/ldlinux.sys
syslinux: failed to create ldlinux.sys
It seems that this message be not uncommon but I still don't know what difference in installer's vs installed system's environments can cause it to appear only in the former case.
Maybe someone has a clue?
Else, stay tuned.
Last edited by Didier Spaier; 04-16-2014 at 01:00 PM.
Reason: filename corrected
|
|
|
04-16-2014, 02:31 PM
|
#9
|
Member
Registered: Jan 2014
Posts: 81
Rep:
|
Quote:
Originally Posted by brgr88
I just installed Slackware64 14.1 on another partition of my Windows7 computer, and when prompted, created a USB boot stick. However, when I try to boot off it, it's simply ignored and I go straight into Windows.
I've had USB boot sticks which others have given me work just fine on this same machine, so I know it can boot off USB.
Is there something I was supposed to've done to this USB stick beforehand? I assumed the setup utility would do whatever's needed for formatting, etc.
|
I'm a little confused here.
So you have installed Slackware already, and then you made a USB stick at the end of the installation, is that correct?
Now, even though you can boot into the slackware installation on your hard drive, you are trying to boot into slackware on your USB?
|
|
|
04-16-2014, 02:44 PM
|
#10
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,260
Rep:
|
Quote:
Originally Posted by StevenXL
Now, even though you can boot into the slackware installation on your hard drive, you are trying to boot into slackware on your USB?
|
nrgr88 didn't install lilo at first on his hard disk, so he tried to use the USB stick to boot the system he had just installed.
|
|
|
04-16-2014, 07:13 PM
|
#11
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,260
Rep:
|
I posted the issue on the syslinux mailing list and hpa answered that the message
Code:
Error converting to codepage 850 Invalid argument
comes from mtools.
I checked, that's true and linked to a change from mtools-4.0.0 that introduce the code page. I could confirm that as if I add "default_codepage=437" to /etc/mtools.conf I have now:
Code:
Error converting to codepage 437 Invalid argument
I think that this can be solved in adding the iconv binary or something to the initrd. I'll check tomorrow and report the results.
|
|
|
04-16-2014, 09:59 PM
|
#12
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,653
|
On my laptop I have Slackware64-current installed to a partition in msdos mode and Slackware64-14.1 installed in vmware efi mode. The laptop doesn't have efi. I have created the usb boot from the Slackware-current install, the vmware efi slackware-14.1, and by booting the bzImage and initrd.img from grub. The usb boot does not work in msdos mode and will only boot in efi mode on the vmware regardless of which system I used to create the boot stick. I have tried clearing out the partitions before running the makebootdisk. I don't know if it makes any difference but it is a 4gb sandisk. The only thing I haven't tried is from a fresh install of Slackware64. The files on the usb are f1.txt, syslinux.cfg, vmlinuz, ldlinux.sys, message.txt, and the efi boot directory, This is the ouput of fdisk -l
Code:
Disk /dev/sdb: 4004 MB, 4004511744 bytes
124 heads, 62 sectors/track, 1017 cylinders, total 7821312 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: 0x20ac7dda
This doesn't look like a partition table
Probably you selected the wrong device.
Device Boot Start End Blocks Id System
/dev/sdb1 ? 3224498923 3657370039 216435558+ 7 HPFS/NTFS/exFAT
/dev/sdb2 ? 3272020941 5225480974 976730017 16 Hidden FAT16
/dev/sdb3 ? 0 0 0 6f Unknown
/dev/sdb4 50200576 974536369 462167897 0 Empty
Partition table entries are not in disk order
Last edited by colorpurple21859; 04-16-2014 at 10:14 PM.
|
|
|
04-17-2014, 06:08 AM
|
#13
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,260
Rep:
|
@colorpurple21859; if may memory serves me well (I wiped out vmplayer because I now use only qemu), if you configured a virtual machine in EFI mode including a line with "firmware=efi" in the the .vmx file, then the VM will only EFI boot. That means that it will show a grub menu for Slackware64-1 and refuse to boot if you don't have an EFI/BOOT directory containing relevant files.
Also, this is not the same topic, so please create a new thread for it.
Last edited by Didier Spaier; 04-17-2014 at 07:35 AM.
|
|
|
04-17-2014, 06:28 AM
|
#14
|
LQ Veteran
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,653
|
I know efi boots differently from msdos. I was seeing if I had the same results as everyone else when creating a boot stick, except in my case creating a usb boot stick from an already installed slackware didn't work either. However, I tried in efi mode just to see if the usb stick would work on an efi system.
|
|
|
04-17-2014, 06:36 AM
|
#15
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,260
Rep:
|
One fix checked
As suggested by H. Peter Anvin, using the "linux" version of syslinux (aka syslinux-nomtools) instead of the mtools version (aka syslinux) closes the issue.
To apply the fix (only for Slackware version at least 14.1 that ships a mtools version at least 4.0.0) do this:
- ship the binary syslinux-nomtools in the /bin directory of the initrd instead of syslinux
- in file /var/log/setup/setup.80.makebootdisk shipped in the package pkgtools, replace the line
Code:
syslinux -s /dev/$STICK 1> /dev/null 2> /dev/null
with
Code:
syslinux-nomtools --install -s /dev/$STICK 1> /dev/null 2> /dev/null
the --install option is necessary to avoid this error message:
Code:
syslinux: no previous syslinux boot sector found
I will also see what I come up with shipping the iconv binary in the initrd instead, but that's just out of curiosity.
Last edited by Didier Spaier; 04-17-2014 at 06:40 AM.
|
|
|
All times are GMT -5. The time now is 07:29 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|