Supprimer fsck lors d'un montage libpam_mount

bonjour / bonsoir / bon matin

comme dit dans l’article pour les nouveaux entrants…

# lsb-release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 12.10
Release:	12.10
Codename:	quantal

# uname -a
Linux patrick-win7 3.5.0-18-generic #29-Ubuntu SMP Fri Oct 19 10:27:31 UTC 2012 i686 athlon i686 GNU/Linux
# lspci
00:00.0 Host bridge: Advanced Micro Devices [AMD] RS780 Host Bridge
00:01.0 PCI bridge: Advanced Micro Devices [AMD] RS780/RS880 PCI to PCI bridge (int gfx)
00:0a.0 PCI bridge: Advanced Micro Devices [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 5)
00:11.0 SATA controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode]
00:12.0 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.1 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0 USB OHCI1 Controller
00:12.2 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.1 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0 USB OHCI1 Controller
00:13.2 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: Advanced Micro Devices [AMD] nee ATI SBx00 SMBus Controller (rev 3c)
00:14.2 Audio device: Advanced Micro Devices [AMD] nee ATI SBx00 Azalia (Intel HDA)
00:14.3 ISA bridge: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 LPC host controller
00:14.4 PCI bridge: Advanced Micro Devices [AMD] nee ATI SBx00 PCI to PCI Bridge
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Link Control
01:05.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI RS780L [Radeon HD 3000]
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 05)
# lsusb
Bus 002 Device 004: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port Hub
Bus 003 Device 002: ID 045e:00f7 Microsoft Corp. LifeCam VX-1000
Bus 003 Device 003: ID 0463:ffff MGE UPS Systems UPS
Bus 004 Device 002: ID 046d:c517 Logitech, Inc. LX710 Cordless Desktop Laser
Bus 005 Device 002: ID 04d9:1603 Holtek Semiconductor, Inc. Keyboard
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 005: ID 1390:5454 TOMTOM B.V. 
Bus 002 Device 006: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port Hub
Bus 002 Device 011: ID 059b:0277 Iomega Corp. 
Bus 002 Device 008: ID 04a9:220d Canon, Inc. CanoScan N670U/N676U/LiDE 20
# dmidecode
# dmidecode 2.11
SMBIOS 2.6 present.
21 structures occupying 1076 bytes.
Table at 0x000FCA40.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
	Vendor: American Megatrends Inc.
	Version: 6.01
	Release Date: 04/23/2010
	Address: 0xF0000
	Runtime Size: 64 kB
	ROM Size: 1024 kB
	Characteristics:
		ISA is supported
		PCI is supported
		PNP is supported
		BIOS is upgradeable
		BIOS shadowing is allowed
		ESCD support is available
		Boot from CD is supported
		Selectable boot is supported
		BIOS ROM is socketed
		EDD is supported
		5.25"/1.2 MB floppy services are supported (int 13h)
		3.5"/720 kB floppy services are supported (int 13h)
		3.5"/2.88 MB floppy services are supported (int 13h)
		Print screen service is supported (int 5h)
		8042 keyboard services are supported (int 9h)
		Serial services are supported (int 14h)
		Printer services are supported (int 17h)
		CGA/mono video services are supported (int 10h)
		ACPI is supported
		USB legacy is supported
		LS-120 boot is supported
		ATAPI Zip drive boot is supported
		BIOS boot specification is supported
		Function key-initiated network boot is supported
		Targeted content distribution is supported
	BIOS Revision: 6.1

Handle 0x0001, DMI type 1, 27 bytes
System Information
	Manufacturer: Hewlett-Packard
	Product Name: SG3-130FR
	Version:  
	Serial Number: CZC031B5GH
	UUID: 9FF74BC3-21D1-8222-9A35-05D39488393A
	Wake-up Type: Power Switch
	SKU Number: XC841EA#ABF
	Family: 103C_53316J

Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
	Manufacturer: FOXCONN
	Product Name: 2AAF
	Version: 1.00
	Serial Number:  
	Asset Tag:  
	Features:
		Board is a hosting board
		Board is replaceable
	Location In Chassis:  
	Chassis Handle: 0x0003
	Type: Motherboard
	Contained Object Handles: 0

Handle 0x0003, DMI type 3, 21 bytes
Chassis Information
	Manufacturer: Hewlett-Packard
	Type: Desktop
	Lock: Not Present
	Version:  
	Serial Number:  
	Asset Tag: CZC031B5GH 
	Boot-up State: Safe
	Power Supply State: Safe
	Thermal State: Safe
	Security Status: None
	OEM Information: 0x00000000
	Height: Unspecified
	Number Of Power Cords: 1
	Contained Elements: 0

Handle 0x0004, DMI type 4, 42 bytes
Processor Information
	Socket Designation: CPU 1
	Type: Central Processor
	Family: Athlon II
	Manufacturer: AMD              
	ID: 62 0F 10 00 FF FB 8B 17
	Signature: Family 16, Model 6, Stepping 2
	Flags:
		FPU (Floating-point unit on-chip)
		VME (Virtual mode extension)
		DE (Debugging extension)
		PSE (Page size extension)
		TSC (Time stamp counter)
		MSR (Model specific registers)
		PAE (Physical address extension)
		MCE (Machine check exception)
		CX8 (CMPXCHG8 instruction supported)
		APIC (On-chip APIC hardware supported)
		SEP (Fast system call)
		MTRR (Memory type range registers)
		PGE (Page global enable)
		MCA (Machine check architecture)
		CMOV (Conditional move instruction supported)
		PAT (Page attribute table)
		PSE-36 (36-bit page size extension)
		CLFSH (CLFLUSH instruction supported)
		MMX (MMX technology supported)
		FXSR (FXSAVE and FXSTOR instructions supported)
		SSE (Streaming SIMD extensions)
		SSE2 (Streaming SIMD extensions 2)
		HTT (Multi-threading)
	Version: AMD Athlon(tm) II X2 215 Processor                  
	Voltage: 1.5 V
	External Clock: 200 MHz
	Max Speed: 2700 MHz
	Current Speed: 2700 MHz
	Status: Populated, Enabled
	Upgrade: Other
	L1 Cache Handle: 0x0005
	L2 Cache Handle: 0x0006
	L3 Cache Handle: 0x0007
	Serial Number:  
	Asset Tag:  
	Part Number:  
	Core Count: 2
	Core Enabled: 2
	Characteristics:
		64-bit capable

Handle 0x0005, DMI type 7, 19 bytes
Cache Information
	Socket Designation: L1-Cache
	Configuration: Enabled, Not Socketed, Level 1
	Operational Mode: Varies With Memory Address
	Location: Internal
	Installed Size: 256 kB
	Maximum Size: 256 kB
	Supported SRAM Types:
		Pipeline Burst
	Installed SRAM Type: Pipeline Burst
	Speed: Unknown
	Error Correction Type: Single-bit ECC
	System Type: <OUT OF SPEC>
	Associativity: 4-way Set-associative

Handle 0x0006, DMI type 7, 19 bytes
Cache Information
	Socket Designation: L2-Cache
	Configuration: Enabled, Not Socketed, Level 2
	Operational Mode: Varies With Memory Address
	Location: Internal
	Installed Size: 1024 kB
	Maximum Size: 1024 kB
	Supported SRAM Types:
		Pipeline Burst
	Installed SRAM Type: Pipeline Burst
	Speed: Unknown
	Error Correction Type: Single-bit ECC
	System Type: <OUT OF SPEC>
	Associativity: 4-way Set-associative

Handle 0x0007, DMI type 7, 19 bytes
Cache Information
	Socket Designation: L3-Cache
	Configuration: Disabled, Not Socketed, Level 3
	Operational Mode: Unknown
	Location: Internal
	Installed Size: 0 kB
	Maximum Size: 0 kB
	Supported SRAM Types:
		Unknown
	Installed SRAM Type: Unknown
	Speed: Unknown
	Error Correction Type: Unknown
	System Type: Unknown
	Associativity: Unknown

Handle 0x0008, DMI type 9, 17 bytes
System Slot Information
	Designation: PCI-E x1
	Type: x1 PCI Express
	Current Usage: Available
	Length: Short
	ID: 6
	Characteristics:
		3.3 V is provided
		Opening is shared
		PME signal is supported

Handle 0x0009, DMI type 9, 17 bytes
System Slot Information
	Designation: PCI-E x1
	Type: x1 PCI Express
	Current Usage: Available
	Length: Short
	ID: 7
	Characteristics:
		3.3 V is provided
		Opening is shared
		PME signal is supported

Handle 0x000A, DMI type 11, 5 bytes
OEM Strings
	String 1: FBYTE#2S2V333E3K3N3Q3R3U3W3X3m464S4Y4k5X5c676S6Z6b.8e;BUILDID#10
	String 2: WESUMW661#SABF#DABF;
	String 3:  
	String 4:  
	String 5:  
	String 6:  
	String 7:  
	String 8:  
	String 9:  
	String 10:  
	String 11:  
	String 12:  
	String 13:  
	String 14:  
	String 15:  
	String 16:  
	String 17:  
	String 18:  
	String 19:  
	String 20:  
	String 21:  
	String 22:  
	String 23:  
	String 24:  
	String 25:  
	String 26:  
	String 27:  
	String 28:  
	String 29:  
	String 30:  
	String 31:  
	String 32:  

Handle 0x000B, DMI type 13, 22 bytes
BIOS Language Information
	Language Description Format: Long
	Installable Languages: 1
		en|US|iso8859-1
	Currently Installed Language: en|US|iso8859-1

Handle 0x000C, DMI type 15, 35 bytes
System Event Log
	Area Length: 4 bytes
	Header Start Offset: 0x0000
	Header Length: 2 bytes
	Data Start Offset: 0x0002
	Access Method: Indexed I/O, one 16-bit index port, one 8-bit data port
	Access Address: Index 0x046A, Data 0x046C
	Status: Invalid, Not Full
	Change Token: 0x00000000
	Header Format: No Header
	Supported Log Type Descriptors: 6
	Descriptor 1: End of log
	Data Format 1: OEM-specific
	Descriptor 2: End of log
	Data Format 2: OEM-specific
	Descriptor 3: End of log
	Data Format 3: OEM-specific
	Descriptor 4: End of log
	Data Format 4: OEM-specific
	Descriptor 5: End of log
	Data Format 5: OEM-specific
	Descriptor 6: End of log
	Data Format 6: OEM-specific

Handle 0x000D, DMI type 16, 15 bytes
Physical Memory Array
	Location: System Board Or Motherboard
	Use: System Memory
	Error Correction Type: None
	Maximum Capacity: 8 GB
	Error Information Handle: Not Provided
	Number Of Devices: 2

Handle 0x000E, DMI type 19, 15 bytes
Memory Array Mapped Address
	Starting Address: 0x00000000000
	Ending Address: 0x000BFFFFFFF
	Range Size: 3 GB
	Physical Array Handle: 0x000D
	Partition Width: 1

Handle 0x000F, DMI type 17, 28 bytes
Memory Device
	Array Handle: 0x000D
	Error Information Handle: Not Provided
	Total Width: 64 bits
	Data Width: 64 bits
	Size: 1024 MB
	Form Factor: DIMM
	Set: None
	Locator: DIMM3
	Bank Locator: BANK2
	Type: DDR3
	Type Detail: Synchronous
	Speed: 1066 MHz
	Manufacturer: Samsung       
	Serial Number: D6B02C85
	Asset Tag: AssetTagNum2
	Part Number: M378B2873FHS-CH9  
	Rank: Unknown

Handle 0x0010, DMI type 17, 28 bytes
Memory Device
	Array Handle: 0x000D
	Error Information Handle: Not Provided
	Total Width: 64 bits
	Data Width: 64 bits
	Size: 2048 MB
	Form Factor: DIMM
	Set: None
	Locator: DIMM4
	Bank Locator: BANK3
	Type: DDR3
	Type Detail: Synchronous
	Speed: 1066 MHz
	Manufacturer: Samsung       
	Serial Number: 2407FD64
	Asset Tag: AssetTagNum3
	Part Number: M378B5673FH0-CH9  
	Rank: Unknown

Handle 0x0011, DMI type 32, 20 bytes
System Boot Information
	Status: No errors detected

Handle 0x0012, DMI type 34, 11 bytes
Management Device
	Description: LM78-1
	Type: LM78
	Address: 0x00000000
	Address Type: I/O Port

Handle 0x0013, DMI type 39, 22 bytes
System Power Supply
	Power Unit Group: 1
	Location:  
	Name:  
	Manufacturer:  
	Serial Number:  
	Asset Tag:  
	Model Part Number: Standard Efficiency
	Revision:  
	Max Power Capacity: Unknown
	Status: Present, OK
	Type: Unknown
	Input Voltage Range Switching: Auto-switch
	Plugged: No
	Hot Replaceable: Yes

Handle 0x0014, DMI type 127, 4 bytes
End Of Table

J’ai mis en place sur ubuntu 12.10 mis à jour régulierement un montage non pas pas fstab mais via libpam_mount et via pam.d en modifiant /etc/pam.d/su pour monter lorsque je change de compte et /etc/pam.d/ligtdm pour une nouvelle session (boot ou redemarrage).

donc j’arrive à mettre en place les montages comme je veux… à savoir dans ~/iomega un point de montage d’un disque iomega de 500 gigas externe en usb.

ensuite la partition “c: windows” dans ~/win7

ensuite des montages réseaux dans ~/reseau/portable ou
~/reseau/parents

donc quand les ordis sont allumés les points de montages se mettent correctement. mais le soucis que j’ai est que lorsque je rentre le mot de passe utilisateur le disque externe iomega usb (et uniquement lui) subit un fsck. comme indiqué ci dessous…

[code]patrick@patrick-win7:~$ su patrick
Mot de passe :
(pam_mount.c:365): pam_mount 2.13: entering auth stage
(pam_mount.c:554): pam_mount 2.13: entering session stage
(misc.c:39): Session open: (ruid/rgid=1000/1000, e=0/1000)
(mount.c:267): Mount info: globalconf, user=patrick fstab=0 ssh=0
(mount.c:659): This is a crypto-type volume. Key decoding deferred to mount.crypt.
command: ‘fsck’ ‘-p’ ‘/dev/sdb1’
(mount.c:76): fsck de util-linux 2.20.1
(mount.c:76): dosfsck 3.0.13, 30 Jun 2012, FAT32, LFN
(mount.c:76): /dev/sdb1: 32549 files, 2797986/15258273 clusters
(mount.c:498): waiting for filesystem check
command: ‘mount’ ‘-p0’ ‘-orw,uid=patrick,gid=100,iocharset=utf8’ ‘-tvfat’ ‘/dev/sdb1’ ‘/home/patrick/iomega’


[/code]

et aussi comme les partages windows sur le réseau ne sont pas ouverts en permanence j’aimerais éviter de subir les temps d’attente lorsque le mount se faire via un ordi non allumé ou que le disque externe n’est pas branché.

merci de vos réponses… en espérant etre assez clair.

bonjour à tous…

je viens de trouver par moi meme j’ai mis juste avant les lignes décrivant les volumes dans
/etc/security/pam_mount.conf.xml

qui ne fait qu’un affichage des commandes prévues de faire et donc annule le montage.