Re: [gentoo-user] To Wifi or not to Wifi...

2015-07-30 Thread J. Roeleveld
On Wednesday, July 29, 2015 05:10:02 PM meino.cra...@gmx.de wrote:
> J. Roeleveld  [15-07-29 16:39]:
> > On Wednesday, July 29, 2015 10:54:53 AM Thanasis wrote:
> > > On 07/29/2015 05:42 AM, meino.cra...@gmx.de wrote:
> > > <...snip...>
> > > 
> > > > 2) How I can assign a static IP to my tablet.
> > > 
> > > At the end of /etc/dhcp/dhcpd.conf add a line like
> > > 
> > > host mytablet { hardware ethernet xx:xx:xx:xx:xx:xx;  fixed-address
> > > xxx.xxx.xxx.xxx; }
> > > 
> > > > 3) How I can change the MAC on my tablet.
> > > 
> > > What is the OS on the tablet?
> > 
> > If I read this right in this thread, I believe it's Android Lollipop.
> > In this case, without rooting, it definitely will not be possible.
> > 
> > I don't see why anyone would want to change the MAC on a tablet, other
> > then
> > try to break into someone elses WIFI.
> > 
> > --
> > Joost
> 
> Hi Joost,
> 
> your are right: It is Android Lollipop 5.0 ! :)

Same version as my mobile phone. (After the latest update)

> I think specialists experienced in networks, Wlans, Wifis and
> such know and are experienced in hacking into others devices. Changing
> the MAC may or may not a tool for that ... I simply dont know. I am
> just at the start to get Wifi working ... a very basic problem for
> others like you I think. For me...it is just a challenge.
> Are you experienced in breaking in someone elses WIFI via changing the
> MAC? Where came your idea from?

I played around with it in the past, not recently though.

MAC-based access control lists are simple and lightweight. Which is why I use 
them for WIFI networks (apart from the guest-WIFI). But I don't consider them 
secure enough to only rely on those.

I only actively set MAC-addresses for VMs to avoid duplications. I don't see 
the point in setting them specifically as they tend to be unique in my 
experience.

Only other reason I can think off for changing the MAC-address is to get around 
a MAC-based filtering.

--
Joost



[gentoo-user] Firefox 38.1.0 :-(

2015-07-30 Thread Alan Mackenzie
Hello, Gentoo.

Over the course of the last 24 hours, Firefox 38.1.0 became stable in
portage, so I merged it in.

What a mistake!

All my existing configuration (including for NoScript+), all my
bookmarks, all record of previous visits to site - gone, deleted,
vanished.  I'm not happy about that.

The usability of the program has gone down, down, down.  Not a lot seems
to work properly, anymore.  For example, it used to be that you could
mark a selection of "your" cookies then delete them in one operation.
Now you have to mark a single cookie and delete it, mark the next cookie
and delete it,   Even the screen area where the current URL is
displayed is now displayed in low-contrast miniscule type, so that I can
barely read it.

What on earth are the upstream developers thinking about?  Destroying
somebody's configuration is not a nice thing to do.

I've a feeling that all this must have been discussed here quite
recently, so apologies if I'm dredging up old stuff.  Still, a
recommendation as to how I might proceed would be welcome.  Should I go
back to 31.8.0 and stay there, or would I be better going with some fork
of firefox?

Has my old config/cookies/... actually been physically destroyed, or is
it just being disregarded by 38.1.0?  Looking at my ~/.mozilla/firefox
doesn't give me much hope.

Yours, in anger.
-- 
Alan Mackenzie (Nuremberg, Germany).



[gentoo-user] Resizing a FAT partition?

2015-07-30 Thread Meino . Cramer
Hi,

I have a SDcard of this layout:
Number  Start   End SizeType File system  Flags
 1  4194kB  32.0GB  32.0GB  primary  fat32lba

There are about 11 GByte of data on it.

The final result should be a SDcard with two partitions.
First a FAT32 with about 20GByte and a second with 10GByte
(ext4).

I took a look at parted and the resize command, which sounds
a little cryptic to me:

  resizepart partition end
 Change the end position of partition.  Note that this does 
 not  modify  any
 filesystem present in the partition.

One should use resize2f for that purpose.

Firstly I want to shrink the first partition and secondly it is a
plain FAT32 partition not ext-something. I did not find a 
"resizefat32" or similiar.

What tools do I need?
(beside the way to backup the SDcard, reinitialize it, put 2
partitions on it and copy back the stuff.)

How can I acchieve what I want?

Thank you very much in advance for any help!

Best regards,
Meino






Re: [gentoo-user] Firefox 38.1.0 :-(

2015-07-30 Thread Mick
On Thursday 30 Jul 2015 19:23:03 Alan Mackenzie wrote:
> Hello, Gentoo.
> 
> Over the course of the last 24 hours, Firefox 38.1.0 became stable in
> portage, so I merged it in.
> 
> What a mistake!
> 
> All my existing configuration (including for NoScript+), all my
> bookmarks, all record of previous visits to site - gone, deleted,
> vanished.  I'm not happy about that.
> 
> The usability of the program has gone down, down, down.  Not a lot seems
> to work properly, anymore.  For example, it used to be that you could
> mark a selection of "your" cookies then delete them in one operation.
> Now you have to mark a single cookie and delete it, mark the next cookie
> and delete it,   Even the screen area where the current URL is
> displayed is now displayed in low-contrast miniscule type, so that I can
> barely read it.
> 
> What on earth are the upstream developers thinking about?  Destroying
> somebody's configuration is not a nice thing to do.
> 
> I've a feeling that all this must have been discussed here quite
> recently, so apologies if I'm dredging up old stuff.  Still, a
> recommendation as to how I might proceed would be welcome.  Should I go
> back to 31.8.0 and stay there, or would I be better going with some fork
> of firefox?
> 
> Has my old config/cookies/... actually been physically destroyed, or is
> it just being disregarded by 38.1.0?  Looking at my ~/.mozilla/firefox
> doesn't give me much hope.
> 
> Yours, in anger.

I posted a message a week ago about this problem.  On a no-multilib 64bit 
machine FF fails to compile.

 http://article.gmane.org/gmane.linux.gentoo.user/284455

On two other 64bit and a 32bit machines it builds with no problems and nothing 
is deleted, or corrupted.

Someone else has already posted about losing their FF profile and settings.  
This however has not happened here.

Sorry I can't shed more light on this problem.

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Firefox 38.1.0 :-(

2015-07-30 Thread Alec Ten Harmsel
On Thu, Jul 30, 2015 at 06:23:03PM +, Alan Mackenzie wrote:
> Hello, Gentoo.
> 
> Over the course of the last 24 hours, Firefox 38.1.0 became stable in
> portage, so I merged it in.
> 
> What a mistake!
> 
> All my existing configuration (including for NoScript+), all my
> bookmarks, all record of previous visits to site - gone, deleted,
> vanished.  I'm not happy about that.

That's a feature ;). Occasional forced cleaning. This happened when I
upgraded (I'm on unstable), but I don't have bookmarks nor saved
passwords, and my custom config takes ~10 seconds to set up clicking
through the menu, so I didn't really care.

Backups are good. Putting all of the config and bookmarks in version
control would be even better, except Firefox uses a pretty awesome
combination of sqlite, JSON, JavaScript, and text for storing
configuration and bookmarks, so of course that would be a nightmare.

> The usability of the program has gone down, down, down.  Not a lot seems
> to work properly, anymore.  For example, it used to be that you could
> mark a selection of "your" cookies then delete them in one operation.
> Now you have to mark a single cookie and delete it, mark the next cookie
> and delete it,   Even the screen area where the current URL is
> displayed is now displayed in low-contrast miniscule type, so that I can
> barely read it.

More "features".

> What on earth are the upstream developers thinking about?  Destroying
> somebody's configuration is not a nice thing to do.
> 
> I've a feeling that all this must have been discussed here quite
> recently, so apologies if I'm dredging up old stuff.  Still, a
> recommendation as to how I might proceed would be welcome.  Should I go
> back to 31.8.0 and stay there, or would I be better going with some fork
> of firefox?

The only related thing I can find is a bug where starting the Profile
Manager deletes all the profiles, or something close to that.

Alec



Re: [gentoo-user] Resizing a FAT partition?

2015-07-30 Thread Neil Bothwick
On Thu, 30 Jul 2015 20:32:05 +0200, meino.cra...@gmx.de wrote:

> Firstly I want to shrink the first partition and secondly it is a
> plain FAT32 partition not ext-something. I did not find a 
> "resizefat32" or similiar.

You need fatresize, which doesn't appear to be in portage. The approach
when reducing a partition's size is to first reduce the size of the
filesystem, to slightly less than the final partition size for safety.
Then delete and recreate the partition, with the same starting point.
Finally resize the filesystem to fill the new partition.
 
> What tools do I need?

The easiest way is probably to use GParted, which does all the hard work
for you, just tell it the new size of the partition. It will also create
the second partition for you, as a bonus.

> (beside the way to backup the SDcard, reinitialize it, put 2
> partitions on it and copy back the stuff.)

Given that you should backup any important data before resizing any
filesystem, this may be the easiest method.


-- 
Neil Bothwick

Unsolicited advice is the junk mail of life


pgpCI2nxoDgmv.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Resizing a FAT partition?

2015-07-30 Thread Todd Goodman
* meino.cra...@gmx.de  [150730 14:32]:
> Hi,
> 
> I have a SDcard of this layout:
> Number  Start   End SizeType File system  Flags
>  1  4194kB  32.0GB  32.0GB  primary  fat32lba
> 
> There are about 11 GByte of data on it.
> 
> The final result should be a SDcard with two partitions.
> First a FAT32 with about 20GByte and a second with 10GByte
> (ext4).
> 
> I took a look at parted and the resize command, which sounds
> a little cryptic to me:
> 
>   resizepart partition end
>  Change the end position of partition.  Note that this 
> does  not  modify  any
>  filesystem present in the partition.
> 
> One should use resize2f for that purpose.
> 
> Firstly I want to shrink the first partition and secondly it is a
> plain FAT32 partition not ext-something. I did not find a 
> "resizefat32" or similiar.
> 
> What tools do I need?
> (beside the way to backup the SDcard, reinitialize it, put 2
> partitions on it and copy back the stuff.)
> 
> How can I acchieve what I want?
> 
> Thank you very much in advance for any help!
> 
> Best regards,
> Meino

Hi Meino,

The "difficulty" with shrinking partitions is that you need to shrink
the filesystem in the partition first and then change the partition
information (which you can then do if you're careful with your favorite
partition tool.)

There are definitely tools to do this and I'm surprised parted says it
doesn't touch the filesystem in the partition (but that might have been
a recent parted change?)

Personally, since you're going to play around with the partitions and
resizing existing filesystems, you should really have a backup.

If you're going to have a backup then the easiest thing to me is to
create new partitions and then filesystems and then restore from the
backup.

However, if you really want to live dangerously, the last gparted boot
disc image I used could shrink FAT32 filesystems and partitions.  You
might want to see if it still can do so.

Good luck!

Todd



Re: [gentoo-user] Firefox 38.1.0 :-(

2015-07-30 Thread Marc Joliet
Am Thu, 30 Jul 2015 18:23:03 +
schrieb Alan Mackenzie :

> Hello, Gentoo.

Hello,

> Over the course of the last 24 hours, Firefox 38.1.0 became stable in
> portage, so I merged it in.
> 
> What a mistake!
> 
> All my existing configuration (including for NoScript+), all my
> bookmarks, all record of previous visits to site - gone, deleted,
> vanished.  I'm not happy about that.

I'm sorry.  All I can say is that I have never had anything like that happen
to me, and I've been using the ~amd64 versions for a while now (so I'm on 39.0
at the moment).

> The usability of the program has gone down, down, down.  Not a lot seems
> to work properly, anymore.  For example, it used to be that you could
> mark a selection of "your" cookies then delete them in one operation.
> Now you have to mark a single cookie and delete it, mark the next cookie
> and delete it, 

Why do you delete cookies manually in the first place?  Do none of the many
cookie manager addons available for Firefox suite your needs?  I use
"Self-Destructing Cookies" myself, which by default deletes a website's cookies
as soon as the tab is closed (the other two options are "when Firefox closes"
and "never"). (For so-called "Super-Cookies" there's also "BetterPrivacy".)

> Even the screen area where the current URL is
> displayed is now displayed in low-contrast miniscule type, so that I can
> barely read it.

Does the font configuration not suffice?  I see a "minimum font size" setting
there.  Maybe it won't throw everything else out of whack.

> What on earth are the upstream developers thinking about?  Destroying
> somebody's configuration is not a nice thing to do.

I would assume that it is a bug and thus not intentional.

> I've a feeling that all this must have been discussed here quite
> recently, so apologies if I'm dredging up old stuff.  Still, a
> recommendation as to how I might proceed would be welcome.  Should I go
> back to 31.8.0 and stay there, or would I be better going with some fork
> of firefox?

As always, use whatever suits you.  Personally, I'm sticking with Firefox for a
variety of reasons, one of them being that Mozilla is one of the few web
technology organisations that actually seems to care about user privacy.
*Without* resorting to sticking with -- let alone reverting to -- stone age
technologies.

> Has my old config/cookies/... actually been physically destroyed, or is
> it just being disregarded by 38.1.0?  Looking at my ~/.mozilla/firefox
> doesn't give me much hope.

If you don't have backups, I'm sorry.  Data loss is never fun.

> Yours, in anger.

HTH
-- 
Marc Joliet
--
"People who think they know everything really annoy those of us who know we
don't" - Bjarne Stroustrup


pgpxjnulWFqbY.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Resizing a FAT partition?

2015-07-30 Thread Mick
On Thursday 30 Jul 2015 20:18:36 Todd Goodman wrote:
> * meino.cra...@gmx.de  [150730 14:32]:
> > Hi,
> > 
> > I have a SDcard of this layout:
> > Number  Start   End SizeType File system  Flags
> > 
> >  1  4194kB  32.0GB  32.0GB  primary  fat32lba
> > 
> > There are about 11 GByte of data on it.
> > 
> > The final result should be a SDcard with two partitions.
> > First a FAT32 with about 20GByte and a second with 10GByte
> > (ext4).
> > 
> > I took a look at parted and the resize command, which sounds
> > 
> > a little cryptic to me:
> >   resizepart partition end
> >   
> >  Change the end position of partition.  Note that
> >  this does  not  modify  any filesystem present in
> >  the partition.
> > 
> > One should use resize2f for that purpose.
> > 
> > Firstly I want to shrink the first partition and secondly it is a
> > plain FAT32 partition not ext-something. I did not find a
> > "resizefat32" or similiar.
> > 
> > What tools do I need?
> > (beside the way to backup the SDcard, reinitialize it, put 2
> > partitions on it and copy back the stuff.)
> > 
> > How can I acchieve what I want?
> > 
> > Thank you very much in advance for any help!
> > 
> > Best regards,
> > Meino
> 
> Hi Meino,
> 
> The "difficulty" with shrinking partitions is that you need to shrink
> the filesystem in the partition first and then change the partition
> information (which you can then do if you're careful with your favorite
> partition tool.)
> 
> There are definitely tools to do this and I'm surprised parted says it
> doesn't touch the filesystem in the partition (but that might have been
> a recent parted change?)
> 
> Personally, since you're going to play around with the partitions and
> resizing existing filesystems, you should really have a backup.
> 
> If you're going to have a backup then the easiest thing to me is to
> create new partitions and then filesystems and then restore from the
> backup.
> 
> However, if you really want to live dangerously, the last gparted boot
> disc image I used could shrink FAT32 filesystems and partitions.  You
> might want to see if it still can do so.
> 
> Good luck!
> 
> Todd

Don't forget to defrag the filesystem first!  If you were making it larger 
then it wouldn't matter, but if you are shrinking it, then you want your files 
to be contiguous and not sprayed all over the partition.

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


[gentoo-user] Re: Resizing a FAT partition?

2015-07-30 Thread Grant Edwards
On 2015-07-30, Neil Bothwick  wrote:
> On Thu, 30 Jul 2015 20:32:05 +0200, meino.cra...@gmx.de wrote:
>
>> Firstly I want to shrink the first partition and secondly it is a
>> plain FAT32 partition not ext-something. I did not find a 
>> "resizefat32" or similiar.
>
> You need fatresize, which doesn't appear to be in portage. The approach
> when reducing a partition's size is to first reduce the size of the
> filesystem, to slightly less than the final partition size for safety.
> Then delete and recreate the partition, with the same starting point.
> Finally resize the filesystem to fill the new partition.
>  
>> What tools do I need?
>
> The easiest way is probably to use GParted, which does all the hard work
> for you, just tell it the new size of the partition. It will also create
> the second partition for you, as a bonus.

I've read good things about Parted Magic:

  https://partedmagic.com/

AFAICT, it's a friendly front-end to parted (as is GParted), but also
includes some extra abilities like cloning partitions and disks for
backup purposes.

>> (beside the way to backup the SDcard, reinitialize it, put 2
>> partitions on it and copy back the stuff.)
>
> Given that you should backup any important data before resizing any
> filesystem, this may be the easiest method.

I've had resize operations go pear-shaped on me.  I haven't seen it 
often, but I wouldn't attempt a resize without a backup copy of the
partition involved.

-- 
Grant Edwards   grant.b.edwardsYow! Did YOU find a
  at   DIGITAL WATCH in YOUR box
  gmail.comof VELVEETA?




Re: [gentoo-user] Firefox 38.1.0 :-(

2015-07-30 Thread Emre Eryilmaz
2015-07-30 21:23 GMT+03:00 Alan Mackenzie :
> Over the course of the last 24 hours, Firefox 38.1.0 became stable in
> portage, so I merged it in.
>
> What a mistake!

It's a firefox profile problems. No data loss. Because aurora goes
firefox developer edition and firefox developer edition has a new
firefox profile. Its solutions:
https://bugs.gentoo.org/show_bug.cgi?id=555416#c5



[gentoo-user] Re: Firefox-31.8.0 build fails on no-multilib PC

2015-07-30 Thread Mick
On Saturday 25 Jul 2015 09:29:23 Mick wrote:
> Any idea how I can fix the errors it mentions below:
> 
> ===
> creating cache ./config.cache
> checking host system type... x86_64-unknown-linux-gnu
> checking target system type... x86_64-pc-linux-gnu
> checking build system type... x86_64-pc-linux-gnu
> checking for mawk... no
> checking for gawk... gawk
> Using Python from environment variable $PYTHON
> Creating Python environment
> New python executable in /var/tmp/portage/www-
> client/firefox-31.8.0/work/mozilla-esr31/obj-x86_64-pc-linux-
> gnu/_virtualenv/bin/python2.7
> Also creating executable in /var/tmp/portage/www-
> client/firefox-31.8.0/work/mozilla-esr31/obj-x86_64-pc-linux-
> gnu/_virtualenv/bin/python
> Installing setuptools, pip...
>   Complete output from command /var/tmp/portage/www...ualenv/bin/python2.7
> -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip:
>   Traceback (most recent call last):
>   File "", line 1, in 
>   File "/var/tmp/portage/www-client/firefox-31.8.0/work/mozilla-
> esr31/python/virtualenv/virtualenv_support/pip-1.5.4-py2.py3-none-
> any.whl/pip/__init__.py", line 10, in 
>   File "/var/tmp/portage/www-client/firefox-31.8.0/work/mozilla-
> esr31/python/virtualenv/virtualenv_support/pip-1.5.4-py2.py3-none-
> any.whl/pip/util.py", line 18, in 
>   File "/var/tmp/portage/www-client/firefox-31.8.0/work/mozilla-
> esr31/python/virtualenv/virtualenv_support/pip-1.5.4-py2.py3-none-
> any.whl/pip/_vendor/distlib/version.py", line 14, in 
>   File "/var/tmp/portage/www-client/firefox-31.8.0/work/mozilla-
> esr31/python/virtualenv/virtualenv_support/pip-1.5.4-py2.py3-none-
> any.whl/pip/_vendor/distlib/compat.py", line 31, in 
> ImportError: cannot import name HTTPSHandler
> 
> ...Installing setuptools, pip...done.
> Traceback (most recent call last):
>   File "/var/tmp/portage/www-client/firefox-31.8.0/work/mozilla-
> esr31/python/virtualenv/virtualenv.py", line 2338, in 
> main()
>   File "/var/tmp/portage/www-client/firefox-31.8.0/work/mozilla-
> esr31/python/virtualenv/virtualenv.py", line 824, in main
> symlink=options.symlink)
>   File "/var/tmp/portage/www-client/firefox-31.8.0/work/mozilla-
> esr31/python/virtualenv/virtualenv.py", line 992, in create_environment
> install_wheel(to_install, py_executable, search_dirs)
>   File "/var/tmp/portage/www-client/firefox-31.8.0/work/mozilla-
> esr31/python/virtualenv/virtualenv.py", line 960, in install_wheel
> 'PIP_NO_INDEX': '1'
>   File "/var/tmp/portage/www-client/firefox-31.8.0/work/mozilla-
> esr31/python/virtualenv/virtualenv.py", line 902, in call_subprocess
> % (cmd_desc, proc.returncode))
> OSError: Command /var/tmp/portage/www...ualenv/bin/python2.7 -c "import
> sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip failed with error
> code 1 Traceback (most recent call last):
>   File "/var/tmp/portage/www-client/firefox-31.8.0/work/mozilla-
> esr31/python/mozbuild/mozbuild/virtualenv.py", line 473, in 
> manager.ensure()
>   File "/var/tmp/portage/www-client/firefox-31.8.0/work/mozilla-
> esr31/python/mozbuild/mozbuild/virtualenv.py", line 128, in ensure
> return self.build()
>   File "/var/tmp/portage/www-client/firefox-31.8.0/work/mozilla-
> esr31/python/mozbuild/mozbuild/virtualenv.py", line 371, in build
> self.create()
>   File "/var/tmp/portage/www-client/firefox-31.8.0/work/mozilla-
> esr31/python/mozbuild/mozbuild/virtualenv.py", line 147, in create
> raise Exception('Error creating virtualenv.')
> Exception: Error creating virtualenv.
> -- config.log --
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
> configure:1212: checking host system type
> configure:1233: checking target system type
> configure:1251: checking build system type
> configure:1326: checking for mawk
> configure:1326: checking for gawk
> *** Fix above errors and then restart with\
>"make -f client.mk build"
> /var/tmp/portage/www-client/firefox-31.8.0/work/mozilla-esr31/client.mk:344
> : recipe for target 'configure' failed
> make[2]: *** [configure] Error 1
> make[2]: Leaving directory '/var/tmp/portage/www-
> client/firefox-31.8.0/work/mozilla-esr31'
> /var/tmp/portage/www-client/firefox-31.8.0/work/mozilla-esr31/client.mk:358
> : recipe for target
> '/var/tmp/portage/www-client/firefox-31.8.0/work/mozilla-
> esr31/obj-x86_64-pc-linux-gnu/Makefile' failed
> make[1]: *** [/var/tmp/portage/www-client/firefox-31.8.0/work/mozilla-
> esr31/obj-x86_64-pc-linux-gnu/Makefile] Error 2
> make[1]: Leaving directory '/var/tmp/portage/www-
> client/firefox-31.8.0/work/mozilla-esr31'
> client.mk:168: recipe for target 'build' failed
> make: *** [build] Error 2
>  * ERROR: www-client/firefox-31.8.0::gentoo failed (compile phase):
>  *   emake failed
>  *
>  * If you need support, post the output of `emer

Re: [gentoo-user] Re: Resizing a FAT partition?

2015-07-30 Thread Francisco Ares
2015-07-30 16:26 GMT-03:00 Grant Edwards :

> On 2015-07-30, Neil Bothwick  wrote:
> > On Thu, 30 Jul 2015 20:32:05 +0200, meino.cra...@gmx.de wrote:
> >
> >> Firstly I want to shrink the first partition and secondly it is a
> >> plain FAT32 partition not ext-something. I did not find a
> >> "resizefat32" or similiar.
> >
> > You need fatresize, which doesn't appear to be in portage. The approach
> > when reducing a partition's size is to first reduce the size of the
> > filesystem, to slightly less than the final partition size for safety.
> > Then delete and recreate the partition, with the same starting point.
> > Finally resize the filesystem to fill the new partition.
> >
> >> What tools do I need?
> >
> > The easiest way is probably to use GParted, which does all the hard work
> > for you, just tell it the new size of the partition. It will also create
> > the second partition for you, as a bonus.
>
> I've read good things about Parted Magic:
>
>   https://partedmagic.com/
>
> AFAICT, it's a friendly front-end to parted (as is GParted), but also
> includes some extra abilities like cloning partitions and disks for
> backup purposes.
>
> >> (beside the way to backup the SDcard, reinitialize it, put 2
> >> partitions on it and copy back the stuff.)
> >
> > Given that you should backup any important data before resizing any
> > filesystem, this may be the easiest method.
>
> I've had resize operations go pear-shaped on me.  I haven't seen it
> often, but I wouldn't attempt a resize without a backup copy of the
> partition involved.
>
> --
> Grant Edwards   grant.b.edwardsYow! Did YOU find a
>   at   DIGITAL WATCH in YOUR
> box
>   gmail.comof VELVEETA?
>
>
>
Flash memory devices are tricky when you try do defrag, as there is extra
logic inside them to do the opposite: spread as much data as possible, as
to equalize the number of write operations - the main limit for flash
memory - for all sectors.

Most defrag tools do this by reading files to RAM, reordering them, erasing
the originals from the media, then writing them again, using no direct
sector access, leaving that to the operating system. And it works on
magnetic media, as it creates empty spaces suitable for continuous files.

So that extra logic may fool you, making you believe it worked, when it
didn't.

Considering this, as already said, I would copy everything to another
media, set up a new partition layout, format the new partitions as desired,
then get all data back to the new layout.

Just my 2 cents, of course.

Good luck
Francisco


Re: [gentoo-user] Re: Resizing a FAT partition?

2015-07-30 Thread Todd Goodman
* Francisco Ares  [150730 15:53]:
[..SNIP..}
> Flash memory devices are tricky when you try do defrag, as there is extra
> logic inside them to do the opposite: spread as much data as possible, as
> to equalize the number of write operations - the main limit for flash
> memory - for all sectors.
> 
> Most defrag tools do this by reading files to RAM, reordering them, erasing
> the originals from the media, then writing them again, using no direct
> sector access, leaving that to the operating system. And it works on
> magnetic media, as it creates empty spaces suitable for continuous files.
> 
> So that extra logic may fool you, making you believe it worked, when it
> didn't.
> 
> Considering this, as already said, I would copy everything to another
> media, set up a new partition layout, format the new partitions as desired,
> then get all data back to the new layout.
> 
> Just my 2 cents, of course.
> 
> Good luck
> Francisco

I don't believe this is right (though I've been wrong before.)

Both partitions and filesystems (including defragging filesystems)
operate at the block level.

Wear leveling and bad block handling happen "below" the block level.

If you gave flash memory data for block n and later tried to read block
n and got back something different it would be very broken.

Of course physically logical block n might actually be stored in
physical block y, but the flash controller (or whatever is responsible
for wear leveling and bad block mapping) still needs to know to give
back the data from physical block y when it's asked for logical block n.

Todd



Re: [gentoo-user] Re: Resizing a FAT partition?

2015-07-30 Thread Mick
On Thursday 30 Jul 2015 20:52:24 Francisco Ares wrote:
> 2015-07-30 16:26 GMT-03:00 Grant Edwards :
> > On 2015-07-30, Neil Bothwick  wrote:
> > > On Thu, 30 Jul 2015 20:32:05 +0200, meino.cra...@gmx.de wrote:
> > >> Firstly I want to shrink the first partition and secondly it is a
> > >> plain FAT32 partition not ext-something. I did not find a
> > >> "resizefat32" or similiar.
> > > 
> > > You need fatresize, which doesn't appear to be in portage. The approach
> > > when reducing a partition's size is to first reduce the size of the
> > > filesystem, to slightly less than the final partition size for safety.
> > > Then delete and recreate the partition, with the same starting point.
> > > Finally resize the filesystem to fill the new partition.
> > > 
> > >> What tools do I need?
> > > 
> > > The easiest way is probably to use GParted, which does all the hard
> > > work for you, just tell it the new size of the partition. It will also
> > > create the second partition for you, as a bonus.
> > 
> > I've read good things about Parted Magic:
> >   https://partedmagic.com/
> > 
> > AFAICT, it's a friendly front-end to parted (as is GParted), but also
> > includes some extra abilities like cloning partitions and disks for
> > backup purposes.
> > 
> > >> (beside the way to backup the SDcard, reinitialize it, put 2
> > >> partitions on it and copy back the stuff.)
> > > 
> > > Given that you should backup any important data before resizing any
> > > filesystem, this may be the easiest method.
> > 
> > I've had resize operations go pear-shaped on me.  I haven't seen it
> > often, but I wouldn't attempt a resize without a backup copy of the
> > partition involved.
> > 
> > --
> > Grant Edwards   grant.b.edwardsYow! Did YOU find a
> > 
> >   at   DIGITAL WATCH in YOUR
> > 
> > box
> > 
> >   gmail.comof VELVEETA?
> 
> Flash memory devices are tricky when you try do defrag, as there is extra
> logic inside them to do the opposite: spread as much data as possible, as
> to equalize the number of write operations - the main limit for flash
> memory - for all sectors.
> 
> Most defrag tools do this by reading files to RAM, reordering them, erasing
> the originals from the media, then writing them again, using no direct
> sector access, leaving that to the operating system. And it works on
> magnetic media, as it creates empty spaces suitable for continuous files.
> 
> So that extra logic may fool you, making you believe it worked, when it
> didn't.
> 
> Considering this, as already said, I would copy everything to another
> media, set up a new partition layout, format the new partitions as desired,
> then get all data back to the new layout.
> 
> Just my 2 cents, of course.
> 
> Good luck
> Francisco

Good catch - I didn't notice it was an SDcard.  Yes, defrag does not apply.

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Firefox 38.1.0 :-(

2015-07-30 Thread Alan Mackenzie
Hello, Emre.

On Thu, Jul 30, 2015 at 10:46:40PM +0300, Emre Eryilmaz wrote:
> 2015-07-30 21:23 GMT+03:00 Alan Mackenzie :
> > Over the course of the last 24 hours, Firefox 38.1.0 became stable in
> > portage, so I merged it in.

> > What a mistake!

> It's a firefox profile problems. No data loss.

That's good to hear!

> Because aurora goes firefox developer edition and firefox developer
> edition has a new firefox profile. Its solutions:
> https://bugs.gentoo.org/show_bug.cgi?id=555416#c5

Thanks, but I don't see an explicit solution there.  Basically, I don't
really know what Firefox profiles are.  I think that that section of the
bug report you wrote is telling me I need to manually edit my
~/.mozilla/firefox/profiles.ini in some fashion.  I don't know how to
start Firefox in a particular profile.

For what it's worth, my 38.1.0 is built with the bindist USE flag set.
As far as I am aware, my 31.8.0 was also built with bindist set.

I still can't see how to fix this.  Would you help me out, please?

I don't think 38.1.0 should have been stabilised with this serious
problem outstanding.

-- 
Alan Mackenzie (Nuremberg, Germany).



Re: [gentoo-user] Firefox 38.1.0 :-(

2015-07-30 Thread Emre Eryilmaz
2015-07-31 0:12 GMT+03:00 Alan Mackenzie :
> Thanks, but I don't see an explicit solution there.  Basically, I don't
> really know what Firefox profiles are.  I think that that section of the
> bug report you wrote is telling me I need to manually edit my
> ~/.mozilla/firefox/profiles.ini in some fashion.  I don't know how to
> start Firefox in a particular profile.

Hi Alan,

1- open with a editor ~/.mozilla/firefox/profiles.ini file.

2- Sample profiles.ini :

--

[General]
StartWithLastProfile=1   ===> change this line if default value 1. change 1 to 0

[Profile0]
Name=default
IsRelative=1
Path=igoxrf4f.default
Default=1

[Profile1]
Name=dev-edition-default
IsRelative=1
Path=y2s06zsp.dev-edition-default

--

change "StartWithLastProfile=1" line to "StartWithLastProfile=0"

3-   restart firefox and that's it.



Re: [gentoo-user] Firefox 38.1.0 :-(

2015-07-30 Thread Alan Mackenzie
Hello, Emre.

On Fri, Jul 31, 2015 at 12:36:49AM +0300, Emre Eryilmaz wrote:

> 1- open with a editor ~/.mozilla/firefox/profiles.ini file.

> 2- Sample profiles.ini :

> --

> [General]
> StartWithLastProfile=1   ===> change this line if default value 1. change 1 
> to 0

> [Profile0]
> Name=default
> IsRelative=1
> Path=igoxrf4f.default
> Default=1

> [Profile1]
> Name=dev-edition-default
> IsRelative=1
> Path=y2s06zsp.dev-edition-default

> --

> change "StartWithLastProfile=1" line to "StartWithLastProfile=0"

> 3-   restart firefox and that's it.

Thanks.  That's done the job!  I've got my old settings, etc. back
again.

-- 
Alan Mackenzie (Nuremberg, Germany).



Re: [gentoo-user] Resizing a FAT partition?

2015-07-30 Thread Meino . Cramer
Mick  [15-07-31 03:32]:
> On Thursday 30 Jul 2015 20:18:36 Todd Goodman wrote:
> > * meino.cra...@gmx.de  [150730 14:32]:
> > > Hi,
> > > 
> > > I have a SDcard of this layout:
> > > Number  Start   End SizeType File system  Flags
> > > 
> > >  1  4194kB  32.0GB  32.0GB  primary  fat32lba
> > > 
> > > There are about 11 GByte of data on it.
> > > 
> > > The final result should be a SDcard with two partitions.
> > > First a FAT32 with about 20GByte and a second with 10GByte
> > > (ext4).
> > > 
> > > I took a look at parted and the resize command, which sounds
> > > 
> > > a little cryptic to me:
> > >   resizepart partition end
> > >   
> > >  Change the end position of partition.  Note that
> > >  this does  not  modify  any filesystem present in
> > >  the partition.
> > > 
> > > One should use resize2f for that purpose.
> > > 
> > > Firstly I want to shrink the first partition and secondly it is a
> > > plain FAT32 partition not ext-something. I did not find a
> > > "resizefat32" or similiar.
> > > 
> > > What tools do I need?
> > > (beside the way to backup the SDcard, reinitialize it, put 2
> > > partitions on it and copy back the stuff.)
> > > 
> > > How can I acchieve what I want?
> > > 
> > > Thank you very much in advance for any help!
> > > 
> > > Best regards,
> > > Meino
> > 
> > Hi Meino,
> > 
> > The "difficulty" with shrinking partitions is that you need to shrink
> > the filesystem in the partition first and then change the partition
> > information (which you can then do if you're careful with your favorite
> > partition tool.)
> > 
> > There are definitely tools to do this and I'm surprised parted says it
> > doesn't touch the filesystem in the partition (but that might have been
> > a recent parted change?)
> > 
> > Personally, since you're going to play around with the partitions and
> > resizing existing filesystems, you should really have a backup.
> > 
> > If you're going to have a backup then the easiest thing to me is to
> > create new partitions and then filesystems and then restore from the
> > backup.
> > 
> > However, if you really want to live dangerously, the last gparted boot
> > disc image I used could shrink FAT32 filesystems and partitions.  You
> > might want to see if it still can do so.
> > 
> > Good luck!
> > 
> > Todd
> 
> Don't forget to defrag the filesystem first!  If you were making it larger 
> then it wouldn't matter, but if you are shrinking it, then you want your 
> files 
> to be contiguous and not sprayed all over the partition.
> 
> -- 
> Regards,
> Mick


Hi all,

thanks a lot for all your help ! :)))

I did a back up and tried gparted with success! YEAH!

Have a nice weekend!
Best regards,
Meino