Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Debian alongside YUMI (different partitions)

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
Trendle
Posts: 17
Joined: 2018-03-30 07:47

Debian alongside YUMI (different partitions)

#1 Post by Trendle »

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?

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Debian alongside YUMI (different partitions)

#2 Post by debiman »

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.

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

Re: Debian alongside YUMI (different partitions)

#3 Post by Trendle »

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

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Debian alongside YUMI (different partitions)

#4 Post by p.H »

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.

User avatar
bw123
Posts: 4015
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 28 times

Re: Debian alongside YUMI (different partitions)

#5 Post by bw123 »

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?
resigned by AI ChatGPT

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Debian alongside YUMI (different partitions)

#6 Post by p.H »

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.

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

Re: Debian alongside YUMI (different partitions)

#7 Post by Trendle »

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.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Debian alongside YUMI (different partitions)

#8 Post by p.H »

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) ?

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

Re: Debian alongside YUMI (different partitions)

#9 Post by Trendle »

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

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Debian alongside YUMI (different partitions)

#10 Post by p.H »

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
}

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

Re: Debian alongside YUMI (different partitions)

#11 Post by Trendle »

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. :|

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: Debian alongside YUMI (different partitions)

#12 Post by p.H »

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.

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

Re: Debian alongside YUMI (different partitions)

#13 Post by Trendle »

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:

Post Reply