Choose style:

Author Topic: Creating a multi bootable USB pendrive.(SOLVED)  (Read 2480 times)

0 Members and 1 Guest are viewing this topic.

Offline alynur

  • Trusted User
  • Veteran
  • *****
  • Posts: 1152
  • Karma: 86
  • Habitual Forum Browser
    • View Profile
  • Peppermint version(s): P 9R (64bit), P 10
Creating a multi bootable USB pendrive.(SOLVED)
« on: March 24, 2017, 05:53:58 pm »
Hello Peppermint people. I am trying to make a USB multi boot drive. I reviewed the older topic which had suggestions of using
MultiSystem or Easy2Boot. I tried both neither worked. The multiSystem tool gave me an error message  saying, in French, that MultiSystem doesn't recognize drives with spaces in the name? And the Easy2Boot has instructions to install Grub4dos into the pendrive that don't work. Plus I kind of got lost with what I was supposed to be doing. Can anyone help me out here?
Thanks guys
« Last Edit: September 06, 2017, 11:54:43 am by alynur »
What was I thinking?

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26466
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Creating a multi bootable USB pendrive.
« Reply #1 on: March 24, 2017, 07:08:48 pm »
Reformat the drive with USB Stick Formatter, and try giving it a label without a space in the name ;)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline alynur

  • Trusted User
  • Veteran
  • *****
  • Posts: 1152
  • Karma: 86
  • Habitual Forum Browser
    • View Profile
  • Peppermint version(s): P 9R (64bit), P 10
Re: Creating a multi bootable USB pendrive.
« Reply #2 on: March 24, 2017, 07:51:57 pm »
Reformat the drive with USB Stick Formatter, and try giving it a label without a space in the name ;)
Hi PCNetSpec, I tried that but I keep getting the same message, the usb stick reads as "KingstonDataTraveler_2.0. So I went on to EasyBoot and I followed the directions at https://ubuntuforums.org/showthread.php?t=2180790 and this is what I get from the terminal when I do the Grub4dos instructions
Code: [Select]
albert@albert-desktop /mnt/DATA/Downloads/grub4dos/grub4dos-0.4.5c $ sudo ./bootlace.com --time-out=0 /media/albert/easy2boot
[sudo] password for albert:

Error: Cannot open file for read/write access.

BOOTLACE writes GRLDR BOOT RECORD to MBR or to the boot area of a file system.
Usage:  bootlace.com  [OPTIONS]  DEVICE_OR_FILE
Options: --read-only, --floppy[=N], --boot-prevmbr-first, --boot-prevmbr-last,
--no-backup-mbr, --force-backup-mbr, --mbr-enable-floppy, --mbr-disable-floppy,
--mbr-enable-osbr, --mbr-disable-osbr, --duce, --time-out=T, --hot-key=K,
--preferred-drive=D, --preferred-partition=P, --sectors-per-track=S, --heads=H,
--start-sector=B, --total-sectors=C, --install-partition=I, --lba, --chs,
--fat12, --fat16, --fat32, --vfat, --ntfs, --ext2, --serial-number=SN,
--restore-mbr, --mbr-no-bpb, --chs-no-tune
DEVICE_OR_FILE: Filename of the device or image. For DOS, a BIOS drive number
(in hex 0xHH or decimal DDD format)can be used to access the drive.
The instructions for Easy 2Boot get easier as I keep trying it but I don't know what to do about the grub instructions because it certainly doesn't work without it.
What was I thinking?

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26466
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Creating a multi bootable USB pendrive.
« Reply #3 on: March 24, 2017, 08:47:05 pm »
Maybe try
Code: [Select]
sudo chmod 777 /media/albert/easy2boot
before
Code: [Select]
sudo ./bootlace.com --time-out=0 /media/albert/easy2boot

But something tells me it's after a command more like
Code: [Select]
sudo ./bootlace.com --time-out=0 /dev/sdX
where /dev/sdX is the device node of the USB stick
« Last Edit: March 24, 2017, 08:49:55 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline alynur

  • Trusted User
  • Veteran
  • *****
  • Posts: 1152
  • Karma: 86
  • Habitual Forum Browser
    • View Profile
  • Peppermint version(s): P 9R (64bit), P 10
Re: Creating a multi bootable USB pendrive.
« Reply #4 on: March 25, 2017, 02:34:51 pm »
Maybe try
Code: [Select]
sudo chmod 777 /media/albert/easy2boot
before
Code: [Select]
sudo ./bootlace.com --time-out=0 /media/albert/easy2boot

But something tells me it's after a command more like
Code: [Select]
sudo ./bootlace.com --time-out=0 /dev/sdX
where /dev/sdX is the device node of the USB stick
Hi PCNetSpec, after reformatting the usb stick, it's new name is USB Stick, located at /sdg1.
I ran the chmod command and that seems to have went okay but I still get the same error notice trying with /albert/media USB_Stick or /albert/media/sdg1.
Code: [Select]
albert@albert-desktop /mnt/DATA/Downloads/grub4dos/grub4dos-0.4.5c $ sudo ./bootlace.com --time-out=0 /media/albert/USB_Stick
[sudo] password for albert:

Error: Cannot open file for read/write access.

BOOTLACE writes GRLDR BOOT RECORD to MBR or to the boot area of a file system.
Usage:  bootlace.com  [OPTIONS]  DEVICE_OR_FILE
Options: --read-only, --floppy[=N], --boot-prevmbr-first, --boot-prevmbr-last,
--no-backup-mbr, --force-backup-mbr, --mbr-enable-floppy, --mbr-disable-floppy,
--mbr-enable-osbr, --mbr-disable-osbr, --duce, --time-out=T, --hot-key=K,
--preferred-drive=D, --preferred-partition=P, --sectors-per-track=S, --heads=H,
--start-sector=B, --total-sectors=C, --install-partition=I, --lba, --chs,
--fat12, --fat16, --fat32, --vfat, --ntfs, --ext2, --serial-number=SN,
--restore-mbr, --mbr-no-bpb, --chs-no-tune
DEVICE_OR_FILE: Filename of the device or image. For DOS, a BIOS drive number
(in hex 0xHH or decimal DDD format)can be used to access the drive.
albert@albert-desktop /mnt/DATA/Downloads/grub4dos/grub4dos-0.4.5c $ sudo ./bootlace.com --time-out=0 /media/albert/sdg1

Error: Cannot open file for read/write access.

BOOTLACE writes GRLDR BOOT RECORD to MBR or to the boot area of a file system.
Usage:  bootlace.com  [OPTIONS]  DEVICE_OR_FILE
Options: --read-only, --floppy[=N], --boot-prevmbr-first, --boot-prevmbr-last,
--no-backup-mbr, --force-backup-mbr, --mbr-enable-floppy, --mbr-disable-floppy,
--mbr-enable-osbr, --mbr-disable-osbr, --duce, --time-out=T, --hot-key=K,
--preferred-drive=D, --preferred-partition=P, --sectors-per-track=S, --heads=H,
--start-sector=B, --total-sectors=C, --install-partition=I, --lba, --chs,
--fat12, --fat16, --fat32, --vfat, --ntfs, --ext2, --serial-number=SN,
--restore-mbr, --mbr-no-bpb, --chs-no-tune
DEVICE_OR_FILE: Filename of the device or image. For DOS, a BIOS drive number
(in hex 0xHH or decimal DDD format)can be used to access the drive.
The only thing I noticed was that I had to be in the USB Stick directory to get the chmod  command to not give me a similar unable to access the folder error. But if I go into the stick directory and run the ./bootlace command, I get this
Code: [Select]
albert@albert-desktop /media/albert/USB Stick $ sudo ./bootlace.com --time-out=0 /dev/sdg1
[sudo] password for albert:
sudo: ./bootlace.com: command not found
albert@albert-desktop /media/albert/USB Stick $
Maybein that bootlace command from the Brub4dos dirctory needs an instruction to switch directories to enable it to access the usb stick?
I sure would feel better if this stuff would work like it's supposed to.
Maybe ./bootlace.com --time-out=0 /media/albert/USB_Stick/sdg1 might work? I might try that......Nope, same error. So how about making bootlace.com readable/writable? Wouldn't that be a chmod command?
What was I thinking?

Offline alynur

  • Trusted User
  • Veteran
  • *****
  • Posts: 1152
  • Karma: 86
  • Habitual Forum Browser
    • View Profile
  • Peppermint version(s): P 9R (64bit), P 10
Re: Creating a multi bootable USB pendrive.
« Reply #5 on: March 25, 2017, 02:55:44 pm »
Well I think you sir, Mr. PCNeTSpec, had the answer from the beginning, the sudo ./bootlace.com --time-out=0  /dev/sdg worked. I was stuck on /sdg1 or /USB_Stick. But this time it went through. Now to copy iso's to the file they mention and then the defrag of the stick, So I'll be back when I run into those problems. thanks.
What was I thinking?

Offline alynur

  • Trusted User
  • Veteran
  • *****
  • Posts: 1152
  • Karma: 86
  • Habitual Forum Browser
    • View Profile
  • Peppermint version(s): P 9R (64bit), P 10
Re: Creating a multi bootable USB pendrive.
« Reply #6 on: March 25, 2017, 04:03:27 pm »
Okay, I've got the iso's copied and I'm trying to run the defrag command and I keep getting this message

Code: [Select]
albert@albert-desktop /mnt/DATA/Downloads/defrags $ sudo perl defragfs /media/albert/USB_Stick/ -f
[sudo] password for albert:
defragfs 1.1.1, Released under GPLv3 by John Robson <john.robson@usp.br>, March 2011 (help: $ defragfs / -h)

You must specify a correct directory name!
So what would be the correct directory name? Would it be /media/albert/USB_Stick/ISO/MAINMENU?
What was I thinking?

Offline alynur

  • Trusted User
  • Veteran
  • *****
  • Posts: 1152
  • Karma: 86
  • Habitual Forum Browser
    • View Profile
  • Peppermint version(s): P 9R (64bit), P 10
Re: Creating a multi bootable USB pendrive.
« Reply #7 on: March 25, 2017, 04:58:37 pm »
I was reading through the instruction pages and found an entry by a person who stated that any version of Easy2boot after 1.5 doesn't need to be formated because the iso's go into a contiguous iso and so I tried to boot into it. I was able to get into the list of iso's, I have Linux Mint, LXE, Peppermint 7, and Zorin 12 installed, but when I choose one to try the live version I get the busybox page that says "cannot mount /dev/loop0 (/cdrom/casper/filesystemsquashfs) on //filesystem.squashfs. So what does that mean and how do I fix it?
What was I thinking?

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26466
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Creating a multi bootable USB pendrive.
« Reply #8 on: March 25, 2017, 05:02:35 pm »
I have no idea here .. but ..

When you say the USB stick is labelled "USB Stick", why are you adding an underscore to the path (as in USB_Stick) ?

if the path contains a space, as in:-
/media/albert/USB Stick
then the path needs to be surrounded dy quotation marks .. as in:-
Code: [Select]
sudo perl defragfs "/media/albert/USB Stick" -f
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26466
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Creating a multi bootable USB pendrive.
« Reply #9 on: March 25, 2017, 05:06:29 pm »
I was reading through the instruction pages and found an entry by a person who stated that any version of Easy2boot after 1.5 doesn't need to be formated because the iso's go into a contiguous iso and so I tried to boot into it. I was able to get into the list of iso's, I have Linux Mint, LXE, Peppermint 7, and Zorin 12 installed, but when I choose one to try the live version I get the busybox page that says "cannot mount /dev/loop0 (/cdrom/casper/filesystemsquashfs) on //filesystem.squashfs. So what does that mean and how do I fix it?

No idea .. this would be a question for the devs as it looks like the menu systems syntax is a bit "off" (//filesystem.squashfs)

If I were you I'd go back to trying to figure out MultiSys which used to work for me .. though it was a couple of years ago.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline alynur

  • Trusted User
  • Veteran
  • *****
  • Posts: 1152
  • Karma: 86
  • Habitual Forum Browser
    • View Profile
  • Peppermint version(s): P 9R (64bit), P 10
Re: Creating a multi bootable USB pendrive.
« Reply #10 on: March 25, 2017, 05:28:48 pm »
I have no idea here .. but ..

When you say the USB stick is labelled "USB Stick", why are you adding an underscore to the path (as in USB_Stick) ?

if the path contains a space, as in:-
/media/albert/USB Stick
then the path needs to be surrounded dy quotation marks .. as in:-
Code: [Select]
sudo perl defragfs "/media/albert/USB Stick" -f
Aha! I knew I was doing something wrong, I thought I remembered that the command didn't like spaces in names, which I was right, but I had forgotten about having to put quotation marks around the path. That was mentioned in one of my posts awhile back but I can't remember past yesterday. Thanks PCNetSpec, I'll give that a try and see if it makes a difference. as far as MultiSys goes I tried a different stick and it had a _ in it's name as shown in MultiSys window and ended with the same error message. So until I can figure out how to change the name as shown in MultiSys, that's not going any where. I'll be back!
What was I thinking?

Offline alynur

  • Trusted User
  • Veteran
  • *****
  • Posts: 1152
  • Karma: 86
  • Habitual Forum Browser
    • View Profile
  • Peppermint version(s): P 9R (64bit), P 10
Re: Creating a multi bootable USB pendrive.
« Reply #11 on: March 25, 2017, 05:40:24 pm »
I made the changes with the quotation marks and had success. here's the results
Code: [Select]
albert@albert-desktop /mnt/DATA/Downloads/defrags $ sudo perl defragfs.pl "/media/albert/USB Stick" -f
[sudo] password for albert:
defragfs 1.1.1, Released under GPLv3 by John Robson <john.robson@usp.br>, March 2011 (help: $ defragfs / -h)

Analysis in progress...

...sort: cannot read: /tmp/frags-result-tmp: No such file or directory


Statistics for /media/albert/USB Stick

Total Files: 2447
Total Fragmented Files: 0
Total Fragments: 0
File Fragmentation Rate: 0 %
Avg File Fragments (1 is best): 1

You do not need a defragmentation!
So if it didn't need defragmentation, why isn't it working?
What was I thinking?

Offline N

  • Jr. Member
  • **
  • Posts: 86
  • Karma: 8
  • New Forum User
    • View Profile
  • Peppermint version(s): 8
Re: Creating a multi bootable USB pendrive.
« Reply #12 on: August 08, 2017, 05:58:13 am »
alynur, were you able to create a Live USB with multiple operating systems on it? I haven't read all the replies as those are beyond my knowledge and capability, but your last post suggests your problem wasn't solved.

I was able to create such a USB stick recently using an application called MultibootUSB. It can be found at  http://multibootusb.org/

Offline alynur

  • Trusted User
  • Veteran
  • *****
  • Posts: 1152
  • Karma: 86
  • Habitual Forum Browser
    • View Profile
  • Peppermint version(s): P 9R (64bit), P 10
Re: Creating a multi bootable USB pendrive.
« Reply #13 on: August 11, 2017, 01:35:21 pm »
alynur, were you able to create a Live USB with multiple operating systems on it? I haven't read all the replies as those are beyond my knowledge and capability, but your last post suggests your problem wasn't solved.

I was able to create such a USB stick recently using an application called MultibootUSB. It can be found at  http://multibootusb.org/


Hi N, thanks for the info and welcome to Peppermint. I was finally able to make a multisystem pen with easyboot but easyboot was very selective of the usb pen I was trying to use and after I finally found one that worked, only the first os on the list would boot. The others would give me a no kernel error, so I gave up on that. I did find that I was able to install various os's on a pen which enables me to get a feeling of how the different systems actually work after all the updates, etc, except that everything I run thru a usb pen runs a lot slower than when installed on the hard drive. I think I will give your suggestion a try just to have in case I want to demonstrate a couple of different os's to someone interested. Thanks again.
What was I thinking?

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26466
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: Creating a multi bootable USB pendrive.
« Reply #14 on: August 11, 2017, 03:36:17 pm »
A "Live" system is always going to run slower from a USB stick than a proper install to an HDD:-

a) A USB port (even USB3.0) is slower than SATA/IDE .. and the sticks never even come close to the max throughput of the port.
and
b) a "Live" session has to be decompressed into memory.
« Last Edit: August 11, 2017, 03:40:31 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec