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 18/03/2008, à 15:25

traaf

effacer un fichier ineffacable

salut

je n'arrive pas a supprimer un fichier...

sudo -s
root@breizh-ardente:# ls -la
total 0
drwxr-xr-x 3 root root 80 2008-03-18 14:08 .
drwxr-xr-x 3 root root 72 2008-03-18 14:08 ..
drwxr-xr-x 2 root root 80 2008-03-18 14:08 gdmclient

root@breizh-ardente:# rm -rf gdmclient
rm: ne peut détruire le répertoire `gdmclient': Le répertoire n'est pas vide.

root@breizh-ardente:# ls -la gdmclient/
total 0
drwxr-xr-x 2 root root 80 2008-03-18 14:08 .
drwxr-xr-x 3 root root 80 2008-03-18 14:08 ..
?--------- ? ?    ?     ?                ? gdmclient/_gdmclimnt.so

root@breizh-ardente:# chown -R root:root gdmclient
chown: changement de propriétaire pour `gdmclient/_gdmclimnt.so': Aucun fichier ou répertoire de ce type

root@breizh-ardente:# chmod -R 777 gdmclient
chmod: ne peut accéder `gdmclient/_gdmclimnt.so': Aucun fichier ou répertoire de ce type

root@breizh-ardente:# file gdmclient/_gdmclimnt.so 
gdmclient/_gdmclimnt.so: ERROR: cannot open `gdmclient/_gdmclimnt.so' (No such file or directory)

ya un moyen ?


Vault106, musique libre, enjoy it /!\

Hors ligne

#2 Le 18/03/2008, à 15:47

lolo20

Re : effacer un fichier ineffacable

Salut
si tu fait
sudo nautilus
et tu vas l'effacer à la main?


Devant la poule le grain de maïs a toujours tort............................

Hors ligne

#3 Le 18/03/2008, à 15:50

lebossejames

Re : effacer un fichier ineffacable

c'est le répertoire entier que tu veux effacer?

Hors ligne

#4 Le 18/03/2008, à 16:20

traaf

Re : effacer un fichier ineffacable

je veux effacer le repertoire, oui, mais ca bloque à cause de la présence du fichier

dans nautilus, le fichier apparait a l'ouverture, et disparait des que je le sélectionne à la souris...je remonte d'un niveau et reviens ds le répertoire.. pareil.. indéfiniment...

Dernière modification par traaf (Le 18/03/2008, à 16:21)


Vault106, musique libre, enjoy it /!\

Hors ligne

#5 Le 18/03/2008, à 16:35

cep

Re : effacer un fichier ineffacable

Regarde si un fsck peut solutionner le problème.
Sinon tu pourras utiliser debugfs si le fs est en ext3. Voir équivalents sinon.

Hors ligne

#6 Le 22/03/2008, à 15:25

lebossejames

Re : effacer un fichier ineffacable

Disons que tu veut supprimer le repertoire s'appelant "mondossier" qui se trouve dans "  /home/utlisateur/bureau/mondossier  "

la commande est par exemple ici:

rm -rf /home/utilisateur/bureau/mondossier

Hors ligne

#7 Le 03/04/2008, à 18:39

traaf

Re : effacer un fichier ineffacable

suite et fin smile
le problème n'étant pas fatal, j'ai trainé à le corriger

la partition est en reiserfs, donc pas de debugfs

une sauvegarde avecpartimage en préalable, puis un boot sur USB

sudo reiserfsck --check /dev/sdc3
Will read-only check consistency of the filesystem on /dev/sdc3
Will put log info to 'stdout'

###########
reiserfsck --check started at Thu Apr  3 18:27:05 2008
###########
Replaying journal..
Reiserfs journal '/dev/sdc3' in blocks [18..8211]: 0 transactions replayed
Checking internal tree../ 56 (of  92)/ 91 (of 117)bad_directory_item: block 3801101: The directory item [138654 138665 0x1 DIR (3)] has a not properly hashed entry (2)
bad_leaf: block 3801101, item 6: The corrupted item found (138654 138665 0x1 DIR (3), len 112, location 1668 entry count 3, fsck need 0, format old)
/ 92 (of  92)/122 (of 122)bad_directory_item: block 9535802: The directory item [649313 649399 0x1 DIR (3)] has a not properly hashed entry (2)
bad_leaf: block 9535802, item 14: The corrupted item found (649313 649399 0x1 DIR (3), len 80, location 3212 entry count 3, fsck need 0, format old)
finished     
Comparing bitmaps..finished
Fatal corruptions were found, Semantic pass skipped
2 found corruptions can be fixed only when running with --rebuild-tree
###########
reiserfsck finished at Thu Apr  3 18:27:49 2008
###########

il y a bien un problème, même 2 hmm

sudo reiserfsck --scan-whole-partition --rebuild-tree /dev/sdc3
Will rebuild the filesystem (/dev/sdc3) tree
Will put log info to 'stdout'

Replaying journal..
Reiserfs journal '/dev/sdc3' in blocks [18..8211]: 0 transactions replayed
###########
reiserfsck --rebuild-tree started at Thu Apr  3 18:29:11 2008
###########

Pass 0:
####### Pass 0 #######
The whole partition (13323904 blocks) is to be scanned
Skipping 8617 blocks (super block, journal, bitmaps) 13315287 blocks will be read
0%pass0: block 458857, item 649313 649399 0x1 DIR (3), len 80, location 2016 entry count 3, fsck need 0, format old: 1 entries were deleted
....20%..pass0: block 3801101, item 138654 138665 0x1 DIR (3), len 112, location 1668 entry count 3, fsck need 0, format old: 1 entries were deleted

c'est long, c'est long...

résultat bientôt smile


Vault106, musique libre, enjoy it /!\

Hors ligne

#8 Le 03/04/2008, à 19:11

traaf

Re : effacer un fichier ineffacable

block 6494550: The free space (2560) is incorrect, should be (2512) - corrected
pass0: vpf-10110: block 6494550, item (0): Unknown item type found [100663297 2648443392 0xddd0a0006000001 ??? (9)] - deleted
block 6494551: The number of items (1536) is incorrect, should be (1) - corrected
block 6494551: The free space (2560) is incorrect, should be (2512) - corrected
pass0: vpf-10110: block 6494551, item (0): Unknown item type found [100663297 2852391424 0xa050a0006000001 ??? (10)] - deleted
block 6494554: The number of items (1536) is incorrect, should be (1) - corrected
block 6494554: The free space (768) is incorrect, should be (2512) - corrected
pass0: vpf-10110: block 6494554, item (0): Unknown item type found [100663297 2453998080 0x2460a0006000001 ??? (9)] - deleted
block 6494555: The number of items (1792) is incorrect, should be (1) - corrected
block 6494555: The free space (2304) is incorrect, should be (2256) - corrected
pass0: vpf-10110: block 6494555, item (0): Unknown item type found [117440513 2547779840 0x7dd090007000001 ??? (9)] - deleted
block 6494558: The number of items (1536) is incorrect, should be (1) - corrected
block 6494558: The free space (2560) is incorrect, should be (2512) - corrected
pass0: vpf-10110: block 6494558, item (0): Unknown item type found [100663297 3035957760 0x4f60a0006000001 ??? (11)] - deleted
block 6494559: The number of items (1536) is incorrect, should be (1) - corrected
block 6494559: The free space (2560) is incorrect, should be (2512) - corrected
pass0: vpf-10110: block 6494559, item (0): Unknown item type found [100663297 3069512192 0x6f6030006000001 ??? (11)] - deleted
block 6494569: The number of items (1536) is incorrect, should be (1) - corrected
block 6494569: The free space (2560) is incorrect, should be (2512) - corrected
pass0: vpf-10110: block 6494569, item (0): Unknown item type found [100663297 2826961664 0x8810a0006000001 ??? (10)] - deleted
block 6494571: The number of items (1536) is incorrect, should be (1) - corrected
block 6494571: The free space (2560) is incorrect, should be (2512) - corrected
pass0: vpf-10110: block 6494571, item (0): Unknown item type found [100663297 3051817472 0x5e80a0006000001 ??? (11)] - deleted
block 6494572: The number of items (1536) is incorrect, should be (1) - corrected
block 6494572: The free space (2560) is incorrect, should be (2512) - corrected
pass0: vpf-10110: block 6494572, item (0): Unknown item type found [100663297 3085370112 0x7e80a0006000001 ??? (11)] - deleted
block 6494665: The number of items (1536) is incorrect, should be (1) - corrected
block 6494665: The free space (2560) is incorrect, should be (2512) - corrected
pass0: vpf-10110: block 6494665, item (0): Unknown item type found [100663297 2217282048 0x42a0a0006000001 ??? (8)] - deleted
..60%block 8205546: The number of items (15629) is incorrect, should be (1) - corrected
block 8205546: The free space (0) is incorrect, should be (4048) - corrected
..block 9307270: The number of items (1536) is incorrect, should be (2) - corrected
block 9307270: The free space (1024) is incorrect, should be (952) - corrected
pass0: vpf-10230: block 9307270, item 0: The item offset is is too big [100663297 328271872 0x392080006000001 IND (1)] - deleted
pass0: vpf-10230: block 9307270, item 0: The item offset is is too big [100663297 328467456 0x395040006000001 IND (1)] - deleted
block 9307904: The number of items (1536) is incorrect, should be (1) - corrected
block 9307904: The free space (2560) is incorrect, should be (2512) - corrected
verify_directory_item: block 9307904, item 100663297 859572736 0x33d030006000001 DIR (3), len 1536, location 2560 entry count 1, fsck need 3, format new: All entries were deleted from the directory
pass0: block 9535802, item 649313 649399 0x1 DIR (3), len 80, location 3212 entry count 3, fsck need 0, format old: 1 entries were deleted
.block 9972105: The number of items (15629) is incorrect, should be (1) - corrected
block 9972105: The free space (0) is incorrect, should be (4048) - corrected
.80%block 11111403: The number of items (16454) is incorrect, should be (1) - corrected
block 11111403: The free space (16) is incorrect, should be (4048) - corrected
pass0: vpf-10110: block 11111403, item (0): Unknown item type found [385917952 8650816 0x78004006 ??? (15)] - deleted
....100%                        left 0, 7248 /sec
3 directory entries were hashed with not set hash.
523939 directory entries were hashed with "r5" hash.
	"r5" hash is selected
Flushing..finished
	Read blocks (but not data blocks) 13315287
		Leaves among those 103943
			- leaves all contents of which could not be saved and deleted 17
		Objectids found 526447

et après, ca s'affole completement o_O

Flushing..finished1, 298 /sec
	Objects without names 46837
	Empty lost dirs removed 455
	Dirs linked to /lost+found: 3716
		Dirs without stat data found 167
	Files linked to /lost+found 43121
	Objects having used objectids: 5629
		files fixed 5368
		dirs fixed 261
Pass 4 - finished done 75650, 188 /sec
	Deleted unreachable items 2489
Flushing..finished
Syncing..finished
###########
reiserfsck finished at Thu Apr  3 19:10:37 2008

je reboote pour voir...


Vault106, musique libre, enjoy it /!\

Hors ligne

#9 Le 03/04/2008, à 19:17

cep

Re : effacer un fichier ineffacable

Smart et dmesg ne signalent rien d'anormal sur le disque ?
Un contrôle avec un soft du constructeur, de même qu'un memtest serait envisageable.

Hors ligne

#10 Le 04/04/2008, à 07:29

traaf

Re : effacer un fichier ineffacable

oula, apres reboot, a part le fond d'écran, plus grand chose à voir avec mon bureau original hmm
très délétère comme manip big_smile
j'ai pas eu le temps de rejouer avec hier soir

je restaure l'image pour faire une sauvegarde plus exploitable avant de simplement reformater la partition ...

je n'ai rien remarqué avec dmesg et autres...


Vault106, musique libre, enjoy it /!\

Hors ligne

#11 Le 04/04/2008, à 07:37

#UBU#an@is

Re : effacer un fichier ineffacable

@traaf: tu es un psychopathe lol


http://ubu-team.verygames.net/index.php

Hors ligne

#12 Le 04/04/2008, à 07:46

traaf

Re : effacer un fichier ineffacable

hey big_smile


Vault106, musique libre, enjoy it /!\

Hors ligne

#13 Le 04/04/2008, à 07:55

traaf

Re : effacer un fichier ineffacable

dmesg | grep sdc
[   34.171333] sd 2:0:0:0: [sdc] 160086528 512-byte hardware sectors (81964 MB)
[   34.182766] sd 2:0:0:0: [sdc] Write Protect is off
[   34.194040] sd 2:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[   34.194076] sd 2:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   34.205810] sd 2:0:0:0: [sdc] 160086528 512-byte hardware sectors (81964 MB)
[   34.217488] sd 2:0:0:0: [sdc] Write Protect is off
[   34.228954] sd 2:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[   34.228986] sd 2:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   34.240662]  sdc: sdc1 sdc2 sdc3 sdc4
[   34.280209] sd 2:0:0:0: [sdc] Attached SCSI disk
[   35.095997] ReiserFS: sdc1: found reiserfs format "3.6" with standard journal
[   35.108316] ReiserFS: sdc1: using ordered data mode
[   35.138755] ReiserFS: sdc1: journal params: device sdc1, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
[   35.163974] ReiserFS: sdc1: checking transaction log (sdc1)
[   35.210090] ReiserFS: sdc1: Using r5 hash to sort names
[   48.285468] Adding 1116508k swap on /dev/sdc2.  Priority:-1 extents:1 across:1116508k
[   73.121391] ReiserFS: sdc3: found reiserfs format "3.6" with standard journal
[   73.121404] ReiserFS: sdc3: using ordered data mode
[   73.126597] ReiserFS: sdc3: journal params: device sdc3, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
[   73.127054] ReiserFS: sdc3: checking transaction log (sdc3)
[   73.174944] ReiserFS: sdc3: Using r5 hash to sort names

SMART, je capte pas trop hmm

sudo smartctl -A /dev/sdc
[sudo] password for traaf:
smartctl version 5.37 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  3 Spin_Up_Time            0x0027   225   225   063    Pre-fail  Always       -       6671
  4 Start_Stop_Count        0x0032   253   253   000    Old_age   Always       -       607
  5 Reallocated_Sector_Ct   0x0033   253   253   063    Pre-fail  Always       -       0
  6 Read_Channel_Margin     0x0001   253   253   100    Pre-fail  Offline      -       0
  7 Seek_Error_Rate         0x000a   253   252   000    Old_age   Always       -       0
  8 Seek_Time_Performance   0x0027   251   241   187    Pre-fail  Always       -       48335
  9 Power_On_Minutes        0x0032   211   211   000    Old_age   Always       -       604h+52m
 10 Spin_Retry_Count        0x002b   253   252   157    Pre-fail  Always       -       0
 11 Calibration_Retry_Count 0x002b   253   252   223    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   252   252   000    Old_age   Always       -       627
192 Power-Off_Retract_Count 0x0032   253   253   000    Old_age   Always       -       0
193 Load_Cycle_Count        0x0032   253   253   000    Old_age   Always       -       0
194 Temperature_Celsius     0x0032   253   253   000    Old_age   Always       -       23
195 Hardware_ECC_Recovered  0x000a   253   252   000    Old_age   Always       -       2579
196 Reallocated_Event_Count 0x0008   253   253   000    Old_age   Offline      -       0
197 Current_Pending_Sector  0x0008   253   253   000    Old_age   Offline      -       0
198 Offline_Uncorrectable   0x0008   253   253   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0008   199   199   000    Old_age   Offline      -       0
200 Multi_Zone_Error_Rate   0x000a   253   252   000    Old_age   Always       -       0
201 Soft_Read_Error_Rate    0x000a   253   252   000    Old_age   Always       -       2
202 TA_Increase_Count       0x000a   253   252   000    Old_age   Always       -       0
203 Run_Out_Cancel          0x000b   253   252   180    Pre-fail  Always       -       0
204 Shock_Count_Write_Opern 0x000a   253   252   000    Old_age   Always       -       0
205 Shock_Rate_Write_Opern  0x000a   253   252   000    Old_age   Always       -       0
207 Spin_High_Current       0x002a   253   252   000    Old_age   Always       -       0
208 Spin_Buzz               0x002a   253   252   000    Old_age   Always       -       0
209 Offline_Seek_Performnce 0x0024   196   191   000    Old_age   Offline      -       0
 99 Unknown_Attribute       0x0004   253   253   000    Old_age   Offline      -       0
100 Unknown_Attribute       0x0004   253   253   000    Old_age   Offline      -       0
101 Unknown_Attribute       0x0004   253   253   000    Old_age   Offline      -       0
sudo smartctl -l selftest /dev/sdc
smartctl version 5.37 [i686-pc-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%     13879         -
# 2  Extended offline    Completed without error       00%      5904         -

Vault106, musique libre, enjoy it /!\

Hors ligne

#14 Le 04/04/2008, à 09:26

cep

Re : effacer un fichier ineffacable

RAS de sérieux.
On voit seulement que tu utilises ton disque :-)

Tu pourrais peut-être faire un test avec le soft du constructeur du disque.

Ou alors il y a eu un problème edf ou alim, et avec la taille des caches, parfois cela entraine des erreurs.

Et puis bon, c'est du reiserfs :-)

Pour smartmontools, quelques éléments d'appréciation :
http://smartmontools.sourceforge.net/BadBlockHowTo.txt

Cordialement.

cep

p.s. pas de poste fait chez les glands ?

Hors ligne

#15 Le 04/04/2008, à 16:07

traaf

Re : effacer un fichier ineffacable

cep a écrit :

RAS de sérieux.
On voit seulement que tu utilises ton disque :-)

ca me rassure smile
un reformatage simple suffira alors

cep a écrit :

Tu pourrais peut-être faire un test avec le soft du constructeur du disque.

oui, j'ai repéré un machin a utiliser en DOS, je vais essayer de le faire marcher
http://www.seagate.com/ww/v/index.jsp?locale=en-US&name=SeaTools&vgnextoid=720bd20cacdec010VgnVCM100000dd04090aRCRD

cep a écrit :

Et puis bon, c'est du reiserfs :-)

pas bien ?
en même temps, j'ai mis ca pour voir.. et je garde parce que ca me dispense des checkdisk tous les 30 montages smile
vu la taille des disques, c'est long big_smile j'étais moins embêté quand il y avait davantage de NTFS sur mes disques  lol
tu préconises quel FS ?

cep a écrit :

p.s. pas de poste fait chez les glands ?

ah non tiens ! ca fait longtemps que je ne suis pas allé par la bas tongue


Vault106, musique libre, enjoy it /!\

Hors ligne

#16 Le 04/04/2008, à 21:33

cep

Re : effacer un fichier ineffacable

traaf a écrit :

tu préconises quel FS ?

c'était plus une boutade.
Mais je n'ai jamais été un inconditionnel du reiserfs. Question stabilité il n'est pas irréprochable, surtout avec les derniers kernels.
D'ailleurs son développement est bien "ralenti", et même Suse ne l'utilise pas vraiment et préconise plutôt l'ext3. Bien réglé en fonction des besoins, ext3 est un système solide et qui n'a pa à rougir question performances.
Sinon, dans quelques temps un truc comme btrfs pourrait aussi être tentant.
Jfs n'est pas mal non plus.

Hors ligne

#17 Le 04/04/2008, à 23:22

traaf

Re : effacer un fichier ineffacable

cep a écrit :
traaf a écrit :

tu préconises quel FS ?

c'était plus une boutade. .

peut-être, mais c'est une vraie question !

la liberté a un prix : à nous de faire des choix big_smile pas facile..
garder la proposition par défaut avec ext3 en est un, le plus simple...

explorer les alternatives en est un autre, encore faut il avoir des éléments de réponse, ce que je n'ai pas vraiment roll
c'est pour ca que j'ai relevé la phrase


Vault106, musique libre, enjoy it /!\

Hors ligne

#18 Le 05/04/2008, à 07:19

cep

Re : effacer un fichier ineffacable

Tu as ces deux adresses qui se complètent :
http://www.debian-administration.org/articles/388
http://linuxgazette.net/122/TWDT.html#piszcz

Sur la première, voir aussi les commentaires.

Hors ligne