Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 30

Thread: how to reboot in another os just once?

  1. #11

    Default Re: how to reboot in another os just once?

    The outputs are:

    Code:
    mount | grep boot
    /dev/mapper/system-root on /boot/grub2/i386-pc type btrfs (rw,relatime,space_cache,subvolid=266,subvol=/@/boot/grub2/i386-pc)
    /dev/mapper/system-root on /boot/grub2/x86_64-efi type btrfs (rw,relatime,space_cache,subvolid=265,subvol=/@/boot/grub2/x86_64-efi)
    Code:
    ls /boot/grub2/
    device.map  fonts  grub.cfg  grubenv  i386-pc  locale  themes  x86_64-efi
    Code:
    fdisk -l /dev/sda
    Disco /dev/sda: 298,1 GiB, 320072933376 bytes, 625142448 setores
    Modelo de disco: WDC WD3200BEKT-6
    Unidades: setor de 1 * 512 = 512 bytes
    Tamanho de setor (lógico/físico): 512 bytes / 512 bytes
    Tamanho E/S (mínimo/ótimo): 512 bytes / 512 bytes
    Tipo de rótulo do disco: dos
    Identificador do disco: 0xc9415531
    
    Dispositivo Inicializar    Início       Fim   Setores Tamanho Id Tipo
    /dev/sda1   *                2048   1026047   1024000    500M  7 HPFS/NTFS/exFAT
    /dev/sda2                 1026048 508813311 507787264  242,1G  7 HPFS/NTFS/exFAT
    /dev/sda3               508813312 566771711  57958400   27,7G 83 Linux
    /dev/sda4               566771712 625142447  58370736   27,9G 8e Linux LVM
    I guess the sda1 is the initializer/bootable one and I suspect sda is the whole disk as it seems windows is on sda2.

  2. #12
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,513
    Blog Entries
    15

    Default Re: how to reboot in another os just once?

    Quote Originally Posted by aperali View Post
    The outputs are:

    Code:
    mount | grep boot
    /dev/mapper/system-root on /boot/grub2/i386-pc type btrfs (rw,relatime,space_cache,subvolid=266,subvol=/@/boot/grub2/i386-pc)
    /dev/mapper/system-root on /boot/grub2/x86_64-efi type btrfs (rw,relatime,space_cache,subvolid=265,subvol=/@/boot/grub2/x86_64-efi)
    Code:
    ls /boot/grub2/
    device.map  fonts  grub.cfg  grubenv  i386-pc  locale  themes  x86_64-efi
    Code:
    fdisk -l /dev/sda
    Disco /dev/sda: 298,1 GiB, 320072933376 bytes, 625142448 setores
    Modelo de disco: WDC WD3200BEKT-6
    Unidades: setor de 1 * 512 = 512 bytes
    Tamanho de setor (lógico/físico): 512 bytes / 512 bytes
    Tamanho E/S (mínimo/ótimo): 512 bytes / 512 bytes
    Tipo de rótulo do disco: dos
    Identificador do disco: 0xc9415531
    
    Dispositivo Inicializar    Início       Fim   Setores Tamanho Id Tipo
    /dev/sda1   *                2048   1026047   1024000    500M  7 HPFS/NTFS/exFAT
    /dev/sda2                 1026048 508813311 507787264  242,1G  7 HPFS/NTFS/exFAT
    /dev/sda3               508813312 566771711  57958400   27,7G 83 Linux
    /dev/sda4               566771712 625142447  58370736   27,9G 8e Linux LVM
    I guess the sda1 is the initializer/bootable one and I suspect sda is the whole disk as it seems windows is on sda2.
    Hi
    Yes it has the boot flag set (The *)...

    What would you like to do going forward?

    Maybe user nrickert has further advice...
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #13
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,363
    Blog Entries
    3

    Default Re: how to reboot in another os just once?

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Maybe user nrickert has further advice...
    No, I really don't. There are limitations to dual-boot/multi-boot. I manage to live with them.
    openSUSE Leap 15.1; KDE Plasma 5;

  4. #14
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,650

    Default Re: how to reboot in another os just once?

    Well if you use ext4 file system rather then BTRFS (downside no snapshots) grub will be able to write. Or you could create a small ~500 meg partition and set /boot to as the mount and formatted ext4. let the main root partition be BTRFS. But the downside of this is that grub would not be able to boot to a snapshot since the BTRFS is on a different partition. So it looks like you won't be able to do this unless you toss BTRFS and live without snapshots. I figure the problem is that grub runs before the kernel and thus does not have access to the BTRFS code and porting said code into the grub may not be possible or break other stuff. All sorts of cache 22's

  5. #15

    Default Re: how to reboot in another os just once?

    Quote Originally Posted by gogalthorp View Post
    Well if you use ext4 file system rather then BTRFS (downside no snapshots) grub will be able to write. Or you could create a small ~500 meg partition and set /boot to as the mount and formatted ext4. let the main root partition be BTRFS. But the downside of this is that grub would not be able to boot to a snapshot since the BTRFS is on a different partition. So it looks like you won't be able to do this unless you toss BTRFS and live without snapshots. I figure the problem is that grub runs before the kernel and thus does not have access to the BTRFS code and porting said code into the grub may not be possible or break other stuff. All sorts of cache 22's
    I think I can live without snaps, it'll even save me some Mib. Could you point me out to a step by step process of changing the grub2 stuff and /boot to the formatted ext4 sda1 partition, considering the need to boot in win10 and ubuntu? I'm just a beginner with very few knowledge in linux. I dont have much to lose btw but I dont wanna lose w10

  6. #16

    Default Re: how to reboot in another os just once?

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Yes it has the boot flag set (The *)...

    What would you like to do going forward?

    Maybe user nrickert has further advice...
    One thing that I cant understand is why bootloader change its behavior when I reboot using grub2-once 5 or grub2-reboot 5 (booting straight into w10 without asking what os to boot) but it works well when using grub2-set-default 5 asking what to boot!

  7. #17
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,650

    Default Re: how to reboot in another os just once?

    It will require reinstall and going to expert mode and setting the file system ext4 and format for each partition. Be sure that the installer is pointing to the old partitions since doing a new install it will think it needs to create new partition. Note you can keep any old home partition which is probably formatted as XFS if you want just mount it as /home and Not to format

    If you have any detail question ask

    That's the purpose of grub2-once as long as it is active it will go to the designated OS. It should be deactivated after that boot but grub does not know BTRFS and can't properly deactivate it

  8. #18

    Default Re: how to reboot in another os just once?

    Quote Originally Posted by gogalthorp View Post
    It will require reinstall and going to expert mode and setting the file system ext4 and format for each partition. Be sure that the installer is pointing to the old partitions since doing a new install it will think it needs to create new partition. Note you can keep any old home partition which is probably formatted as XFS if you want just mount it as /home and Not to format
    Thank you,

    Do I need to reinstall all tumbleweed or is there a way to reinstall only the /boot part itself?
    If need to reinstall do I lose all settings already done in the actual installation e.g. themes, kontact, kde, etc?
    If the settings are stored in home partition (I dont know), how can I mount it? before or during the reinstall?
    will i lose all the packages, gpg keys etc?

  9. #19
    Join Date
    Nov 2009
    Location
    West Virginia Sector 13
    Posts
    15,650

    Default Re: how to reboot in another os just once?

    No you can't just do boot (at least not easily). All personal setting are in your home you do lose system settings back to the defaults but most of those are in /etc so backing that directory should save them.So just don't format your home (assuming home is on a separate partition and not on root) and mount it as /home.

    I see you have a LVM defined but also a regular Linux so not certain of exactly how things are setup. You do have to take care and explain when you use exotic configurations.

  10. #20

    Default Re: how to reboot in another os just once?

    Quote Originally Posted by gogalthorp View Post
    No you can't just do boot (at least not easily). All personal setting are in your home you do lose system settings back to the defaults but most of those are in /etc so backing that directory should save them.So just don't format your home (assuming home is on a separate partition and not on root) and mount it as /home.
    hmmm my home is not a separate partition, it is inside the root/home. Can I still mount it outside the root?


    Quote Originally Posted by gogalthorp View Post
    I see you have a LVM defined but also a regular Linux so not certain of exactly how things are setup. You do have to take care and explain when you use exotic configurations.
    the other Linux is an Ubuntu partition i'm testing.

    Can I move /home and /etc to Ubuntu partition, make the entire reinstall process and move them back to suse? is it just a simple copy of folders process? what about the dependencies of the packages?

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •