Debian alongside YUMI (different partitions)

Help with issues regarding installation of Debian

Debian alongside YUMI (different partitions)

Postby Trendle » 2018-03-30 07:58

I have a USB stick that has a capacity of 30560 MiB. I would like to create a 13312 MiB ext4 partition and install Debian on it, and a 17248 MiB NTFS partition with YUMI on it.

What's the best way to do that, and make both partitions work smoothly with GRUB?
Trendle
 
Posts: 17
Joined: 2018-03-30 07:47

Re: Debian alongside YUMI (different partitions)

Postby debiman » 2018-03-30 11:30

you can use any tool you want to do that.
i'd use gparted.
for all intents and purposes, your usb stick is just another hard drive.
User avatar
debiman
 
Posts: 2927
Joined: 2013-03-12 07:18

Re: Debian alongside YUMI (different partitions)

Postby Trendle » 2018-03-30 13:50

debiman wrote:you can use any tool you want to do that.
i'd use gparted.
for all intents and purposes, your usb stick is just another hard drive.


The problem is when I format it with GParted, Windows doesn't recognize the NTFS partition, and neither does YUMI.

Image

Image
Trendle
 
Posts: 17
Joined: 2018-03-30 07:47

Re: Debian alongside YUMI (different partitions)

Postby p.H » 2018-03-30 14:17

IIRC, Windows can use only the first partition on a USB stick. So the NTFS partition should be #1.

Also, be aware that a standard installation on ext4 may wear out a USB stick much faster than "normal" use as quasi-static data storage.
p.H
 
Posts: 602
Joined: 2017-09-17 07:12

Re: Debian alongside YUMI (different partitions)

Postby bw123 » 2018-03-30 14:30

p.H wrote:IIRC, Windows can use only the first partition on a USB stick. So the NTFS partition should be #1.


Wow, have they really not fixed that yet? I haven't used it since ver 2k/xp and it always bugged me that I could not use my fat32 or other extra partitions.

So the question is about partitioning? Or is it about bootloaders? or is it about os and filesystems? I never used yumi, but it sounds like the setup would be yumi's bootloader loading iso's from an ntfs partition? Where does debian/grub fit in?
User avatar
bw123
 
Posts: 3418
Joined: 2011-05-09 06:02
Location: TN_USA

Re: Debian alongside YUMI (different partitions)

Postby p.H » 2018-03-30 15:27

bw123 wrote:Wow, have they really not fixed that yet?

I actually have not checked with a "recent" Windows.

bw123 wrote:it sounds like the setup would be yumi's bootloader loading iso's from an ntfs partition? Where does debian/grub fit in?

Maybe the setup would be GRUB as the primary bootloader booting Debian and chainloading YUMI's bootloader.
p.H
 
Posts: 602
Joined: 2017-09-17 07:12

Re: Debian alongside YUMI (different partitions)

Postby Trendle » 2018-03-30 15:29

p.H wrote:IIRC, Windows can use only the first partition on a USB stick. So the NTFS partition should be #1.

You're right. It worked when I created the NTFS partition before the ext4 partition. :shock:

bw123 wrote:So the question is about partitioning? Or is it about bootloaders? or is it about os and filesystems? I never used yumi, but it sounds like the setup would be yumi's bootloader loading iso's from an ntfs partition? Where does debian/grub fit in?

Well, now that I have Debian installed on one partition and YUMI on the other, I would like to add an option in the GRUB menu to boot YUMI's bootloader.
Trendle
 
Posts: 17
Joined: 2018-03-30 07:47

Re: Debian alongside YUMI (different partitions)

Postby p.H » 2018-03-30 17:28

Can you describe what you did ?
I assume :
- create an NTFS partition and install YUMI on it
- create an ext4 partition and install Debian on it
- install GRUB in the stick's MBR or in the ext4 partition's PBR ?

Is it a BIOS/legacy or UEFI/EFI setup ?
Does os-prober detect YUMI's boot loader ?
If it does not, could you generate a report with bootinfoscript (from the boot-info-script package) ?
p.H
 
Posts: 602
Joined: 2017-09-17 07:12

Re: Debian alongside YUMI (different partitions)

Postby Trendle » 2018-03-30 19:19

p.H wrote:Can you describe what you did ?
I assume :
- create an NTFS partition and install YUMI on it
- create an ext4 partition and install Debian on it
- install GRUB in the stick's MBR or in the ext4 partition's PBR ?

Is it a BIOS/legacy or UEFI/EFI setup ?
Does os-prober detect YUMI's boot loader ?
If it does not, could you generate a report with bootinfoscript (from the boot-info-script package) ?

- Yes.
- Yes.
- Stick's MBR.

It's BIOS/legacy.
No.
https://pastebin.com/raw/8J5DcwAU
Trendle
 
Posts: 17
Joined: 2018-03-30 07:47

Re: Debian alongside YUMI (different partitions)

Postby p.H » 2018-03-30 19:59

It appears that the bootloader on the NTFS partition is syslinux.
You can try to add the following entry in a file saved as /boot/grub/custom.cfg :

Code: Select all
menuentry 'YUMI on USB stick' --class os $menuentry_id_option 'yumi-5FF62A2F1582B4F6' {
   insmod part_msdos
   insmod ntfs
   set root='hd0,msdos1'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 5FF62A2F1582B4F6
   else
     search --no-floppy --fs-uuid --set=root 5FF62A2F1582B4F6
   fi
   chainloader +1
}
p.H
 
Posts: 602
Joined: 2017-09-17 07:12

Re: Debian alongside YUMI (different partitions)

Postby Trendle » 2018-03-30 20:15

Wow, it worked! That's awesome. :mrgreen:

How did you figure it out?

The only problem now is Debian doesn't run very good. I'm using a Lexar P20 through USB 3.0 - I thought it would be fast enough with this stick, but it's a bit sluggish. :|
Trendle
 
Posts: 17
Joined: 2018-03-30 07:47

Re: Debian alongside YUMI (different partitions)

Postby p.H » 2018-03-30 20:35

Trendle wrote:How did you figure it out?

Your information + my knowledge = a solution

Trendle wrote:The only problem now is Debian doesn't run very good. I'm using a Lexar P20 through USB 3.0 - I thought it would be fast enough with this stick, but it's a bit sluggish.

Maybe ext4 is not optimized for USB sticks. "Flash friendly" filesystems such as F2FS or NILFS may offer better performance. Unfortunately they are not supported by the Debian installer, so if you want to test them you'll have to move the system by hand and do the necessary adjustments, or install with debootstrap.
p.H
 
Posts: 602
Joined: 2017-09-17 07:12

Re: Debian alongside YUMI (different partitions)

Postby Trendle » 2018-03-30 20:49

p.H wrote:How did you figure it out?
Your information + my knowledge = a solution

Sounds good to me. :lol:

p.H wrote:Maybe ext4 is not optimized for USB sticks. "Flash friendly" filesystems such as F2FS or NILFS may offer better performance. Unfortunately they are not supported by the Debian installer, so if you want to test them you'll have to move the system by hand and do the necessary adjustments, or install with debootstrap.

Alright, I'll do some reading on that tomorrow. Thanks! :wink:
Trendle
 
Posts: 17
Joined: 2018-03-30 07:47


Return to Installation

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable