Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RÉSOLU] Partitions invisibles sur supports amovibles
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Lumpy Gravy
n00b
n00b


Joined: 28 Dec 2016
Posts: 41
Location: France

PostPosted: Fri Jun 24, 2022 5:12 pm    Post subject: [RÉSOLU] Partitions invisibles sur supports amovibles Reply with quote

Bonjour.

J'ai un souci, lorsque je connecte une clé USB ou une carte SD à mon portable, elle est bien détectée mais ses partitions n'apparraissent pas avec lsblk:
Code:
$ lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda      8:0    0 223,6G  0 disk
├─sda1   8:1    0     2M  0 part
├─sda2   8:2    0   256M  0 part /boot
├─sda3   8:3    0     2G  0 part [SWAP]
└─sda4   8:4    0 221,3G  0 part /
sdb      8:16   1  60,1G  0 disk


ni blkid:
Code:
# blkid
/dev/sdb: PTTYPE="dos"
/dev/sda4: UUID="408fc89f-9a9d-4820-ba09-e017e4fd67cd" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="rootfs" PARTUUID="2a018ce9-ace8-45fa-9445-d49c27c2528e"
/dev/sda2: UUID="377A-1858" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="boot" PARTUUID="12d5cc87-c445-4fdb-b5d0-fb05eea9f09f"
/dev/sda3: UUID="b3e48241-f359-47bd-b66b-923f27a49369" TYPE="swap" PARTLABEL="swap" PARTUUID="5af6a597-de19-4ea9-8844-11782c614be8"
/dev/sda1: UUID="f91dd4e9-9275-48b8-b308-5cbf8a084fca" BLOCK_SIZE="4096" TYPE="ext4" PARTLABEL="grub" PARTUUID="6845aa59-029f-44c6-b689-e21a3615aaa2"


Mais je peux l'afficher avec fdisk:
Code:
# fdisk -l /dev/sdb
Disque /dev/sdb : 60,06 GiB, 64490569728 octets, 125958144 secteurs
Modèle de disque : Card  Reader
Unités : secteur de 1 × 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Type d'étiquette de disque : dos
Identifiant de disque : 0x00000000

Périphérique Amorçage Début       Fin  Secteurs Taille Id Type
/dev/sdb1             32768 125958143 125925376    60G  7 HPFS/NTFS/exFAT


Voici ce que raconte dmesg à l'insertion de la clé:
Code:
[ 1528.222172] usb 1-4: new high-speed USB device number 6 using xhci_hcd
[ 1528.365215] usb 1-4: New USB device found, idVendor=058f, idProduct=6366, bcdDevice= 1.00
[ 1528.365233] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1528.365240] usb 1-4: Product: Flash Card Reader/Writer
[ 1528.365245] usb 1-4: Manufacturer: Generic
[ 1528.365250] usb 1-4: SerialNumber: 058F63666485
[ 1528.392354] usb-storage 1-4:1.0: USB Mass Storage device detected
[ 1528.392821] scsi host2: usb-storage 1-4:1.0
[ 1528.393071] usbcore: registered new interface driver usb-storage
[ 1528.400184] usbcore: registered new interface driver uas
[ 1529.406784] scsi 2:0:0:0: Direct-Access     Multiple Card  Reader     1.00 PQ: 0 ANSI: 4
[ 1529.965233] sd 2:0:0:0: [sdb] 125958144 512-byte logical blocks: (64.5 GB/60.1 GiB)
[ 1529.967486] sd 2:0:0:0: [sdb] Write Protect is off
[ 1529.967501] sd 2:0:0:0: [sdb] Mode Sense: 23 00 00 00
[ 1529.969882] sd 2:0:0:0: [sdb] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA
[ 1529.982462] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[ 1759.496560] usb 1-4: USB disconnect, device number 6


Merci d'avance pour votre aide.


Last edited by Lumpy Gravy on Thu Jul 07, 2022 7:04 am; edited 1 time in total
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1897
Location: 127.0.0.1

PostPosted: Fri Jun 24, 2022 7:08 pm    Post subject: Reply with quote

Salut,

Peux-tu uploader quelque part ta configuration kernel, et donner un lien ?
Quel kernel utilises-tu ? Configuré/compilé main, ou kernel générique (gentoo-kernel-bin/genkernel) ?
Back to top
View user's profile Send private message
Lumpy Gravy
n00b
n00b


Joined: 28 Dec 2016
Posts: 41
Location: France

PostPosted: Tue Jul 05, 2022 3:45 pm    Post subject: Reply with quote

Oups, désolé, je pensais que je suivais ce fil et que j'aurai des alertes.
Par contre c'est mon portable du boulot que je n'ai pas sous la main, j'up ma config dés que possible.
Concernant le noyau, il s'agit des ' gentoo-sources' que j'ai compilées à la main.
Back to top
View user's profile Send private message
Lumpy Gravy
n00b
n00b


Joined: 28 Dec 2016
Posts: 41
Location: France

PostPosted: Wed Jul 06, 2022 6:09 am    Post subject: Reply with quote

Bonjour,
Voici mon .config:
https://pastebin.com/8PcFgiT5
Back to top
View user's profile Send private message
netfab
Veteran
Veteran


Joined: 03 Mar 2005
Posts: 1897
Location: 127.0.0.1

PostPosted: Wed Jul 06, 2022 8:12 am    Post subject: Reply with quote

C'est ce que je suspectais :

La partition de ta clef sdb est de type DOS :
Code:

# blkid
/dev/sdb: PTTYPE="dos"

# fdisk -l /dev/sdb
...
Type d'étiquette de disque : dos


Mais ton kernel n'a pas le support pour ce type de partition :
Quote:

#
# Partition Types
#
CONFIG_PARTITION_ADVANCED=y
# CONFIG_ACORN_PARTITION is not set
# CONFIG_AIX_PARTITION is not set
# CONFIG_OSF_PARTITION is not set
# CONFIG_AMIGA_PARTITION is not set
# CONFIG_ATARI_PARTITION is not set
# CONFIG_MAC_PARTITION is not set
# CONFIG_MSDOS_PARTITION is not set

Recompile ton kernel avec cette option activée, cela devrait ensuite fonctionner.
Back to top
View user's profile Send private message
Lumpy Gravy
n00b
n00b


Joined: 28 Dec 2016
Posts: 41
Location: France

PostPosted: Thu Jul 07, 2022 7:03 am    Post subject: Reply with quote

Ça fonctionne, merci beaucoup!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum