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 11/08/2020, à 14:04

screenart

[RÉSOLU] disque en ecriture seule

Bonjour a tous,

Je n'arrive pas a comprendre pourquoi la partition de mon disque est en lecture seule.
Je suis sous xubuntu 20.04 et voici un boot-info et le fstab

Boot-info

boot-info-4ppa125                                              [20200811_0658]

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

 => Grub2 (v2.00) is installed in the MBR of /dev/sda and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    for (,msdos5)/boot/grub. It also embeds following components:
    
    modules
    ---------------------------------------------------------------------------
    fshelp ext2 part_msdos biosdisk
    ---------------------------------------------------------------------------

sda1: __________________________________________________________________________

    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

sda2: __________________________________________________________________________

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

sda3: __________________________________________________________________________

    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:        

sda4: __________________________________________________________________________

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

sda5: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Ubuntu 20.04.1 LTS
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub 
                       /boot/grub/i386-pc/core.img

sda6: __________________________________________________________________________

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


================================ 3 OS detected =================================

OS#1:   L'OS actuellement utilisé - Ubuntu 20.04.1 LTS CurrentSession on sda5
OS#2:   Windows 10 (boot) on sda1
OS#3:   Windows 10 on sda2

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

CPU architecture: 64-bit
BOOT_IMAGE of the installed session in use:
/boot/vmlinuz-5.4.0-42-generic root=UUID=f38822b6-942c-4de7-a75e-042eccc2fbec ro quiet splash vt.handoff=7


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

This installed-session is not in EFI-mode.
EFI in dmesg.
[    0.014238] ACPI: UEFI 0x000000008CFFC000 000236 (v01 LENOVO CB-01    00000001 ACPI 00040000)
[    0.014241] ACPI: UEFI 0x000000008CFFB000 000042 (v01 LENOVO CB-01    00000001 ACPI 00040000)



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

Disks info: ____________________________________________________________________

sda	: notGPT,	no-BIOSboot,	has-noESP, 	not-usb,	not-mmc, has-os,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sda5	: is-os,	64, apt-get,	grub-pc ,	grub2,	grub-install,	grubenv-ok,	update-grub,	farbios
sda1	: is-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda2	: is-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios
sda3	: 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

Partitions info (2/3): _________________________________________________________

sda5	: isnotESP,	fstab-without-efi,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda1	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	bootmgr,	is-winboot
sda2	: isnotESP,	part-has-no-fstab,	no-nt,	haswinload,	no-recov-nor-hid,	bootmgr,	notwinboot
sda3	: 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,	no-recov-nor-hid,	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
sda2	: 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
sda6	: not-sepboot,	no-boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	std-grub.d,	sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 931.53 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: 0x370ed59c
      Boot      Start        End    Sectors   Size Id Type
sda1  *          2048    1026047    1024000   500M  7 HPFS/NTFS/exFAT
sda2          1026048 1227060291 1226034244 584.6G  7 HPFS/NTFS/exFAT
sda3       1227061248 1228799999    1738752   849M 27 Hidden NTFS WinRE
sda4       1228802046 1953523711  724721666 345.6G  5 Extended
sda5       1228802048 1326456344   97654297  46.6G 83 Linux
sda6       1326458880 1953523711  627064832   299G  b W95 FAT32

parted -lm (filtered): _________________________________________________________

sda:1000GB:scsi:512:4096:msdos:ATA ST1000LM035-1RK1:;
1:1049kB:525MB:524MB:ntfs::boot;
2:525MB:628GB:628GB:ntfs::;
3:628GB:629GB:890MB:ntfs::msftres;
4:629GB:1000GB:371GB:::;
5:629GB:679GB:50.0GB:ext4::;
6:679GB:1000GB:321GB:fat32::;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL PARTLABEL
sda                                                                                             
├─sda1 ntfs     5056AF7C56AF6188                     370ed59c-01                                
├─sda2 ntfs     0A14A74014A72E1F                     370ed59c-02                                
├─sda3 ntfs     EE1EEEFF1EEEBFA7                     370ed59c-03                                
├─sda4                                               370ed59c-04                                
├─sda5 ext4     f38822b6-942c-4de7-a75e-042eccc2fbec 370ed59c-05                                
└─sda6 vfat     5956-DDDD                            370ed59c-06                                

df (filtered): _________________________________________________________________

       Avail Use% Mounted on
sda1     469M   6% /mnt/boot-sav/sda1
sda2   480.4G  18% /mnt/boot-sav/sda2
sda3     390M  54% /mnt/boot-sav/sda3
sda5    24.9G  40% /
sda6   155.1G  48% /media/data

Mount options: __________________________________________________________________

sda1   ro,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda2   ro,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda3   rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096
sda5   rw,relatime,errors=remount-ro
sda6   rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro

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

Ubuntu   f38822b6-942c-4de7-a75e-042eccc2fbec
Ubuntu, avec Linux 5.4.0-42-generic   f38822b6-942c-4de7-a75e-042eccc2fbec
Ubuntu, avec Linux 5.4.0-40-generic   f38822b6-942c-4de7-a75e-042eccc2fbec
Windows 10 (sur sda1)   5056AF7C56AF6188
### END /etc/grub.d/30_os-prober ###
### 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=f38822b6-942c-4de7-a75e-042eccc2fbec /               ext4    errors=remount-ro 0       1

/swapfile                                 none            swap    sw              0       0
UUID=5956-DDDD /media/data               vfat    defaults 	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)
 621,012577057 = 666,807177216  boot/grub/grub.cfg                             2
 618,154586792 = 663,738433536  boot/grub/i386-pc/core.img                     1
 591,886837006 = 635,533651968  boot/vmlinuz                                   1
 614,433712006 = 659,743174656  boot/vmlinuz-5.4.0-40-generic                  1
 591,886837006 = 635,533651968  boot/vmlinuz-5.4.0-42-generic                  1
 614,433712006 = 659,743174656  boot/vmlinuz.old                               1
 589,015846252 = 632,450949120  boot/initrd.img                                7
 588,851783752 = 632,274788352  boot/initrd.img-5.4.0-40-generic               7
 589,015846252 = 632,450949120  boot/initrd.img-5.4.0-42-generic               7
 588,851783752 = 632,274788352  boot/initrd.img.old                            7

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

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


Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub2 of
sda5 into the MBR of sda.
Additional repair would be performed: unhide-bootmenu-10s win-legacy-basic-fix     

Fstab

# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda5 during installation
UUID=f38822b6-942c-4de7-a75e-042eccc2fbec /               ext4    errors=remount-ro 0       1
     
# SWAP
/swapfile                                 none            swap    sw              0       0

# /dev/sda6 data
UUID=5956-DDDD /media/data               vfat    defaults 	0       0

Merci par avance

Dernière modification par screenart (Le 11/08/2020, à 20:11)

Hors ligne

#2 Le 11/08/2020, à 16:32

geole

Re : [RÉSOLU] disque en ecriture seule

Bonjour
Peux-tu préciser la partition qui est en lecture seule?
Peux-expliquer pourquoi tu as choisis de partitionner SDA6 en FAT32  au lieu de NTFS voir EXFAT


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

En ligne

#3 Le 11/08/2020, à 17:05

screenart

Re : [RÉSOLU] disque en ecriture seule

oui c'est la sda6.
EXFAT je ne connais pas, mais je ne suis pas attaché a ce que la partition soit en FAT32, s'il faut la changer il n'y a pas de problème.

Hors ligne

#4 Le 11/08/2020, à 17:06

Zakhar

Re : [RÉSOLU] disque en ecriture seule

Donne le résultat de

mount

"A computer is like air conditioning: it becomes useless when you open windows." (Linus Torvald)

Hors ligne

#5 Le 11/08/2020, à 17:53

screenart

Re : [RÉSOLU] disque en ecriture seule

Le voici

mount

angel@angel-pc:~$ mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,noexec,relatime,size=4002028k,nr_inodes=1000507,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=806040k,mode=755)
/dev/sda5 on / type ext4 (rw,relatime,errors=remount-ro)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=28,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=15093)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
tracefs on /sys/kernel/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
/var/lib/snapd/snaps/core18_1880.snap on /snap/core18/1880 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/core18_1885.snap on /snap/core18/1885 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/snapd_8542.snap on /snap/snapd/8542 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/snapd_8790.snap on /snap/snapd/8790 type squashfs (ro,nodev,relatime,x-gdu.hide)
/var/lib/snapd/snaps/youtube-dl_2846.snap on /snap/youtube-dl/2846 type squashfs (ro,nodev,relatime,x-gdu.hide)
/dev/sda6 on /media/data type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=806036k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)

Hors ligne

#6 Le 11/08/2020, à 18:05

geole

Re : [RÉSOLU] disque en ecriture seule

screenart a écrit :

oui c'est la sda6.
EXFAT je ne connais pas, mais je ne suis pas attaché a ce que la partition soit en FAT32, s'il faut la changer il n'y a pas de problème.

Le FAT32 limite la taille des fichiers à 4 Go
et je pense que les options de montage standards ne sont pas au mieux

/dev/sda6 on /media/data type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)

UUID=5956-DDDD /media/data               vfat    defaults     0       0
Autorise  l'écriture

sudo chmod 777 /media/data

Dernière modification par geole (Le 11/08/2020, à 18:08)


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

En ligne

#7 Le 11/08/2020, à 18:23

screenart

Re : [RÉSOLU] disque en ecriture seule

apres la commande chmod, j'ouvre thunar mais ne peux toujours pas faire de copie.
Mais si j'ouvre thunar en super utilisateur je peux faire une copie.

Hors ligne

#8 Le 11/08/2020, à 19:22

geole

Re : [RÉSOLU] disque en ecriture seule

Essaie aussi

sudo chown $USER:$USER /media/data

Il y a aussi la possibilité de modifier le contenu du fichier /etc/fstab  en modifiant la ligne  pour y mettre des bonnes options  (Il faut retrouver)


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

En ligne

#9 Le 11/08/2020, à 19:31

screenart

Re : [RÉSOLU] disque en ecriture seule

Je veux bien modifier le fstab, j'avais moi meme ajoute la ligne pour monter le sda6, mais je vois pas comment faire mieux.

Voici le resultat du chown

angel@angel-pc:~$ sudo chown $USER:$USER /media/data
[sudo] Mot de passe de angel : 
chown: modification du propriétaire de '/media/data': Opération non permise
angel@angel-pc:~$ 

Hors ligne

#10 Le 11/08/2020, à 19:39

geole

Re : [RÉSOLU] disque en ecriture seule

Dans le FSTAB Remplace

UUID=5956-DDDD /media/data               vfat    defaults     0       0

par

UUID=5956-DDDD /media/data               vfat     uid=1000,gid=46     0       0

en espérant que cela soit bien 1000.
a vérifier par la commande

id $USER

Il faudra démonter et remonter la partition


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

En ligne

#11 Le 11/08/2020, à 19:52

inbox

Re : [RÉSOLU] disque en ecriture seule

Salut,

Si ça ne fonctionne toujours pas, après les modifications proposées par Geole, tu peux supprimer la lignes ajoutée dans le Fstab.

Ceci fait, tu lances gnome-disk et fait le montage via le logiciel.

A+

Dernière modification par inbox (Le 11/08/2020, à 19:55)


Un problème résolu ? Indiquez le en modifiant le titre du sujet.

Hors ligne

#12 Le 11/08/2020, à 20:10

screenart

Re : [RÉSOLU] disque en ecriture seule

Cette fois c'est bon !

Encore une fois merci geole smile

Hors ligne

#13 Le 11/08/2020, à 22:41

Zakhar

Re : [RÉSOLU] disque en ecriture seule

Zakhar a écrit :

Donne le résultat de

mount

Eh oui, donc comme je le supposais en te demandant un "mount", donc ta partition n'était pas du tout en read-only, c'était juste un problème de droits POSIX !


"A computer is like air conditioning: it becomes useless when you open windows." (Linus Torvald)

Hors ligne

#14 Le 12/08/2020, à 05:54

screenart

Re : [RÉSOLU] disque en ecriture seule

Merci Zakhar pour cette précision.

Hors ligne