All of lore.kernel.org
 help / color / mirror / Atom feed
From: Casimiro de Almeida Barreto <casimiro.barreto@gmail.com>
To: linux-ext4@vger.kernel.org
Cc: Development discussions related to Fedora <fedora-devel-list@redhat.com>
Subject: Troubleshooting pendrive ext2fs
Date: Tue, 18 Aug 2009 19:10:26 -0300	[thread overview]
Message-ID: <4A8B26D2.9000800@gmail.com> (raw)


[-- Attachment #1.1.1: Type: text/plain, Size: 13638 bytes --]

Hello,

I've trouble creating an ext2/ext3/ext4 file system in a 64GBytes pendrive.

The device appears at /proc/bus/usb/devices as:

T:  Bus=01 Lev=01 Prnt=01 Port=04 Cnt=01 Dev#=  4 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1043 ProdID=8012 Rev= 1.00
S:  Manufacturer=Generic
S:  Product=Flash Disk
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

It's partioned as:

Disk /dev/sdd: 67.1 GB, 67108864512 bytes
64 heads, 32 sectors/track, 64000 cylinders
Units = cilindros of 2048 * 512 = 1048576 bytes
Disk identifier: 0x4a26a3ed

Dispositivo Boot      Start         End      Blocks   Id  System
/dev/sdd1               1       64000    65535984   83  Linux

And raw partition table data is:

Disk /dev/sdd: 64 heads, 32 sectors, 64000 cylinders

Nr AF  Hd Sec  Cyl  Hd Sec  Cyl     Start      Size ID
 1 00   1   1    0  63  32 1023         32  131071968 83
 2 00   0   0    0   0   0    0          0          0 00
 3 00   0   0    0   0   0    0          0          0 00
 4 00   0   0    0   0   0    0          0          0 00

Disk was formatted with the following command:

[root@localhost ~]# mkfs.ext2 -L kingston -M /media/kingston -O
large_file,extent /dev/sdd1
mke2fs 1.41.4 (27-Jan-2009)
Filesystem label=kingston
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
4096000 inodes, 16383996 blocks
819199 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
500 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
    4096000, 7962624, 11239424

Writing inode tables: done                           
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 33 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.

And then checked:

# fsck -f -v /dev/sdd1

Resulting in:

[root@localhost ~]# fsck -v -f /dev/sdd1
fsck 1.41.4 (27-Jan-2009)
e2fsck 1.41.4 (27-Jan-2009)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Block bitmap differences:  +(32768--34306) +(65536--66049)
+(98304--99842) +(131072--131585) +(163840--165378) +(196608--197121)
+(229376--230914) +(262144--262657) +(294912--296450) +(327680--328193)
+(360448--360961) +(393216--393729) +(425984--426497) +(458752--459265)
+(491520--492033) +(524288--524801) +(557056--557569) +(589824--590337)
+(622592--623105) +(655360--655873) +(688128--688641) +(720896--721409)
+(753664--754177) +(786432--786945) +(819200--820738) +(851968--852481)
+(884736--886274) +(917504--918017) +(950272--950785) +(983040--983553)
+(1015808--1016321) +(1048576--1049089) +(1081344--1081857)
+(1114112--1114625) +(1146880--1147393) +(1179648--1180161)
+(1212416--1212929) +(1245184--1245697) +(1277952--1278465)
+(1310720--1311233) +(1343488--1344001) +(1376256--1376769)
+(1409024--1409537) +(1441792--1442305) +(1474560--1475073)
+(1507328--1507841) +(1540096--1540609) +(1572864--1573377)
+(1605632--1607170) +(1638400--1638913) +(1671168--1671681)
+(1703936--1704449) +(1736704--1737217) +(1769472--1769985)
+(1802240--1802753) +(1835008--1835521) +(1867776--1868289)
+(1900544--1901057) +(1933312--1933825) +(1966080--1966593)
+(1998848--1999361) +(2031616--2032129) +(2064384--2064897)
+(2097152--2097665) +(2129920--2130433) +(2162688--2163201)
+(2195456--2195969) +(2228224--2228737) +(2260992--2261505)
+(2293760--2294273) +(2326528--2327041) +(2359296--2359809)
+(2392064--2392577) +(2424832--2425345) +(2457600--2458113)
+(2490368--2490881) +(2523136--2523649) +(2555904--2556417)
+(2588672--2589185) +(2621440--2621953) +(2654208--2655746)
+(2686976--2687489) +(2719744--2720257) +(2752512--2753025)
+(2785280--2785793) +(2818048--2818561) +(2850816--2851329)
+(2883584--2884097) +(2916352--2916865) +(2949120--2949633)
+(2981888--2982401) +(3014656--3015169) +(3047424--3047937)
+(3080192--3080705) +(3112960--3113473) +(3145728--3146241)
+(3178496--3179009) +(3211264--3211777) +(3244032--3244545)
+(3276800--3277313) +(3309568--3310081) +(3342336--3342849)
+(3375104--3375617) +(3407872--3408385) +(3440640--3441153)
+(3473408--3473921) +(3506176--3506689) +(3538944--3539457)
+(3571712--3572225) +(3604480--3604993) +(3637248--3637761)
+(3670016--3670529) +(3702784--3703297) +(3735552--3736065)
+(3768320--3768833) +(3801088--3801601) +(3833856--3834369)
+(3866624--3867137) +(3899392--3899905) +(3932160--3932673)
+(3964928--3965441) +(3997696--3998209) +(4030464--4030977)
+(4063232--4063745) +(4096000--4097538) +(4128768--4129281)
+(4161536--4162049) +(4194304--4194817) +(4227072--4227585)
+(4259840--4260353) +(4292608--4293121) +(4325376--4325889)
+(4358144--4358657) +(4390912--4391425) +(4423680--4424193)
+(4456448--4456961) +(4489216--4489729) +(4521984--4522497)
+(4554752--4555265) +(4587520--4588033) +(4620288--4620801)
+(4653056--4653569) +(4685824--4686337) +(4718592--4719105)
+(4751360--4751873) +(4784128--4784641) +(4816896--4817409)
+(4849664--4850177) +(4882432--4882945) +(4915200--4915713)
+(4947968--4948481) +(4980736--4981249) +(5013504--5014017)
+(5046272--5046785) +(5079040--5079553) +(5111808--5112321)
+(5144576--5145089) +(5177344--5177857) +(5210112--5210625)
+(5242880--5243393) +(5275648--5276161) +(5308416--5308929)
+(5341184--5341697) +(5373952--5374465) +(5406720--5407233)
+(5439488--5440001) +(5472256--5472769) +(5505024--5505537)
+(5537792--5538305) +(5570560--5571073) +(5603328--5603841)
+(5636096--5636609) +(5668864--5669377) +(5701632--5702145)
+(5734400--5734913) +(5767168--5767681) +(5799936--5800449)
+(5832704--5833217) +(5865472--5865985) +(5898240--5898753)
+(5931008--5931521) +(5963776--5964289) +(5996544--5997057)
+(6029312--6029825) +(6062080--6062593) +(6094848--6095361)
+(6127616--6128129) +(6160384--6160897) +(6193152--6193665)
+(6225920--6226433) +(6258688--6259201) +(6291456--6291969)
+(6324224--6324737) +(6356992--6357505) +(6389760--6390273)
+(6422528--6423041) +(6455296--6455809) +(6488064--6488577)
+(6520832--6521345) +(6553600--6554113) +(6586368--6586881)
+(6619136--6619649) +(6651904--6652417) +(6684672--6685185)
+(6717440--6717953) +(6750208--6750721) +(6782976--6783489)
+(6815744--6816257) +(6848512--6849025) +(6881280--6881793)
+(6914048--6914561) +(6946816--6947329) +(6979584--6980097)
+(7012352--7012865) +(7045120--7045633) +(7077888--7078401)
+(7110656--7111169) +(7143424--7143937) +(7176192--7176705)
+(7208960--7209473) +(7241728--7242241) +(7274496--7275009)
+(7307264--7307777) +(7340032--7340545) +(7372800--7373313)
+(7405568--7406081) +(7438336--7438849) +(7471104--7471617)
+(7503872--7504385) +(7536640--7537153) +(7569408--7569921)
+(7602176--7602689) +(7634944--7635457) +(7667712--7668225)
+(7700480--7700993) +(7733248--7733761) +(7766016--7766529)
+(7798784--7799297) +(7831552--7832065) +(7864320--7864833)
+(7897088--7897601) +(7929856--7930369) +(7962624--7964162)
+(7995392--7995905) +(8028160--8028673) +(8060928--8061441)
+(8093696--8094209) +(8126464--8126977) +(8159232--8159745)
+(8192000--8192513) +(8224768--8225281) +(8257536--8258049)
+(8290304--8290817) +(8323072--8323585) +(8355840--8356353)
+(8388608--8389121) +(8421376--8421889) +(8454144--8454657)
+(8486912--8487425) +(8519680--8520193) +(8552448--8552961)
+(8585216--8585729) +(8617984--8618497) +(8650752--8651265)
+(8683520--8684033) +(8716288--8716801) +(8749056--8749569)
+(8781824--8782337) +(8814592--8815105) +(8847360--8847873)
+(8880128--8880641) +(8912896--8913409) +(8945664--8946177)
+(8978432--8978945) +(9011200--9011713) +(9043968--9044481)
+(9076736--9077249) +(9109504--9110017) +(9142272--9142785)
+(9175040--9175553) +(9207808--9208321) +(9240576--9241089)
+(9273344--9273857) +(9306112--9306625) +(9338880--9339393)
+(9371648--9372161) +(9404416--9404929) +(9437184--9437697)
+(9469952--9470465) +(9502720--9503233) +(9535488--9536001)
+(9568256--9568769) +(9601024--9601537) +(9633792--9634305)
+(9666560--9667073) +(9699328--9699841) +(9732096--9732609)
+(9764864--9765377) +(9797632--9798145) +(9830400--9830913)
+(9863168--9863681) +(9895936--9896449) +(9928704--9929217)
+(9961472--9961985) +(9994240--9994753) +(10027008--10027521)
+(10059776--10060289) +(10092544--10093057) +(10125312--10125825)
+(10158080--10158593) +(10190848--10191361) +(10223616--10224129)
+(10256384--10256897) +(10289152--10289665) +(10321920--10322433)
+(10354688--10355201) +(10387456--10387969) +(10420224--10420737)
+(10452992--10453505) +(10485760--10486273) +(10518528--10519041)
+(10551296--10551809) +(10584064--10584577) +(10616832--10617345)
+(10649600--10650113) +(10682368--10682881) +(10715136--10715649)
+(10747904--10748417) +(10780672--10781185) +(10813440--10813953)
+(10846208--10846721) +(10878976--10879489) +(10911744--10912257)
+(10944512--10945025) +(10977280--10977793) +(11010048--11010561)
+(11042816--11043329) +(11075584--11076097) +(11108352--11108865)
+(11141120--11141633) +(11173888--11174401) +(11206656--11207169)
+(11239424--11240962) +(11272192--11272705) +(11304960--11305473)
+(11337728--11338241) +(11370496--11371009) +(11403264--11403777)
+(11436032--11436545) +(11468800--11469313) +(11501568--11502081)
+(11534336--11534849) +(11567104--11567617) +(11599872--11600385)
+(11632640--11633153) +(11665408--11665921) +(11698176--11698689)
+(11730944--11731457) +(11763712--11764225) +(11796480--11796993)
+(11829248--11829761) +(11862016--11862529) +(11894784--11895297)
+(11927552--11928065) +(11960320--11960833) +(11993088--11993601)
+(12025856--12026369) +(12058624--12059137) +(12091392--12091905)
+(12124160--12124673) +(12156928--12157441) +(12189696--12190209)
+(12222464--12222977) +(12255232--12255745) +(12288000--12288513)
+(12320768--12321281) +(12353536--12354049) +(12386304--12386817)
+(12419072--12419585) +(12451840--12452353) +(12484608--12485121)
+(12517376--12517889) +(12550144--12550657) +(12582912--12583425)
+(12615680--12616193) +(12648448--12648961) +(12681216--12681729)
+(12713984--12714497) +(12746752--12747265) +(12779520--12780033)
+(12812288--12812801) +(12845056--12845569) +(12877824--12878337)
+(12910592--12911105) +(12943360--12943873) +(12976128--12976641)
+(13008896--13009409) +(13041664--13042177) +(13074432--13074945)
+(13107200--13107713) +(13139968--13140481) +(13172736--13173249)
+(13205504--13206017) +(13238272--13238785) +(13271040--13271553)
+(13303808--13304321) +(13336576--13337089) +(13369344--13369857)
+(13402112--13402625) +(13434880--13435393) +(13467648--13468161)
+(13500416--13500929) +(13533184--13533697) +(13565952--13566465)
+(13598720--13599233) +(13631488--13632001) +(13664256--13664769)
+(13697024--13697537) +(13729792--13730305) +(13762560--13763073)
+(13795328--13795841) +(13828096--13828609) +(13860864--13861377)
+(13893632--13894145) +(13926400--13926913) +(13959168--13959681)
+(13991936--13992449) +(14024704--14025217) +(14057472--14057985)
+(14090240--14090753) +(14123008--14123521) +(14155776--14156289)
+(14188544--14189057) +(14221312--14221825) +(14254080--14254593)
+(14286848--14287361) +(14319616--14320129) +(14352384--14352897)
+(14385152--14385665) +(14417920--14418433) +(14450688--14451201)
+(14483456--14483969) +(14516224--14516737) +(14548992--14549505)
+(14581760--14582273) +(14614528--14615041) +(14647296--14647809)
+(14680064--14680577) +(14712832--14713345) +(14745600--14746113)
+(14778368--14778881) +(14811136--14811649) +(14843904--14844417)
+(14876672--14877185) +(14909440--14909953) +(14942208--14942721)
+(14974976--14975489) +(15007744--15008257) +(15040512--15041025)
+(15073280--15073793) +(15106048--15106561) +(15138816--15139329)
+(15171584--15172097) +(15204352--15204865) +(15237120--15237633)
+(15269888--15270401) +(15302656--15303169) +(15335424--15335937)
+(15368192--15368705) +(15400960--15401473) +(15433728--15434241)
+(15466496--15467009) +(15499264--15499777) +(15532032--15532545)
+(15564800--15565313) +(15597568--15598081) +(15630336--15630849)
+(15663104--15663617) +(15695872--15696385) +(15728640--15729153)
+(15761408--15761921) +(15794176--15794689) +(15826944--15827457)
+(15859712--15860225) +(15892480--15892993) +(15925248--15925761)
+(15958016--15958529) +(15990784--15991297) +(16023552--16024065)
+(16056320--16056833) +(16089088--16089601) +(16121856--16122369)
+(16154624--16155137) +(16187392--16187905) +(16220160--16220673)
+(16252928--16253441) +(16285696--16286209) +(16318464--16318977)
+(16351232--16351745)
Fix<y>?

If I fsck without -f, /dev/sdd1 will not be checked (it's marked as
clean)...

Then, if I ignore the errors, mount /dev/sdd1 at /media/kingston and do:

# PREFIX=/media/kingston/`date +%y%m%d%H%M`
# tar cjPf - /home /opt /usr/local | gpg -c -a -z0 --cipher-algo=aes256
-o ${PREFIX}.asc

It will create the backup file.

But, if I try:

# md5sum ${PREFIX}.asc > ${PREFIX}.md5

it will complain that "cannot write to device"...

I checked the device with:

# badblocks -w -v /dev/sdd1 and it went through without finding errors.

What's going wild with this particular device???

[-- Attachment #1.1.2: Type: text/html, Size: 15647 bytes --]

[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

[-- Attachment #2: Type: text/plain, Size: 121 bytes --]

-- 
fedora-devel-list mailing list
fedora-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-list

             reply	other threads:[~2009-08-18 22:10 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-18 22:10 Casimiro de Almeida Barreto [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-08-18 22:18 Troubleshooting pendrive ext2fs Casimiro de Almeida Barreto
2009-08-18 22:32 ` Andreas Dilger
2009-08-19 15:42 ` Casimiro de Almeida Barreto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A8B26D2.9000800@gmail.com \
    --to=casimiro.barreto@gmail.com \
    --cc=fedora-devel-list@redhat.com \
    --cc=linux-ext4@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.