LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   BIOS will only boot FAT16 File System, but I want to use my 8GB flash drive to Multiboot (https://www.linuxquestions.org/questions/linux-newbie-8/bios-will-only-boot-fat16-file-system-but-i-want-to-use-my-8gb-flash-drive-to-multiboot-4175585046/)

percy4209 07-19-2016 03:37 PM

BIOS will only boot FAT16 File System, but I want to use my 8GB flash drive to Multiboot
 
Hey guys! As the title says, I need to format my 8gb drive to fat16 in order to make it bootable with my bios, but I do not want to lose the space as I wish to mulitboot! I am curious if it is possible to install a boot loader to a smaller partition formatted to fat16 and load my multiple Linux ISO's to a larger partition formatted in fat32 and have the boot loader pointed at those in order to boot them? Or if anyone knows any other work around, that would be fantastic! Also, one of the images I would like to use is larger than 4gb on its own, so I would really like to be able to boot it.

Emerson 07-19-2016 03:45 PM

Something is off here. BIOS does not deal with filesystems, it executes the code on MBR, which is outside of partitions.

Timothy Miller 07-19-2016 03:45 PM

How ancient is your machine that it only boots fat16??? That would be EARLY 1990's BIOS (Windows 95 was FAT32 default), and would probably be unusable with MOST modern distro's, even those geared towards older hardware.

michaelk 07-19-2016 04:12 PM

Are you using a multiboot tool? If so which one?

I'm confused too... If the computer is capable of booting a USB flash drive then the BIOS should not have a 8GB limitation nor is the filesystem type as already stated. Some additional information about your computer hardware would be helpful.

I have not really played with multiboot tools but yumi and xboot can handle large DVD images. I believe that YUMI uses syslinux for booting that requires a FAT32 filesystem but then chain loads to grub so size isn't an issue.

Emerson 07-19-2016 04:14 PM

:idea: It must be UEFI boot then.

percy4209 07-19-2016 04:18 PM

I have read multiple comments stating that formatting my drive to fat16 will fix it. If this isn't the case, can anyone tell me why my newly bought 8gb flash drive will not boot? I was previously using a 4gb which booted fine, but did not have enough space. I upgraded to this 8gb, and the first time I loaded Linux ISOs on to it, it did TRY to boot, but gave an error, "failed to load ldlinux.c32" so I formatted and tried again, but this time it just hangs after bios. When I look in bios to set HDD boot priority, the USB is not there with the 8gb (it is there with the 4gb). Any thoughts on how to fix this?

percy4209 07-19-2016 05:18 PM

Okay, so I have made some progress.... but first some info about my system:

My PC was built in 2008 and my MOBO is a Gigabyte GA-M57SLI-S4 (but as you have stated, this is NOT an issue with my MOBO)
I am currently Dual Booting Slack 14.2 and Windows 7 (thank god for linux)

When I format the drive in Slackware (I should have tried this before posting here) and use the DD function to install a Linux ISO directly to the drive, it becomes instantly bootable and shows up in my BIOS, but the ISO I used did not boot and gave me an error that some file was missing. I am going to attempt now to use multibootusb in Slackware and see how that goes.

Does anyone know why it works when I use Linux to format and install ISOs as compared to Winblows? That just doesn't make sense to me unless Winderz isn't writing the MBR correctly. I am still puzzled. There aren't too many good Multiboot tools for Linux, which is why I was attempting to use Windoughs.

Timothy Miller 07-19-2016 05:22 PM

Is your pc set as UEFI boot like Emerson posted? If so, is the image you're trying to use UEFI compatible?

percy4209 07-19-2016 05:40 PM

Quote:

Originally Posted by Timothy Miller (Post 5578429)
Is your pc set as UEFI boot like Emerson posted? If so, is the image you're trying to use UEFI compatible?

My PC is not UEFI compatible. I do not have that option in my BIOS, but I can boot from USB HDD as long as the USB and Image are bootable. This is why I use YUMI or Unetbootin.

jpollard 07-19-2016 05:41 PM

Quote:

Originally Posted by percy4209 (Post 5578426)
Okay, so I have made some progress.... but first some info about my system:

My PC was built in 2008 and my MOBO is a Gigabyte GA-M57SLI-S4 (but as you have stated, this is NOT an issue with my MOBO)
I am currently Dual Booting Slack 14.2 and Windows 7 (thank god for linux)

When I format the drive in Slackware (I should have tried this before posting here) and use the DD function to install a Linux ISO directly to the drive, it becomes instantly bootable and shows up in my BIOS, but the ISO I used did not boot and gave me an error that some file was missing. I am going to attempt now to use multibootusb in Slackware and see how that goes.

Does anyone know why it works when I use Linux to format and install ISOs as compared to Winblows? That just doesn't make sense to me unless Winderz isn't writing the MBR correctly. I am still puzzled. There aren't too many good Multiboot tools for Linux, which is why I was attempting to use Windoughs.

Windows doesn't like any other operating system. You have to use a custom utility to write the boot block(s).

It may be that whatever you are using to write the boot blocks cannot use Linux native file systems to identify block numbers for the MBR boot. What you USED to have to do is install the boot blocks on a raw floppy plus the kernel. Then the first boot you direct the kernel to the target using the "root=" kernel option. Once the target system is booted you use that to write the boot blocks on the targeted disk.

I haven't had to use a fat16 anything (until the ARM boot on the Raspberry PI) in over 20 years. You BIOS doesn't care what is IN the boot blocks, but the boot blocks themselves have to load the kernel. Grub and Grub2 understands most Linux filesystems (ext4) that putting it in the boot blocks is sufficient, and can load the linux kernel from the filesystem rather than using a block map (which LILO uses).

percy4209 07-19-2016 05:47 PM

Quote:

Originally Posted by jpollard (Post 5578440)
Windows doesn't like any other operating system. You have to use a custom utility to write the boot block(s).

It may be that whatever you are using to write the boot blocks cannot use Linux native file systems to identify block numbers for the MBR boot. What you USED to have to do is install the boot blocks on a raw floppy plus the kernel. Then the first boot you direct the kernel to the target using the "root=" kernel option. Once the target system is booted you use that to write the boot blocks on the targeted disk.

I haven't had to use a fat16 anything (until the ARM boot on the Raspberry PI) in over 20 years. You BIOS doesn't care what is IN the boot blocks, but the boot blocks themselves have to load the kernel. Grub and Grub2 understands most Linux filesystems (ext4) that putting it in the boot blocks is sufficient, and can load the linux kernel from the filesystem rather than using a block map (which LILO uses).

I understand all that, but do you not find it odd that I was using YUMI to multiboot on my 4gb flash drive, yet it will not work on my 8GB flash drive? I wonder if I can simply format the drive in Linux and then use YUMI in windows? I read somewhere that Windows will not write the MBR when formatting because it lists the drive as removable media and doesn't see the need to create a MBR.

percy4209 07-19-2016 05:55 PM

Well after attempting to use multibootusb in slack I am back to square one as it acted the same as if I created it with YUMI in Windows. It seems the only way so far I have been able to have my BIOS recognize the drive as bootable is to use DD in the terminal. Any suggestions?

jpollard 07-19-2016 06:29 PM

Quote:

Originally Posted by percy4209 (Post 5578442)
I understand all that, but do you not find it odd that I was using YUMI to multiboot on my 4gb flash drive, yet it will not work on my 8GB flash drive? I wonder if I can simply format the drive in Linux and then use YUMI in windows? I read somewhere that Windows will not write the MBR when formatting because it lists the drive as removable media and doesn't see the need to create a MBR.

Nope. YUMI is specifically for USB devices, and which one might be a bit limited in size.

Windows will not WRITE the MBR (well, I think it actually does, but it writes 0's) on a USB. It must still allocate the space.

It also looks like you BIOS doesn't support USB booting either. The only options I see are for various hard disks, CDROM and floppy.

Reference:
http://www.manualslib.com/manual/358...page=38#manual

hydrurga 07-19-2016 06:33 PM

Quote:

Originally Posted by percy4209 (Post 5578445)
Well after attempting to use multibootusb in slack I am back to square one as it acted the same as if I created it with YUMI in Windows. It seems the only way so far I have been able to have my BIOS recognize the drive as bootable is to use DD in the terminal. Any suggestions?

So what you're saying is that you were able to boot off your 8GB drive after having dd'd an ISO over to it, but you were unable to boot off the same drive using a YUMI- and multibootusb-generated setup?

That would lead to the conclusion that your drive is recognised fine by the BIOS, so you're not back to square 1, and the problem is in your use of both the multiboot packages.

Would that be correct?

michaelk 07-19-2016 06:36 PM

Using dd with a hybrid ISO images basically overwrites the existing MBR and partitions so as long as it was built correctly does not care about what currently exists on the drive. In most cases the image size is less then the size of the flash drive and so you need to create a new MBR so the OS will see the entire disk again.

unetbootin does not format or overwrite existing data on the drive. It needs to be formatted as FAT32. The contents of the ISO are extracted and written to the flash drive and a bootloader (syslinux) is installed. Not all distributions work out of the box with unetbootin.

yumi can work with a FAT16/FAT32/NTFS partition but needs a specific volume label. The link below indicates that NTFS is buggy. In another thread the OP discovered their 8GB drive was formatted as NTFS by the manufacture. You might need to rebuild the MBR and boot loader.

http://www.syslinux.org/wiki/index.php?title=Isohybrid
http://www.pendrivelinux.com/yumi-mu...t-usb-creator/

percy4209 07-19-2016 06:44 PM

Quote:

Originally Posted by jpollard (Post 5578460)
Nope. YUMI is specifically for USB devices, and which one might be a bit limited in size.

Windows will not WRITE the MBR (well, I think it actually does, but it writes 0's) on a USB. It must still allocate the space.

It also looks like you BIOS doesn't support USB booting either. The only options I see are for various hard disks, CDROM and floppy.

Reference:
http://www.manualslib.com/manual/358...page=38#manual

My motherboard most definitely supports USB boot and I have been able to boot my 4GB drive made with YUMI just fine. I cannot get the 8gb to boot with YUMI, but it will boot a DD hybrid.

Emerson 07-19-2016 06:45 PM

Some braindead BIOS'es require boot flag to be set, if no partition is set bootable they wont boot the drive.

percy4209 07-19-2016 06:47 PM

Quote:

Originally Posted by hydrurga (Post 5578465)
So what you're saying is that you were able to boot off your 8GB drive after having dd'd an ISO over to it, but you were unable to boot off the same drive using a YUMI- and multibootusb-generated setup?

That would lead to the conclusion that your drive is recognised fine by the BIOS, so you're not back to square 1, and the problem is in your use of both the multiboot packages.

Would that be correct?

Sort of. I have been able to boot my 4GB drive using YUMI without issue over the past few years. There is just something tricky with this 8gb and it will not boot with YUMI/syslinux. I'm stumped as of now which is why I am asking for help. Thank you (and everyone else) for your help!

jpollard 07-19-2016 06:49 PM

Quote:

Originally Posted by percy4209 (Post 5578472)
My motherboard most definitely supports USB boot and I have been able to boot my 4GB drive made with YUMI just fine. I cannot get the 8gb to boot with YUMI, but it will boot a DD hybrid.

sorry - I just can't seem to read. It is even there on the reference I gave.

percy4209 07-19-2016 06:50 PM

Quote:

Originally Posted by michaelk (Post 5578467)
Using dd with a hybrid ISO images basically overwrites the existing MBR and partitions so as long as it was built correctly does not care about what currently exists on the drive. In most cases the image size is less then the size of the flash drive and so you need to create a new MBR so the OS will see the entire disk again.

unetbootin does not format or overwrite existing data on the drive. It needs to be formatted as FAT32. The contents of the ISO are extracted and written to the flash drive and a bootloader (syslinux) is installed. Not all distributions work out of the box with unetbootin.

yumi can work with a FAT16/FAT32/NTFS partition but needs a specific volume label. The link below indicates that NTFS is buggy. In another thread the OP discovered their 8GB drive was formatted as NTFS by the manufacture. You might need to rebuild the MBR and boot loader.

http://www.syslinux.org/wiki/index.php?title=Isohybrid
http://www.pendrivelinux.com/yumi-mu...t-usb-creator/

I have attempted to rebuild the MBR with DISK PART in Windows , but I am definitely open to suggestions of you ha e any. Also, if the hybrid boots after using DD wouldn't that have rebuilt the MBR as well since it uses an entirely different file system?

percy4209 07-19-2016 06:53 PM

Quote:

Originally Posted by Emerson (Post 5578474)
Some braindead BIOS'es require boot flag to be set, if no partition is set bootable they wont boot the drive.

This is what I was thinking, but it will boot when I make the hybrid. I also tried rebuilding the MBR with DISK PART in windows to no avail. How exactly to I make sure it is set to boot?

Emerson 07-19-2016 07:01 PM

See fdisk output below, in my case boot flag is not set, this box boots fine without it.
Code:

fdisk /dev/sda

Welcome to fdisk (util-linux 2.28).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): p
Disk /dev/sda: 59.6 GiB, 64023257088 bytes, 125045424 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
Disklabel type: dos
Disk identifier: 0x00020071

Device    Boot Start      End  Sectors  Size Id Type
/dev/sda1        2048 125045423 125043376 59.6G 83 Linux


michaelk 07-19-2016 07:02 PM

Quote:

I have attempted to rebuild the MBR with DISK PART in Windows , but I am definitely open to suggestions of you ha e any. Also, if the hybrid boots after using DD wouldn't that have rebuilt the MBR as well since it uses an entirely different file system?
Yes, but it would not be compatible with yumi or unetbootin anymore. You would still need to erase/rebuild the MBR.

percy4209 07-22-2016 04:43 PM

Quote:

Originally Posted by michaelk (Post 5578484)
Yes, but it would not be compatible with yumi or unetbootin anymore. You would still need to erase/rebuild the MBR.

Okay, so here is where I am at now. I have erased/rebuilt the MBR multiple times. Every time I rebuild the MBR, the disk becomes bootable (I check in BIOS after each rebuild to see if I can select the flash drive to boot). Once I use ANY software to load linux on the drive (Unetbootin, YUMI, MultidiskUSB, etc, etc...) the disk becomes unbootable again. I have used software to install an ISO to the flash drive and then flagged it as active/bootable manually to no avail. I am completely at a loss here. I have been working on this for a few days now and I just cannot figure it out. Any more suggestions?

michaelk 07-22-2016 05:02 PM

What ISO's are you trying to configure to multiboot?

percy4209 07-22-2016 05:26 PM

OH. MY. GOD! You guys won't believe this! After rebuilding my MBR most recently and formatting the drive to NTFS, I used YUMI to install PClinuxOS and it BOOTED FROM THE USB! No problem this time at all whatsoever! Now, can anyone explain why this worked? Is it the NTFS fine system? I never thought to format to NTFS as Linux does not use it. I'm absolutely baffled. Can anyone explain this? O rebuilt the MBR so many times, but always formatted to fat32. Every single time I used YUMI or some variation, it always went back to not being recognized, but the first time I formatted to NTFS it worked perfectly. It doesnt make sense to me. I am just happy it's working.

percy4209 07-22-2016 05:31 PM

Quote:

Originally Posted by michaelk (Post 5580035)
What ISO's are you trying to configure to multiboot?

I have been using Sparky Linux (Game Over Edition), Manjaro (3 community variations), and PClinuxOS. Would it make any difference which ISO I used YUMI to install first? I have also used unetbootin and easy2boot after rebuilding the MBR and they did not work either. But now on the NTFS file system with YUMI it worked perfectly. I did only install PClinuxOS this time using YUMI (no other distros). I'm going to add more distros now and see if it still works! It shouldn't have any issues now since it booted, but I wouldn't count anything out with as crazy as this drive has been acting! Thanks for all the help, everyone!

yancek 07-22-2016 05:51 PM

I'm not sure what is going on with YUMI for you but, I used it about a month ago and had three partitions, FAT32, ntfs and ext3 with windows 10 installer and Linux and Android systems on them and they all booted. I think it is something other than the filesystem type, at least from my experience but I'm not familiar enough with YUMI to make any suggestions. I can't see that it would make any difference which distribution you installed first. Good luck with it.

percy4209 07-22-2016 06:06 PM

Quote:

Originally Posted by yancek (Post 5580057)
I'm not sure what is going on with YUMI for you but, I used it about a month ago and had three partitions, FAT32, ntfs and ext3 with windows 10 installer and Linux and Android systems on them and they all booted. I think it is something other than the filesystem type, at least from my experience but I'm not familiar enough with YUMI to make any suggestions. I can't see that it would make any difference which distribution you installed first. Good luck with it.

Seriously. Me either. I have no clue why it decided to start working, but it did and I don't plan on messing with the MBR or file system any more.

Side note: I am planning on replacing my Slackware install with something a little more modern. I am playing with Manjaro with Pantheon and Budgie as well as PClinuxOS. Does anyone have any experience/opinions on these two? I really like both of them and am kinda up in the air on which I install.

Timothy Miller 07-22-2016 06:43 PM

Every time I've used Manjaro, within 6 months it has become unusable due to the unstable nature of the underlying OS (which obviously I'm a glutton since I have Antergos on one of my machines again).

percy4209 07-23-2016 12:17 AM

Quote:

Originally Posted by Timothy Miller (Post 5580071)
Every time I've used Manjaro, within 6 months it has become unusable due to the unstable nature of the underlying OS (which obviously I'm a glutton since I have Antergos on one of my machines again).

Yeah, I've been playing with it and I don't think it's for me. I still cannot find an OS I really like. Looks like Arch is next. I'll bet I stick with Slackware/KDE plasma 5.

Timothy Miller 07-23-2016 12:27 AM

Quote:

Originally Posted by percy4209 (Post 5580131)
Yeah, I've been playing with it and I don't think it's for me. I still cannot find an OS I really like. Looks like Arch is next. I'll bet I stick with Slackware/KDE plasma 5.

If your only reason for wanting to replace Slack is to get something more modern, why don't you just move to current?


All times are GMT -5. The time now is 01:49 AM.