Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 06/06/2020, à 08:12

jovial

Transfert partitions OEM sur SSD

Bonjour
J'ai installé Ubuntu 20.04 en dual boot sur mon asus X751LD, coté Ubuntu cela marche au poil, coté windows 8.1 il est inutilisable tellement il rame.
J'ai acheté un SSD de 250go Avant d'installer Ubuntu je souhaiterai réinstaller windows oem comme neuf. c'est à dire uniquement transférer les partitions pour une réinstallation comme neuf,
Le contenu du disque actuel:

Périphérique      Début        Fin  Secteurs Taille Type
/dev/sda1          2048     206847    204800   100M Système EFI
/dev/sda2        206848    2050047   1843200   900M Environnement de récupératio
/dev/sda3       2050048    2312191    262144   128M Réservé Microsoft
/dev/sda4       2312192  783718399 781406208 372,6G Données de base Microsoft
/dev/sda5     783718400 1095968048 312249649 148,9G Données de base Microsoft
/dev/sda6    1911560192 1953523711  41963520    20G Environnement de récupératio
/dev/sda7    1095968768 1911560191 815591424 388,9G Système de fichiers Linux

Puis je utiliser Gparted ou me conseillez vous une autre méthode?
Et quelles sont les partitions à transférer?

Pour info le bootinfo:

boot-info-4ppa124                                              [20200606_0733]

============================== Boot Info Summary ===============================

 => No boot loader is installed in the MBR of /dev/mmcblk0.
 => No boot loader is installed in the MBR of /dev/sda.

mmcblk0p1: _____________________________________________________________________

    File system:       vfat
    Boot sector type:  -
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sda1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  Windows 8/2012: FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /efi/Boot/bootx64.efi /efi/Boot/fbx64.efi 
                       /efi/Boot/mmx64.efi /efi/ubuntu/grubx64.efi 
                       /efi/ubuntu/mmx64.efi /efi/ubuntu/shimx64.efi 
                       /efi/ubuntu/grub.cfg /efi/Microsoft/Boot/bootmgfw.efi 
                       /efi/Microsoft/Boot/bootmgr.efi 
                       /efi/Microsoft/Boot/memtest.efi

sda2: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /bootmgr /Boot/BCD

sda3: __________________________________________________________________________

    File system:       
    Boot sector type:  -
    Boot sector info: 

sda4: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  Windows 7
    Boot files:        /bootmgr /Boot/BCD /Windows/System32/winload.exe

sda5: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sda6: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

sda7: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 20.04 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub


================================ 2 OS detected =================================

OS#1:   L'OS actuellement utilisé - Ubuntu 20.04 LTS CurrentSession on sda7
OS#2:   Windows 7 on sda4

============================ Architecture/Host Info ============================

CPU architecture: 64-bit
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.4.0-33-generic root=UUID=f41c0e67-fb5b-4a3e-b4e3-d434bdef012e ro quiet splash vt.handoff=7


===================================== UEFI =====================================

BIOS is EFI-compatible, and is setup in EFI-mode for this installed-session.
SecureBoot disabled.

efibootmgr -v
BootCurrent: 0002
Timeout: 2 seconds
BootOrder: 0002,0000,0003
Boot0000* Windows Boot Manager	HD(1,GPT,1ab0a747-0e61-40a0-adbd-46de6bfdd004,0x800,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...-................
Boot0002* ubuntu	HD(1,GPT,1ab0a747-0e61-40a0-adbd-46de6bfdd004,0x800,0x32000)/File(\EFI\ubuntu\shimx64.efi)
Boot0003* ubuntu	HD(1,GPT,1ab0a747-0e61-40a0-adbd-46de6bfdd004,0x800,0x32000)/File(\EFI\Ubuntu\grubx64.efi)

f7a57b08bc7c1c85417ae4cea582d1d4   sda1/Boot/bootx64.efi
bed45d1c9554cea09924d3814cb7c446   sda1/Boot/fbx64.efi
4487628005555bfd4a4c0a47211e0700   sda1/Boot/mmx64.efi
98bea152fadd26c4e9136916f6cc32a8   sda1/ubuntu/grubx64.efi
4487628005555bfd4a4c0a47211e0700   sda1/ubuntu/mmx64.efi
f7a57b08bc7c1c85417ae4cea582d1d4   sda1/ubuntu/shimx64.efi
958ceee3668f4eff01fb29d03518b49e   sda1/Microsoft/Boot/bootmgfw.efi
2db5c324bad6a5740ca6d5b69d8feaf9   sda1/Microsoft/Boot/bootmgr.efi
61b1a76e8a181112cfca51d4f97c4f1a   sda2/Boot/bootx64.efi


============================= Drive/Partition Info =============================

Disks info: ____________________________________________________________________

sda	: is-GPT,	no-BIOSboot,	has---ESP, 	not-usb,	not-mmc, has-os,	2048 sectors * 512 bytes
mmcblk0	: notGPT,	no-BIOSboot,	has-noESP, 	not-usb,	mmc-disk, no-os,	137 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sda7	: is-os,	64, apt-get,	signed grub-pc grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios
sda1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda2	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda4	: is-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda5	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda6	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
mmcblk0p1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far

Partitions info (2/3): _________________________________________________________

sda7	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda2	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	recovery-or-hidden,	bootmgr,	is-winboot
sda4	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	bootmgr,	is-winboot
sda5	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda6	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	recovery-or-hidden,	no-bmgr,	notwinboot
mmcblk0p1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

sda7	: not-sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda
sda1	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda
sda2	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda
sda4	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda
sda5	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda
sda6	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda
mmcblk0p1	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	mmcblk0

fdisk -l (filtered): ___________________________________________________________

Disk sda: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: E8F94823-B03B-4FF1-90ED-F23BBFE5F821
           Start        End   Sectors   Size Type
sda1        2048     206847    204800   100M EFI System
sda2      206848    2050047   1843200   900M Windows recovery environment
sda3     2050048    2312191    262144   128M Microsoft reserved
sda4     2312192  783718399 781406208 372.6G Microsoft basic data
sda5   783718400 1095968048 312249649 148.9G Microsoft basic data
sda6  1911560192 1953523711  41963520    20G Windows recovery environment
sda7  1095968768 1911560191 815591424 388.9G Linux filesystem
Partition table entries are not in disk order.
Disk mmcblk0: 1.85 GiB, 1966080000 bytes, 3840000 sectors
Disk identifier: 0x00000000
          Boot Start     End Sectors  Size Id Type
mmcblk0p1        137 3839999 3839863  1.9G  6 FAT16

parted -lm (filtered): _________________________________________________________

sda:1000GB:scsi:512:4096:gpt:ATA ST1000LM024 HN-M:;
1:1049kB:106MB:105MB:fat32:EFI system partition:boot, esp;
2:106MB:1050MB:944MB:ntfs::hidden, diag;
3:1050MB:1184MB:134MB::Microsoft reserved partition:msftres;
4:1184MB:401GB:400GB:ntfs:Basic data partition:msftdata;
5:401GB:561GB:160GB:ntfs::msftdata;
7:561GB:979GB:418GB:ext4::;
6:979GB:1000GB:21.5GB:ntfs::hidden, diag;
mmcblk0:1966MB:sd/mmc:512:512:msdos:SD NCard:;
1:70.1kB:1966MB:1966MB:fat16::;

blkid (filtered): ______________________________________________________________

NAME        FSTYPE   UUID                                 PARTUUID                             LABEL    PARTLABEL
sda                                                                                                     
├─sda1      vfat     020F-441E                            1ab0a747-0e61-40a0-adbd-46de6bfdd004 SYSTEM   EFI system partition
├─sda2      ntfs     4AD20DA1D20D927D                     5211d977-3c65-4fb3-968a-33b443183bc4 Recovery Basic data partition
├─sda3                                                    7dac4f10-f6ca-44fe-8a0b-2b851fc7ceb6          Microsoft reserved partition
├─sda4      ntfs     3C7C56E77C569B88                     0427b015-c023-4656-85c8-531f524eec86 OS       Basic data partition
├─sda5      ntfs     D8D23E25D23E07F0                     1d974165-c2b8-42a4-bf98-30f8977b7793 Data     Basic data partition
├─sda6      ntfs     7C2A14E32A149C68                     d0602a06-4a60-4df7-8c54-c555d0cffc79 Restore  Basic data partition
└─sda7      ext4     f41c0e67-fb5b-4a3e-b4e3-d434bdef012e 9fef3b55-7735-405d-b692-9688364679e7          
mmcblk0                                                                                                 
└─mmcblk0p1 vfat     9016-4EF8                                                                          

df (filtered): _________________________________________________________________

                   Avail Use% Mounted on
mmcblk0p1           1.9G   0% /media/jl/9016-4EF8
sda1               64.1M  33% /mnt/boot-sav/sda1
sda2              533.1M  41% /mnt/boot-sav/sda2
sda4              344.1G   8% /mnt/boot-sav/sda4
sda5              148.5G   0% /mnt/boot-sav/sda5
sda6               10.2G  49% /mnt/boot-sav/sda6
sda7              345.3G   4% /

Mount options: __________________________________________________________________

mmcblk0p1         rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro
sda1              rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
sda2              ro,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda4              ro,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda5              ro,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda6              ro,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda7              rw,relatime,errors=remount-ro

===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================

search.fs_uuid f41c0e67-fb5b-4a3e-b4e3-d434bdef012e root hd0,gpt7 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

====================== sda7/boot/grub/grub.cfg (filtered) ======================

Ubuntu   f41c0e67-fb5b-4a3e-b4e3-d434bdef012e
Ubuntu, avec Linux 5.4.0-33-generic   f41c0e67-fb5b-4a3e-b4e3-d434bdef012e
Ubuntu, avec Linux 5.4.0-31-generic   f41c0e67-fb5b-4a3e-b4e3-d434bdef012e
Windows Boot Manager (sur sda1)   osprober-efi-020F-441E
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

========================== sda7/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda7 during installation
UUID=f41c0e67-fb5b-4a3e-b4e3-d434bdef012e /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=020F-441E  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

======================= sda7/etc/default/grub (filtered) =======================

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

==================== sda7: Location of files loaded by Grub ====================

           GiB - GB             File                                 Fragment(s)
 826,733409882 = 887,698239488  boot/grub/grub.cfg                             2
 534,945430756 = 574,393282560  boot/vmlinuz                                   1
 535,109493256 = 574,569443328  boot/vmlinuz-5.4.0-31-generic                  1
 534,945430756 = 574,393282560  boot/vmlinuz-5.4.0-33-generic                  1
 535,109493256 = 574,569443328  boot/vmlinuz.old                               1
 525,527511597 = 564,280868864  boot/initrd.img                                2
 535,480636597 = 574,967955456  boot/initrd.img-5.4.0-31-generic               3
 525,527511597 = 564,280868864  boot/initrd.img-5.4.0-33-generic               2
 535,480636597 = 574,967955456  boot/initrd.img.old                            3

===================== sda7: ls -l /etc/grub.d/ (filtered) ======================

-rwxr-xr-x 1 root root 17123 avril 15 13:31 10_linux
-rwxr-xr-x 1 root root 42128 avril 15 13:31 10_linux_zfs
-rwxr-xr-x 1 root root 12894 avril 15 13:31 20_linux_xen
-rwxr-xr-x 1 root root 12059 avril 15 13:31 30_os-prober
-rwxr-xr-x 1 root root  1424 avril 15 13:31 30_uefi-firmware
-rwxr-xr-x 1 root root   214 avril 15 13:31 40_custom
-rwxr-xr-x 1 root root   216 avril 15 13:31 41_custom


Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub-efi-amd64-signed of
sda7,
using the following options:        sda1/boot/efi,
Additional repair would be performed: unhide-bootmenu-10s  use-standard-efi-file    

Final advice in case of suggested repair: ______________________________________


Please do not forget to make your UEFI firmware boot on the L'OS actuellement utilisé - Ubuntu 20.04 LTS CurrentSession entry (sda1/efi/****/shim****.efi (**** will be updated in the final message) file) !
If your computer reboots directly into Windows, try to change the boot order in your UEFI firmware.

If your UEFI firmware does not allow to change the boot order, change the default boot entry of the Windows bootloader.
For example you can boot into Windows, then type the following command in an admin command prompt:
bcdedit /set {bootmgr} path \EFI\****\shim****.efi (**** will be updated in the final message)

Ubuntu 22.04: Dell Optiplex 7040, I7-6700 16Gio Ssd240, Radeon pro wx4100 & Dell Latitude E7270  i5-6300U 8Gio Ssd240

Hors ligne

#2 Le 06/06/2020, à 18:40

Nuliel

Re : Transfert partitions OEM sur SSD

Bonjour,
Copier les partitions et réinstaller sont deux choses différentes, je te conseille de ne pas copier les partitions mais de réinstaller windows en recréant une clé usb d'installation windows (il y aura juste à vérifier que tout le matos est pris en charge, sinon il faut aller chercher les pilotes sur le site du constructeur).
Je n'avais essayé qu'une fois de copier une install windows en copiant ses partitions et ça avait été un échec cuisant.
La licence est normalement associée à la carte mère, tu ne devrais pas avoir besoin de rentrer de code d'activation. Toute la difficulté est de faire une clé usb windows. Pour ma part je la fais généralement depuis un windows avec rufus, mais il y a moyen de faire une clé windows à partir de Linux (woeusb apparemment)

Dans un premier temps, tu peux télécharger windows 10: https://www.microsoft.com/fr-fr/softwar … ndows10ISO

Dernière modification par Nuliel (Le 06/06/2020, à 18:41)

Hors ligne

#3 Le 06/06/2020, à 21:32

bluc

Re : Transfert partitions OEM sur SSD

Bonjour

Copier une partition Linux avec gparted ça fonctionne ,avec Windows il faut le support d'installation pour réparer le démarrage

Dernièrement j'ai utilisé la commande dd pour cloner Windows et j'ai copier/coller mon linux avec gparted depuis un live
ensuite depuis ce live j'ai passé les commandes pour réinstaller grub et tout fonctionne

Dans ton cas la réinstallation de Windows comme te conseille Nuliel est la meilleur chose a faire s'il rame anormalement
et si ton Ubuntu est une installation fraîche le réinstaller également

Dernière modification par bluc (Le 06/06/2020, à 21:45)


Clevo :  Ubuntu 23.10   ❖  Xubuntu 22.10  ❖  Kubuntu 23.10   
         avec partition data commune       Une fraction de seconde                    Multiboot

Hors ligne

#4 Le 06/06/2020, à 21:53

geole

Re : Transfert partitions OEM sur SSD

Bonjour.
avec gparted
Tu peux recopier SDA1 qui est la partition de BOOT.
ainsi que SDA4 qui est le C:
Mais tu as intérêt a diminuer sa taille

Une idée: Utilise partclone pour sauver dans un fichier et restaurer dans une partition que tu auras fabriquée  à la taille qui te convient.

Dernière modification par geole (Le 07/06/2020, à 00:22)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#5 Le 07/06/2020, à 21:45

jovial

Re : Transfert partitions OEM sur SSD

Bonour
Merci beaucoup pour vos réponses, installer windows 10 me conviendrai bien, juste comme le pc est livré à l'origine avec  windows 8.1 est ce que la clé (à priori dans la carte mère)va fonctionner?


Ubuntu 22.04: Dell Optiplex 7040, I7-6700 16Gio Ssd240, Radeon pro wx4100 & Dell Latitude E7270  i5-6300U 8Gio Ssd240

Hors ligne

#6 Le 07/06/2020, à 22:51

bluc

Re : Transfert partitions OEM sur SSD

Tu veux dire la licence ?

j'ai installé un W10 sur le pc de mon fils dont le dd a lâché , je n'ai pas eu de probleme avec la licence , mais de ça il y a 3 ans , je ne sais pas maintenant


Clevo :  Ubuntu 23.10   ❖  Xubuntu 22.10  ❖  Kubuntu 23.10   
         avec partition data commune       Une fraction de seconde                    Multiboot

Hors ligne

#7 Le 07/06/2020, à 22:58

geole

Re : Transfert partitions OEM sur SSD

jovial a écrit :

Bonour
Merci beaucoup pour vos réponses, installer windows 10 me conviendrai bien, juste comme le pc est livré à l'origine avec  windows 8.1 est ce que la clé (à priori dans la carte mère)va fonctionner?

Bonsoir.
J'ai installé windows10 dans un ordinateur acheté avec windows8.0  il a récupéré la clé logicielle .


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne