Jump to content

Issue creating bootable drive with Linux


trezcan

Recommended Posts

What I am doing

 

1. Format flash drive and create fat32 partition

2. Copy files to flash drive

3. Run

make_bootable_linux

via command line

sudo bash /media/NAME/UNRAID/make_bootable_linux

 

What happens

 

I get this error:

 

INFO: make_bootable_linux v1.1

make_bootable_linux: line 40: realpath: command not found

FAIL: unRAID Flash drive detected but not installed on the first partition, aborting!

 

There is only 1 partition on the USB drive, which contains the UNRAID files.

 

I have tried two different USB drives. Admittedly, one is old and has had issues in the past, and the second is larger than 32G. They both give the same result.

 

What else I have tried

 

1. Create a 1G partition (partition 1) and add the files.

2. Use Gparted and made the boot flag active

3. Used disk utility and made the partition bootable.

 

When attempting to boot from the disk, I get the standard "this is not a bootable drive..."

 

I do not have a windows or mac box onsite. I have a new flash drive coming in the mail just in case that is what it is, but wanted to make sure.

 

Any suggestions?

Link to comment

You could have installed the "realpath" package:

 

sudo apt-get install realpath

 

Or, I suppose the script could be written to implement it on its own instead of assuming it comes with the system:

 

http://unix.stackexchange.com/questions/101080/realpath-command-not-found

 

Should be replaced by readlink, which is part of Coreutils and installed virtually on every linux machine out there.

Link to comment
  • 3 weeks later...

I'm having a similar problem on mac. I just keep getting "FAIL: There appears to a drive present with the label UNRAID

but it's not installed on the first partition"

I've included a screenshot and any help would be amazing.

 

William

 

yatesey, that's a very different problem, so I think it's best if I move your post to its own support thread, found here:

 

  Issue creating bootable drive on Mac

Link to comment

You could have installed the "realpath" package:

 

sudo apt-get install realpath

 

Or, I suppose the script could be written to implement it on its own instead of assuming it comes with the system:

 

http://unix.stackexchange.com/questions/101080/realpath-command-not-found

 

Should be replaced by readlink, which is part of Coreutils and installed virtually on every linux machine out there.

 

Good idea, realpath worked fine on unRAID and Ubuntu 16.04 in my testing but readlink will be more compatible.  I'll have the script adjusted to use readlink instead for 6.3.0-rc5.

Link to comment
  • 6 years later...

I faced the same problem.
The issue happened on Ubuntu22. The problem which I faced is that the disks software format the entire flashdrive in a single partition.
The partition was like that:

UNRAID -> ../../sdd

 

The issue is that the script make_bootable_linux expects the drive to be with a number at the end.
I reformat the flashdrive with gparted. Made a new partition table and created a second partition a few MB (not sure if this is necessary)


Now my UNRAID partition is sdd1 and the the bootable disk is ready.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...