Re: zeroing out part of an SDcard

2014-08-23 Thread Chris Murphy
Nice. http://www.spinics.net/lists/linux-btrfs/msg36918.html No special tool needed. e.g. I just tested this with Gnome Disks, with the default "don't overwrite with zeros (quick format)" option, using btrfs. All of, and only that chosen partition, was completely erased in about 2 seconds. Ev

Re: zeroing out part of an SDcard

2014-08-21 Thread Chris Murphy
PNY SDHC card, 16GB - pretty generic. In this case fstrim did work (pfft yeah whatever it didn't the last time I tried it), and so did mkfs.btrfs but they work differently according to strace. fstrim issues: ioctl(3, FITRIM, 0x7fffbf6b87e0)= 0 The result is write(1, "/mnt/: 13.9 MiB (14

Re: zeroing out part of an SDcard

2014-08-21 Thread Chris Murphy
SD Specifications Part 1 Physical Layer Simplified Specification Version 4.10 https://www.sdcard.org/downloads/pls/simplified_specs/part1_410.pdf page 38 4.3.5 Erase It is desirable to erase many write blocks simultaneously in order to enhance the data throughput. Identification of these write b

Re: zeroing out part of an SDcard

2014-08-21 Thread Chris Murphy
On Aug 21, 2014, at 11:00 AM, Chris Adams wrote: > Once upon a time, Chris Murphy said: >> However, quite a few sdcards don't respond to trim. > > Do _any_ SD cards support TRIM? I didn't think that was supported by > the protocol at all. It's a good question. fstrim spit back a message to t

Re: zeroing out part of an SDcard

2014-08-21 Thread Chris Adams
Once upon a time, Chris Murphy said: > However, quite a few sdcards don't respond to trim. Do _any_ SD cards support TRIM? I didn't think that was supported by the protocol at all. -- Chris Adams -- users mailing list users@lists.fedoraproject.org To unsubscribe or change subscription options

Re: zeroing out part of an SDcard

2014-08-21 Thread Chris Murphy
On Aug 21, 2014, at 6:51 AM, Robert Moskowitz wrote: > More on my compressing images from SDcards. > > I only need the boot info and 1st partition, so I remove the other > partitions, but of course there is still 1s out there so it will not compress > efficiently. I want to zero out the end o

Re: zeroing out part of an SDcard

2014-08-21 Thread Robert Moskowitz
On 08/21/2014 09:50 AM, Chris Adams wrote: Once upon a time, Robert Moskowitz said: # dd if=/dev/zero of=/dev/sdb bs=1M seek=1007620 Well, man says about seek: seek=N skip N obs-sized blocks at start of output and obs defaults to 512 bytes, and I *THOUGHT* fdisk was reporting # 51

Re: zeroing out part of an SDcard

2014-08-21 Thread Chris Adams
Once upon a time, Robert Moskowitz said: > >># dd if=/dev/zero of=/dev/sdb bs=1M seek=1007620 > Well, man says about seek: > >seek=N skip N obs-sized blocks at start of output > > and obs defaults to 512 bytes, and I *THOUGHT* fdisk was reporting # > 512 blocks, not bytes. fdisk report

Re: zeroing out part of an SDcard

2014-08-21 Thread Robert P. J. Day
On Thu, 21 Aug 2014, Robert Moskowitz wrote: > > On 08/21/2014 09:07 AM, Robert P. J. Day wrote: > > On Thu, 21 Aug 2014, Robert Moskowitz wrote: > > > > > More on my compressing images from SDcards. > > > > > > I only need the boot info and 1st partition, so I remove the other > > > partitions, >

Re: zeroing out part of an SDcard

2014-08-21 Thread Robert Moskowitz
On 08/21/2014 09:07 AM, Robert P. J. Day wrote: On Thu, 21 Aug 2014, Robert Moskowitz wrote: More on my compressing images from SDcards. I only need the boot info and 1st partition, so I remove the other partitions, but of course there is still 1s out there so it will not compress efficiently

Re: zeroing out part of an SDcard

2014-08-21 Thread Stephen Berg (Contractor)
On 08/21/2014 07:51 AM, Robert Moskowitz wrote: More on my compressing images from SDcards. I only need the boot info and 1st partition, so I remove the other partitions, but of course there is still 1s out there so it will not compress efficiently. I want to zero out the end of the card so fi

Re: zeroing out part of an SDcard

2014-08-21 Thread Robert P. J. Day
On Thu, 21 Aug 2014, Robert Moskowitz wrote: > More on my compressing images from SDcards. > > I only need the boot info and 1st partition, so I remove the other partitions, > but of course there is still 1s out there so it will not compress efficiently. > I want to zero out the end of the card so

zeroing out part of an SDcard

2014-08-21 Thread Robert Moskowitz
More on my compressing images from SDcards. I only need the boot info and 1st partition, so I remove the other partitions, but of course there is still 1s out there so it will not compress efficiently. I want to zero out the end of the card so first I use fdisk: # fdisk -l /dev/sdb Disk /de