[opensuse] manage loop mounted device by user
Hello, In my work toward booting a 32 bits uefi, I have to edit the boot part of the openSUSE Leap iso. I probably have better result using studio, but anyway I would like to troubleshoot the more obvious way, that is editing the iso itself. And, as there no reason to make it as root, I would like to make it as user. This mean using rw loop mounted files. Very long time ago, I could drive a course on file systems using loop mounted files as filesystem support, it's more easy than some may think. But this is the past. I don't know exactly the structure of the hybrid openSUSE iso , but I know there are at least two partitions in it, one fat32 for EFI and the other as iso9660 standard. I want to keep the boot capability (obviously) and so don't impact grub2 links. using http://dodin.info/wiki/pmwiki.php?n=Doc.MountADiskAsUser#sDoc.MountADiskAsUs... I can open the EFI partition and add to it, but the available room is very small and I can't copy there the full grub2 32 bit folder (efi file and modules - around 13Mo only). so what I need is enlarging the filesystem. Of course I don't use a dvd but a 8Gb usb stick (the openSUSE one :-), so room is not a hardware limitation. Is it possible and how, to enlarge the EFI partition (and then write all this back to the usb media) without disturbing grub? thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, Feb 25, 2016 at 12:58 PM, jdd
Hello,
In my work toward booting a 32 bits uefi, I have to edit the boot part of the openSUSE Leap iso.
I probably have better result using studio, but anyway I would like to troubleshoot the more obvious way, that is editing the iso itself. And, as there no reason to make it as root, I would like to make it as user.
This mean using rw loop mounted files.
Very long time ago, I could drive a course on file systems using loop mounted files as filesystem support, it's more easy than some may think. But this is the past.
I don't know exactly the structure of the hybrid openSUSE iso , but I know there are at least two partitions in it, one fat32 for EFI and the other as iso9660 standard. I want to keep the boot capability (obviously) and so don't impact grub2 links.
using
http://dodin.info/wiki/pmwiki.php?n=Doc.MountADiskAsUser#sDoc.MountADiskAsUs...
I can open the EFI partition and add to it, but the available room is very small and I can't copy there the full grub2 32 bit folder (efi file and modules - around 13Mo only).
a) you should not need full folder, at least if you are using image from openSUSE RPM (and you do not say what folder exactly you copy) b) efi file + modules cannot be 13M - they should be around 2M.
so what I need is enlarging the filesystem.
Of course I don't use a dvd but a 8Gb usb stick (the openSUSE one :-), so room is not a hardware limitation.
Is it possible and how, to enlarge the EFI partition (and then write all this back to the usb media) without disturbing grub?
You need to remaster ISO image again and replace EFI boot image with new filesystem. I do not know what tool is used to create openSUSE images (because you obviously also need to adjust partition table etc). Using xorriso it would be relatively straightforward. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 25/02/2016 11:54, Andrei Borzenkov a écrit :
a) you should not need full folder, at least if you are using image from openSUSE RPM (and you do not say what folder exactly you copy)
grub2-2.02~beta2-68.2.i586.rpm found on rpmfind. I think openSUSE have no 32 bit uefi anywhere
b) efi file + modules cannot be 13M - they should be around 2M.
jdd@linux-us26:/data-ssd480/temp-data/usr/lib/grub2> du -s 14296 . extracted
You need to remaster ISO image again and replace EFI boot image with
if so it will be simpler to go to studio thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, Feb 25, 2016 at 2:48 PM, jdd
Le 25/02/2016 11:54, Andrei Borzenkov a écrit :
a) you should not need full folder, at least if you are using image from openSUSE RPM (and you do not say what folder exactly you copy)
grub2-2.02~beta2-68.2.i586.rpm
found on rpmfind. I think openSUSE have no 32 bit uefi anywhere
Sigh ... http://download.opensuse.org/tumbleweed/repo/oss/suse/i586/grub2-i386-efi-2....
b) efi file + modules cannot be 13M - they should be around 2M.
jdd@linux-us26:/data-ssd480/temp-data/usr/lib/grub2> du -s 14296 .
extracted
And what you intend to prove by showing some random number? I have no idea what RPM you named includes.
You need to remaster ISO image again and replace EFI boot image with
if so it will be simpler to go to studio
thanks jdd
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 25/02/2016 12:56, Andrei Borzenkov a écrit :
On Thu, Feb 25, 2016 at 2:48 PM, jdd
wrote:
found on rpmfind. I think openSUSE have no 32 bit uefi anywhere
Sigh ... http://download.opensuse.org/tumbleweed/repo/oss/suse/i586/grub2-i386-efi-2....
oh... do you have an idea if this is included in any present distro? having any 32 bits uefi distro would be most of what I try to find :-) if it's here, it may be for some use?
b) efi file + modules cannot be 13M - they should be around 2M.
jdd@linux-us26:/data-ssd480/temp-data/usr/lib/grub2> du -s 14296 .
extracted
And what you intend to prove by showing some random number? I have no idea what RPM you named includes.
did you test the content of the rpm you quote yourself? it's exactly the same as mine... it extract to usr/lib/grub2 (waring, no / in front of the path), the folder is i386efi, have 510 elements and around 13Mb. I prbably don't need all of them, but sorting more than 500 files is a hudge work when you don't know exactly is they are useful or not :-( thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, Feb 25, 2016 at 3:16 PM, jdd
Le 25/02/2016 12:56, Andrei Borzenkov a écrit :
On Thu, Feb 25, 2016 at 2:48 PM, jdd
wrote: found on rpmfind. I think openSUSE have no 32 bit uefi anywhere
Sigh ... http://download.opensuse.org/tumbleweed/repo/oss/suse/i586/grub2-i386-efi-2....
oh... do you have an idea if this is included in any present distro? having
Tumbleweed :)
did you test the content of the rpm you quote yourself? it's exactly the same as mine...
it extract to usr/lib/grub2 (waring, no / in front of the path), the folder is i386efi, have 510 elements and around 13Mb. I prbably don't need all of them, but sorting more than 500 files is a hudge work when you don't know exactly is they are useful or not :-(
I already told you more than once that you should be needing only one file - usr/lib/grub2/i386-efi/grub.efi, at least if all you need is to have bootia32.efi on installation media. cn2:~/grub2-efi # ll usr/lib/grub2/i386-efi/grub.efi -rw-r--r-- 1 root root 693760 Feb 9 18:44 usr/lib/grub2/i386-efi/grub.efi You /may/ want to install other modules in case built into grub.efi are not enough, in which case you only need *.lst and *.mod files. *.module files are the same as *.mod but not stripped (for debugging) and *.img (or *.image, do not remember) are various boot sectors or building blocks to create final grub image. cn2:~/grub2-efi # du -ch usr/lib/grub2/i386-efi/*.mod usr/lib/grub2/i386-efi/*.lst ... 2.3M total cn2:~/grub2-efi # -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 26/02/2016 11:44, Andrei Borzenkov a écrit :
oh... do you have an idea if this is included in any present distro? having
Tumbleweed :)
oh curious. the 32 bits dvd not even boot on uefi system... I will try this on a virtual machine I can switch from legacy/uefi (my real computer have no legacy mode)
I already told you more than once that you should be needing only one file - usr/lib/grub2/i386-efi/grub.efi, at least if all you need is to have bootia32.efi on installation media.
oh... this is what I did and somebody (don't remember who) said I had to install all the modules :-( thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Отправлено с iPhone
26 февр. 2016 г., в 14:50, jdd
написал(а): Le 26/02/2016 11:44, Andrei Borzenkov a écrit :
oh... do you have an idea if this is included in any present distro? having
Tumbleweed :)
oh curious. the 32 bits dvd not even boot on uefi system... I will try this
Yes, DVD does not have loader, but package is available. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 26/02/2016 15:50, Andrei Borzenkov a écrit :
oh curious. the 32 bits dvd not even boot on uefi system... I will try this
Yes, DVD does not have loader, but package is available.
and I (for now) can't see how to use it :-(. As it's loaded as BIOS, yast do not even have the grub-efi option (in bootloader), even after having created the EFI partition and mounted it in /boot/EFI and grub-efi *is* installed I have to find files and copy then by hand... I also try this page: http://www.rodsbooks.com/efi-bootloaders/installation.html#register thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
26.02.2016 18:21, jdd пишет:
Le 26/02/2016 15:50, Andrei Borzenkov a écrit :
oh curious. the 32 bits dvd not even boot on uefi system... I will try this
Yes, DVD does not have loader, but package is available.
and I (for now) can't see how to use it :-(. As it's loaded as BIOS, yast do not even have the grub-efi option (in bootloader), even after having created the EFI partition and mounted it in /boot/EFI
and grub-efi *is* installed I have to find files and copy then by hand...
I am afraid I lost track what we discuss here. First you said that you only need grub2 image for 32 bit EFI to put on installation media. You explicitly said several times that you do not need anything more and are not interested in this bootloader after installation. Now you complain that you cannot use standard tools to configure GRUB2 on 32 bit (EFI) system. Well, I tried to explain you from the very beginning that it is not there and is not exactly straightforward to put together. And in any case you cannot complete installation of GRUB2 for EFI platform while booted in BIOS mode - you cannot update NVRAM because EFI API is not there. So you need some way to boot system into EFI mode before you can actually do it.
I also try this page:
http://www.rodsbooks.com/efi-bootloaders/installation.html#register
You cannot register anything while booted in BIOS mode.
thanks jdd
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 26/02/2016 20:25, Andrei Borzenkov a écrit :
26.02.2016 18:21, jdd пишет:
Le 26/02/2016 15:50, Andrei Borzenkov a écrit :
oh curious. the 32 bits dvd not even boot on uefi system... I will try this
Yes, DVD does not have loader, but package is available.
and I (for now) can't see how to use it :-(. As it's loaded as BIOS, yast do not even have the grub-efi option (in bootloader), even after having created the EFI partition and mounted it in /boot/EFI
and grub-efi *is* installed I have to find files and copy then by hand...
I am afraid I lost track what we discuss here.
seems pretty clear from what is quoted in your own mail and I let it here
First you said that you only need grub2 image for 32 bit EFI to put on installation media
I need to boot an uefi 32 bits system to install any openSUSE. The processor is 64 bits. any solution is ok - it works with debian. . You explicitly said several times that you do not
need anything more and are not interested in this bootloader after installation.
as long as I can boot the 64 bits kernel and inird, which is not presently the case
Now you complain that you cannot use standard tools to configure GRUB2 on 32 bit (EFI) system. Well, I tried to explain you from the very beginning that it is not there and is not exactly straightforward to put together.
If it was straightforward, it would already be done :-)
And in any case you cannot complete installation of GRUB2 for EFI platform while booted in BIOS mode - you cannot update NVRAM because EFI API is not there. So you need some way to boot system into EFI mode before you can actually do it.
exactly.
You cannot register anything while booted in BIOS mode.
why on earth is a package available with no use at all? I guess that the grub2-i386-efi-2.02~beta2-55.1.i586.rpm is there for some use? grub is able to boot kernels with special entries. I try to build one or do start manually with the same options. Debian do automatically, Ubuntu can be tricked to do, I try to do it with openSUSE, but presently without success. right now, I can navigate from the grub console (I start with the debian dvd, 32 bits uefi) to the openSUSE Leap dvd, but the hybrid structure is a bit confusing. I just notice (I forgot that) that the kernel name is simply "linux", not vmlinuz(s). I can do this because I have two usb ports, I use debian on one and Leap on the other. Last test I did shows IO have to figure out how to give the root at install time. See this later, it's too late tomorrow :-) jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 26/02/2016 22:52, jdd a écrit :
I can do this because I have two usb ports, I use debian on one and Leap on the other. Last test I did shows IO have to figure out how to give the root at install time. See this later, it's too late tomorrow :-)
got it. It wanted only "nomodeset" on the kernel line... summary: * get one usb stick with Debian hybrid 32/645 bits * one usb stick with Leap * one usb/ethernet openSUSE compatible device (probably optional) - mine is a Chinese one, said to be ky-88772a, but the official windows driver can't use it, so probably fake, but works like a charm with Leap * and of course an IT Works TW891 computer or similar with 2Gb ram (may work with less, but not tested) plug Debian on left, openSUSE on right usb plug. be prepared to use a vertical display, with keyboard and touchpad on left (special :-)). Your keyboard is QWERTY... if you are french, M is , press DEL key on start to get in uefi, go to "Save" (that is one step left), go two or three steps up to get the lower usb stick and enter to boot it. If it go directly back to uefi, it's the other one. See Debian boot and type "c". See the grub console. from there, ls works and shows all the disks and partitions. Grus console is extremely versatile, learning to use it is worth the (pretty hard) work. the following shows what I had to type, use the tab completion to make sure your config is the same.
linux (hd0,msdos2)/boot/x86_64/loader/linux nomodeset <enter> initrd hd0,msdos2)/boot/x86_64/loader/initrd <enter> boot
and install. to boot you may have to do the same thing. I do not yet have setup the 32 bits grub to boot automatically, so next boot will up windows. jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Le 26/02/2016 22:52, jdd a écrit :
I can do this because I have two usb ports, I use debian on one and Leap on the other. Last test I did shows IO have to figure out how to give the root at install time. See this later, it's too late tomorrow :-)
for whatever reason two threads are now speaking of the same thing, better stop this one and continue the other with a more relevant subject. Followup on "building a 32 bits efi file for leap" or on the bug report: https://bugzilla.opensuse.org/show_bug.cgi?id=963496 thanks jdd -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Andrei Borzenkov
-
jdd