| Summary: | Installing Mageia 1 to Mageia 2, Firefox settings got lost | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Jehan Hysseo <jehan.marmottard> |
| Component: | RPM Packages | Assignee: | Mageia Bug Squad <bugsquad> |
| Status: | RESOLVED WORKSFORME | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | andr55, davidwhodgins, mageia, sysadmin-bugs |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | CVE: | ||
| Status comment: | |||
| Bug Depends on: | 6022 | ||
| Bug Blocks: | |||
|
Description
Jehan Hysseo
2012-05-20 06:46:32 CEST
>1. Having a Mageia 1 (stable KDE) installation.
>2. Installing Mageia 2 last RC (KDE version again) over it, keeping only the
>home and formatting the other partitions.
How have you make the part 2 ? it it's with the live that will not work since it copy all data from the iso to the harddrive / and /home so if you use the same users you can lost data.
Hi, I indeed used Mageia 2 RC Live (Europe 1). I made an installation with custom partitioning and when it asks me what partitions I want to format and keep as is, I obviously kept the home as is. Are you telling me that even when doing so, it copies/overwrites data to existing users' home directories? Because if so, that's like a huge issue, on a user point of view. User data and customization is like the most important things on a Desktop (and this way of installing a huge historical assets of GNU/Linux distributions), and deleting some of this data â especially when the user knowingly and specifically checked a box asking not to do it â is not very nice. >Are you telling me that even when doing so, it copies/overwrites data to
>existing users' home directories? Because if so, that's like a huge issue
I guess so if you have the same user name but I'm *really* not sure
The Live cds should not be used for upgrade. They are designed for clean installations only. See https://bugs.mageia.org/show_bug.cgi?id=5687#c9 CC:
(none) =>
davidwhodgins That was a clean installation then. Are you telling me we can't do clean installation while reusing existing home directories? A new installation necessarily means we want to make only new users (and brand new homes)? Sometimes we don't have other possibilities too. For instance I happened by the past to change computer. When I did so, I want to keep my home, with all my software configuration and my personal data. And when doing so, I may come from another kind of GNU/Linux (32 bits to 64 for instance, or even a distribution other than Mageia. This was the case for my brand new work laptop where I recently passed from a distribution derived from Ubuntu to Mageia 2 beta). I still expect in this case that my data stays intact. And in our particular case, I expect not to lose my Firefox data for instance! In the installation described in this report, I don't know if I could have tried an upgrade (actually I did not see the option, there maybe was one), but Mageia 1 was broken (would not even start). It was my mother's computer. I see her every X weeks for only 1 day or 2. I went for the fast track (= I did not want to make an update based from a broken installation) because I want as less bad surprises as possible while I'm gone. Also I had no much time for problem analysis either. All this to say: I understand your point, and next time I'll try the upgrade. But still there are times when one needs, or even has no choice, and will do a fresh install keeping only home data. And when doing so, the home is considered sacred, customized, hence should stay untouched. Or if really some nice data processing can be proposed, a warning should occur, with a dialog box asking us if we want it to happen or not. At least that's my view on upgrade/fresh install altogether. According to your step 2, you did a clean install initially. It shouldn't have affected the /home partition. If you did a clean install after renaming ~.kde, this is indeed a bug. You should be able to recover access to an older firefox profile. (Assuming that it wasn't erased.) (The file names may have changed since I last installed Firefox. If so, look for something similar.) In the ~/.mozilla/firefox/, there is a file called profiles.ini It has the structure (my comments follow ##) : -------- [General] StartWithLastProfile=1 ## if =0, then given choice of profiles on start [Profile0] ## there is always at least one profile Name=default ## the profile name could have been changed to something else. IsRelative=1 ## indicates that "Path" is relative to ~/.mozilla/firefox Path=xxxxxxxx.default ## xxxxxxxx is an alphanumeric sequence generated by firefox ## this is the name of the profile directory [Profile1] ## if a second profile Name=somename ## whatever it is called in the profile manager IsRelative=1 Path=xxxxxxxx.somename [Profile2] ## if a third profile, etc ... -------- If the previous profile hasn't been deleted, you will see more than one profile directory. To make the previous profile accessible, just add a corresponding section to the profile.ini file. Note that each profile "Name" MUST be unique. That is how the profile is selected in the profile manager. So if not, rename the profile directory before adding the name to profile.ini Hope this helps :) CC:
(none) =>
andre999mga
Manuel Hiebel
2012-05-22 16:47:40 CEST
Depends on:
(none) =>
6022 (In reply to comment #5) > That was a clean installation then. Are you telling me we can't do clean > installation while reusing existing home directories? > A new installation necessarily means we want to make only new users (and brand > new homes)? The problem is that the live cd installer assumes a completely clean install, including /home. When the install is copied to the hard drive, the directory /home/live is created on disk, with the contents of what were in /home/live, while running the live cd. During the finish install, on first boot, the login for the first user is used to rename /home/live/ to home/user, and the config files edited to change references to /home/live to /home/user. The config files, etc, from the /home/live have now overwritten those in /home/user, since /home/ wasn't clean. While it's possible to workaround this by using a different loginid for the first user, or backing up/restoring /home/user, the live cd is not intended to be used for anything other then a completely clean install. If the current live CDs overwrite /home, there should be some warning to protect users. It would be nice to have at least an option to preserve any existing accounts, if not redesigning to automatically do so. I would say that if an existing /home is not reformatted on install, that it would be reasonable to assume that the user wished to preserve the contents of home, and thus install accordingly. Hey all, not read in details all the messages. I just wanted to clarify something still: the home partition has not been fully overwritten (fortunately! This would have been terrible). When you choose the custom partitioning (not sure what is the exact naming for it during install), it keeps its contents, as expected. So if bug there is, it is not *that* bad (though it is still bad, some people save in their browser information more important than my mother saves). So when I logged in as this user, I had all the data she had before. Simply when I ran Firefox, I noticed there was no history, no saved passwords and no bookmarks, even though my mother used this browser probably nearly daily. As far as I see, the only information she lost was the browser profile. I don't know if it erased the .mozilla/ folder, made a new profile, kept the former one but removed information for some reason. I can't check right now unfortunately as I don't have access to this computer for maybe 2 weeks. I would still propose a warning on the download page to tell people *not to* update a system from live for now, until some bug where data may be lost is further investigated. This said, is there still this /home/live renamed-to-first-user process during installation, even in the case of custom partitioning? From http://www.mageia.org/en/downloads/ ... LiveCDs Use LiveCDs for fresh new installs ONLY. DO NOT use those LiveCDs to upgrade from Mageia 1! Use above DVD or CD and see the upgrade guide. (In reply to comment #9) > This said, is there still this /home/live renamed-to-first-user process during > installation, even in the case of custom partitioning? With the live cds, it doesn't matter how you partition. The installation procedure is the same. (In reply to comment #8) > If the current live CDs overwrite /home, there should be some warning to > protect users. > It would be nice to have at least an option to preserve any existing accounts, > if not redesigning to automatically do so. > I would say that if an existing /home is not reformatted on install, that it > would be reasonable to assume that the user wished to preserve the contents of > home, and thus install accordingly. If you select the option to install from the grub menu, then there won't be anything in /home/live to overwrite the files in the home directory of the first user. I installed from the option in the Grub menu. (In reply to comment #13) > I installed from the option in the Grub menu. Looking in the squash compressed distrib file in the live cd, it does have a /home/live/.mozzila, but it is empty, so I wouldn't expect that to cause a problem. I've only checked the i586 gnome and kde4 Europe1-Americas final iso images. Might be different in other iso images, depending on the steps followed when they were created. I guess the only safe advice where you want to keep only /home would be to backup it's contents, and restore after the install. Extreme care would have to be taken, to ensure uid and gid consistency, especially if more than one id is involved. Hi, so if there is an empty .mozilla/ directory, isn't it possible that it just replaces the existing .mozilla/ with this empty directory? If I could, I'd make a test. But I don't have spare machines. :-/ Usually when directories are created by a package, they are only created if not present. Assuming that this is the case, please see comment 6 for reference. The new profile would be called default, with the corresponding directory yyyyyyyy.default The old profile also very likely be called default, with the corresponding directory xxxxxxxx.default, where yyyyyyyy is highly unlikely to be xxxxxxxx, both random alphanumeric strings generated automatically (by firefox in this case). The newly created profile.ini contains only one profile [Profile0] called default, referring to the new directory yyyyyyyy.default Even if the old directory is still there, it would not be visible. So the workaround would be to rename one of the "default" profiles and the directory, and to add a profile [Profile1], with the appropriately adjusted Name and Path fields. Or you could simply erase the newer profile, if you are totally sure that it contains no useful information (like added passwords or cookies or address entries), and adjust the path to the older profile. Hi, This bug was filed against cauldron, but we do not have cauldron at the moment. Please report whether this bug is still valid for Mageia 2. Thanks :) Cheers, marja Keywords:
(none) =>
NEEDINFO The problem was related to installing live CDs, so it was applying to mga2. The current advice is to not install live CDs over an existing installation, which was what was done. However this could be seen as an enhancement request (for mga3 ?), to allow live CDs to be used for clean installs over an existing installation. Or alternately, to include a warning if attempting to install a live CD. We are awaiting info to see the extent of the problem.
Sander Lepik
2012-05-26 15:05:46 CEST
Keywords:
NEEDINFO =>
(none) see the blocker bug 6022 Summary:
Installing Mageia 1 to Mageia 2 RC, Firefox settings got lost =>
Installing Mageia 1 to Mageia 2, Firefox settings got lost not really a bug, and some other are opened to make it more userfriendly Status:
NEW =>
RESOLVED |