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 13/04/2021, à 10:30

Smith5

[Résolu] Windows ne démarre plus suite essai parted depuis Ubuntu

Bonjour à tous,

Nouveau sur ce forum et novice en Ubuntu, je viens d'installer la version 20.04 en dual boot en parallèle de Windows 10.
Suite au manque de place sur ma partition Ubuntu, j'ai souhaité redistribuer la mémoire à l'aide de parted. J'ai effectivement de l'espace disponible sur Windows 10.

J'ai donc réduit ma partition Windows (sda3) avec resizepart et tenté d'agrandir celle d'Ubuntu (sda5) avec la même méthode.
En plus de ne pas avoir réussi à élargir la partition Ubuntu du côté "start" (gauche?), Windows ne démarre plus.

Je pensais pourtant ne pas écraser de données mais étant novice je suis sûrement à côté de la plaque.

Sur d'autres sujets du forum il est conseillé de partager un boot-info, que je viens d'éditer : https://paste.ubuntu.com/p/5PCG4g85Cx/
Si quelqu'un peut m'aider à résoudre ce problème ce serait super.

Merci pour la lecture

Dernière modification par Smith5 (Le 13/04/2021, à 11:45)

Hors ligne

#2 Le 13/04/2021, à 10:34

xubu1957

Re : [Résolu] Windows ne démarre plus suite essai parted depuis Ubuntu

Bonjour,

Collage du boot-info, pour les spécialistes :

boot-info-4ppa130                                              [20210413_1231]

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

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

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 
                       /efi/MSI/Boot/bootmgfw.efi /efi/MSI/Boot/bootmgr.efi 
                       /efi/MSI/Boot/memtest.efi

sda2: __________________________________________________________________________

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

sda3: __________________________________________________________________________

    File system:       ntfs
    Boot sector type:  Windows 8/2012: NTFS
    Boot sector info:  According to the info in the boot sector, sda3 has 
                       462050810 sectors, but according to the info from 
                       fdisk, it has 423359133 sectors.
    Mounting failed:   Failed to read last sector (462050809): Argument invalide
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
   or it was not setup correctly (e.g. by not using mdadm --build ...),
   or a wrong device is tried to be mounted,
   or the partition table is corrupt (partition is smaller than NTFS),
   or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/sda3': Argument invalide
The device '/dev/sda3' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
Failed to read last sector (462050809): Argument invalide
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
   or it was not setup correctly (e.g. by not using mdadm --build ...),
   or a wrong device is tried to be mounted,
   or the partition table is corrupt (partition is smaller than NTFS),
   or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/sda3': Argument invalide
The device '/dev/sda3' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

sda4: __________________________________________________________________________

    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:        

sda5: __________________________________________________________________________

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

sdb1: __________________________________________________________________________

    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:        

sdb2: __________________________________________________________________________

    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:        


================================ 1 OS detected =================================

OS#1:   L'OS actuellement utilisé - Ubuntu 20.04.2 LTS CurrentSession on sda5

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

CPU architecture: 64-bit
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.8.0-48-generic root=UUID=d60183d3-afbd-489b-9696-23a708c776ad 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: 0004
Timeout: 2 seconds
BootOrder: 0004,0000,0005,0006
Boot0000* Windows Boot Manager	HD(1,GPT,31d62f0e-65e7-4a48-b0f1-076cc3f9f7b0,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.}...8................
Boot0004* ubuntu	HD(1,GPT,31d62f0e-65e7-4a48-b0f1-076cc3f9f7b0,0x800,0x32000)/File(\EFI\UBUNTU\SHIMX64.EFI)
Boot0005* UEFI: IP4 Intel(R) Ethernet Connection (H) I219-V	PciRoot(0x0)/Pci(0x1f,0x6)/MAC(4ccc6aaea84b,0)/IPv4(0.0.0.00.0.0.0,0,0)..BO
Boot0006* UEFI: IP6 Intel(R) Ethernet Connection (H) I219-V	PciRoot(0x0)/Pci(0x1f,0x6)/MAC(4ccc6aaea84b,0)/IPv6([::]:<->[::]:,0,0)..BO

78415fb8fb9b909f8029858113f1335f   sda1/Boot/bootx64.efi
2895d47544fd587b26c7e29be1295c27   sda1/Boot/fbx64.efi
dc3c47be2f78a78e5e57d097ae6c5c84   sda1/Boot/mmx64.efi
957dc7e5f72c1d7393bf7850df5db2db   sda1/ubuntu/grubx64.efi
dc3c47be2f78a78e5e57d097ae6c5c84   sda1/ubuntu/mmx64.efi
78415fb8fb9b909f8029858113f1335f   sda1/ubuntu/shimx64.efi
401b8301fc0b55344e4456e9ccb987b8   sda1/Microsoft/Boot/bootmgfw.efi
3dcd198d5ad5d2f51814dcf0d5005d59   sda1/Microsoft/Boot/bootmgr.efi
53871ef5ab26467b1e6bce759110b24e   sda1/MSI/Boot/bootmgfw.efi
ccd5436205ec41f8edc3b488c9291b52   sda1/MSI/Boot/bootmgr.efi


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

Disks info: ____________________________________________________________________

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

Partitions info (1/3): _________________________________________________________

sda5	: 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
sda3	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda4	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sdb1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sdb2	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios

Partitions info (2/3): _________________________________________________________

sda5	: 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
sda3	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda4	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	recovery-or-hidden,	no-bmgr,	notwinboot
sdb1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sdb2	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	recovery-or-hidden,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

sda5	: 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
sda3	: 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
sdb1	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sdb
sdb2	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sdb

fdisk -l (filtered): ___________________________________________________________

Disk sda: 238.49 GiB, 256060514304 bytes, 500118192 sectors
Disk identifier: 5C4AE84B-E2FB-4367-9BE8-9051BFBA4A69
          Start       End   Sectors   Size Type
sda1       2048    206847    204800   100M EFI System
sda2     206848    468991    262144   128M Microsoft reserved
sda3     468992 423828125 423359134 201.9G Microsoft basic data
sda4  498098176 500117503   2019328   986M Windows recovery environment
sda5  462520320 498098175  35577856    17G Linux filesystem
Partition table entries are not in disk order.
Disk sdb: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: F33DA0FD-CFDB-492F-9896-FCF5BD06FC8C
           Start        End    Sectors   Size Type
sdb1        2048 1917155327 1917153280 914.2G Microsoft basic data
sdb2  1917157376 1953523711   36366336  17.3G Windows recovery environment

parted -lm (filtered): _________________________________________________________

sda:256GB:scsi:512:512:gpt:ATA KINGSTON RBU-SNS:;
1:1049kB:106MB:105MB:fat32:EFI system partition:boot, esp;
2:106MB:240MB:134MB::Microsoft reserved partition:msftres;
3:240MB:217GB:217GB:ntfs:Basic data partition:msftdata;
5:237GB:255GB:18.2GB:ext4::;
4:255GB:256GB:1034MB:ntfs::hidden, diag;
sdb:1000GB:scsi:512:4096:gpt:ATA HGST HTS721010A9:;
1:1049kB:982GB:982GB:ntfs:Basic data partition:msftdata;
2:982GB:1000GB:18.6GB:ntfs:Basic data partition:hidden, diag;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL    PARTLABEL
sda                                                                                                
├─sda1 vfat     4CC4-13BB                            31d62f0e-65e7-4a48-b0f1-076cc3f9f7b0 SYSTEM   EFI system partition
├─sda2                                               5f9842e1-c5fe-476d-b21c-a500890a9f53          Microsoft reserved partition
├─sda3 ntfs     B6DCC4B2DCC46E65                     cd938109-adc9-4e13-b1f0-3a1fffa4b98c Windows  Basic data partition
├─sda4 ntfs     E0A0AE82A0AE5F32                     ce914378-6695-4594-92bd-b7f79a8fa079          
└─sda5 ext4     d60183d3-afbd-489b-9696-23a708c776ad 2fb56ead-8002-454d-85fa-59a70bfde0d6          
sdb                                                                                                
├─sdb1 ntfs     E6880C2B880BF8B7                     012559ae-0ad8-4433-8d1f-3f44497404ab Data     Basic data partition
└─sdb2 ntfs     7EC2CCECC2CCAA2B                     2a4d29bd-5801-4ef0-ae8d-f0b03b5331a7 BIOS_RVY Basic data partition

df (filtered): _________________________________________________________________

                   Avail Use% Mounted on
sda1               38.5M  60% /mnt/boot-sav/sda1
sda4              423.5M  57% /mnt/boot-sav/sda4
sda5                3.2G  76% /
sdb1              913.1G   0% /media/is153977/Data
sdb2              769.4M  96% /mnt/boot-sav/sdb2

Mount options: __________________________________________________________________

sda1              rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
sda4              rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda5              rw,relatime,errors=remount-ro
sdb1              rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096
sdb2              rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096

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

search.fs_uuid d60183d3-afbd-489b-9696-23a708c776ad root hd0,gpt5 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

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

Ubuntu   d60183d3-afbd-489b-9696-23a708c776ad
Ubuntu, avec Linux 5.8.0-48-generic   d60183d3-afbd-489b-9696-23a708c776ad
Ubuntu, avec Linux 5.8.0-43-generic   d60183d3-afbd-489b-9696-23a708c776ad
Windows Boot Manager (sur sda1)   osprober-efi-4CC4-13BB
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

========================== sda5/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda5 during installation
UUID=d60183d3-afbd-489b-9696-23a708c776ad /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=4CC4-13BB  /boot/efi       vfat    umask=0077      0       1
/swapfile                                 none            swap    sw              0       0

======================= sda5/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=""

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

           GiB - GB             File                                 Fragment(s)
 231,798065186 = 248,891277312  boot/grub/grub.cfg                             2
 230,290355682 = 247,272386560  boot/vmlinuz                                   1
 224,453121185 = 241,004703744  boot/vmlinuz-5.8.0-43-generic                  2
 230,290355682 = 247,272386560  boot/vmlinuz-5.8.0-48-generic                  1
 224,453121185 = 241,004703744  boot/vmlinuz.old                               2
 233,400817871 = 250,612219904  boot/initrd.img                                1
 232,636608124 = 249,791655936  boot/initrd.img-5.8.0-43-generic               3
 233,400817871 = 250,612219904  boot/initrd.img-5.8.0-48-generic               1
 232,636608124 = 249,791655936  boot/initrd.img.old                            3

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

-rwxr-xr-x 1 root root 17622 janv. 13 15:12 10_linux
-rwxr-xr-x 1 root root 42359 janv. 13 15:12 10_linux_zfs
-rwxr-xr-x 1 root root 12894 janv. 13 15:12 20_linux_xen
-rwxr-xr-x 1 root root 12059 janv. 13 15:12 30_os-prober
-rwxr-xr-x 1 root root  1424 janv. 13 15:12 30_uefi-firmware
-rwxr-xr-x 1 root root   214 janv. 13 15:12 40_custom
-rwxr-xr-x 1 root root   216 janv. 13 15:12 41_custom


======================== Unknown MBRs/Boot Sectors/etc =========================


/dev/sdb2: unknown GPT attributes
8000000000000001

Error code 12
mount -r /dev/sda3 /mnt/boot-sav/sda3

mount -r /dev/sda3 : Error code 12
Error code 12
mount -r /dev/sda3 /mnt/boot-sav/sda3

mount -r /dev/sda3 : Error code 12
Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub-efi-amd64-signed of
sda5,
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.2 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)

Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Résolu] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

En ligne

#3 Le 13/04/2021, à 11:02

Smith5

Re : [Résolu] Windows ne démarre plus suite essai parted depuis Ubuntu

Merci Xubu pour le collage.

J'ai pensé redonner sa taille originale à la partition Windows.
Peut être que les fichiers n'ont pas été réellement écrasés et que cela résoudrait mon problème ?

Hors ligne

#4 Le 13/04/2021, à 11:07

iznobe

Re : [Résolu] Windows ne démarre plus suite essai parted depuis Ubuntu

Bonjour ,
lorsqu ' on veut redimensionner la partition windows , il faut avec windows , nettoyer les fichiers inutiles ( nettoyage de disque ) , puis defragmenter , et redimesionner depuis windows , ensuite il faut repasser sur ubuntu pour agrandir avec gparted la partition racine ubuntu .

Pour ce qui est de recuperer , je ne sais pas faire desolé .


retour utilisable de commande
MSI Z490A-pro , i7 10700 , 32 GB RAM .

Hors ligne

#5 Le 13/04/2021, à 11:13

Smith5

Re : [Résolu] Windows ne démarre plus suite essai parted depuis Ubuntu

Bonjour Iznobe,
Merci pour la réponse. J'ai effectivement nettoyé et défragmenté depuis Windows mais j'ai redimensionné depuis Ubuntu. Mon erreur vient donc de là. sad

Pour les autres, est-ce que je peux redonner l'espace non-alloué à Windows ?
Dois-je tenter un boot-repair ?

Hors ligne

#6 Le 13/04/2021, à 11:45

Smith5

Re : [Résolu] Windows ne démarre plus suite essai parted depuis Ubuntu

Si toutefois quelqu'un se retrouve dans la même situation, je viens de tenter de rendre à Windows son espace et cela a bien fonctionné.

Plus précisément, j'ai relancé une commande resizepart de la partition Windows (toujours depuis Ubuntu) et j'ai entré la valeur de fin de partition précédente (à l'origine 237GB, j'avais ensuite changé pour 217GB donc de retour à 237GB).
J'ai ensuite redémarré pour tenter de lancer Windows : il y a eu un diagnostique automatique, une réparation automatique puis une demande de redémarrage et cela fonctionne à nouveau parfaitement.

On apprends de nos erreurs ...

Dernière modification par Smith5 (Le 13/04/2021, à 11:48)

Hors ligne