Re: [Dorset] Cannot get into KWallet after copying my Home directory from an old Spinning Rust Drive to a new SSD
Hi Terry, > This allowed me to clone 'Partition to Partition' and simultaneously > expand the destination partition to fill the unused space on the disc, > so I didn't need to adjust anything with GParted afterwards. Sounds good. You may want to arrange for the filesystems on your new SSD to have an fsck, e.g. on next boot, if they haven't since being created. tune2fs(8)'s -l, -c, -C, and -i are useful for ext[234] filesystems to arrange that. -- Cheers, Ralph. -- Next meeting: BEC, Bournemouth, Tuesday, 2019-12-03 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk/ New thread, don't hijack: mailto:dorset@mailman.lug.org.uk
Re: [Dorset] Cannot get into KWallet after copying my Home directory from an old Spinning Rust Drive to a new SSD
On Thursday, 28 November 2019 17:59:09 GMT Ralph Corderoy wrote: > Boot something like Clonezilla from a USB stick and have it copy all the > used old disk, partition table and all partitions, to the new disk. > Given the caddy is probably a bottleneck, I'd put the old disk in there > as reading is normally quicker than writing and the caddy may have less > impact. Also, caddy interfaces can be flaky compared to having the > drive installed properly. > https://www.clonezilla.org/show-live-doc-content.php?topic=clonezilla-live/d > oc/03_Disk_to_disk_clone > > Afterwards, if the new disk is working well, boot from a USB stick again > and use something like gparted to adjust the partitions to use more of > the disk if you want, e.g. expand /home assuming that's the last > partition before all the free space. Or you can combine partition > resizing with the initial copying in Clonezilla if you're confident. > https://clonezilla.org/clonezilla-live/doc/03_Disk_to_disk_clone/advanced/05 > -advanced-param.php I didn't get round to doing this yesterday because my journey up to the Midlands and back at the weekend was absolutely horrendous ;-( I spent a fair chunk of yesterday catching up with jobs and, well, sleeping. In the event, I Booted into Parted Magic this morning and chose 'Clone Disk' with both discs plugged into this machine. This allowed me to clone 'Partition to Partition' and simultaneously expand the destination partition to fill the unused space on the disc, so I didn't need to adjust anything with GParted afterwards. I now have 660 GB free on my home partition instead of 0% free as I had at one point last week. -- Terry Coles -- Next meeting: BEC, Bournemouth, Tuesday, 2019-12-03 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk/ New thread, don't hijack: mailto:dorset@mailman.lug.org.uk
Re: [Dorset] Cannot get into KWallet after copying my Home directory from an old Spinning Rust Drive to a new SSD
On Thursday, 28 November 2019 17:59:09 GMT Ralph Corderoy wrote: > I think Hamish had it right if you're happy with your old system and > don't want to start from a fresh install of Kubuntu from installation > media. On the other hand, if you think a fresh install might have > benefits then I'd do it from installation media and not by copying an > existing 19.10 installation. I've already done a clean install. > Boot something like Clonezilla from a USB stick and have it copy all the > used old disk, partition table and all partitions, to the new disk. I'm using Parted Magic, so I have everything! > Given the caddy is probably a bottleneck, I'd put the old disk in there > as reading is normally quicker than writing and the caddy may have less > impact. Also, caddy interfaces can be flaky compared to having the > drive installed properly. I suppose I could do the copy with both discs connected to the SATA buses, by removing the smaller SSD that contains my root partition and plugging the old one in its place. I only have two buses, so I can't simply connect everything at once. > Afterwards, if the new disk is working well, boot from a USB stick again > and use something like gparted to adjust the partitions to use more of > the disk if you want, e.g. expand /home assuming that's the last > partition before all the free space. Or you can combine partition > resizing with the initial copying in Clonezilla if you're confident. > https://clonezilla.org/clonezilla-live/doc/03_Disk_to_disk_clone/advanced/05 > -advanced-param.php That's pretty much what I was intending to do when I'd restored the Redo Backup image. > If you want to juggle partitions around on the new disk then it may be > better to do it all with gparted from a live USB stick, creating the > partition table, then copying/resizing each partition in turn to create > your preferred layout and sizes. I'll see what works best when I get back to Dorset on Monday. See Y'all Tuesdaay. -- Terry -- Next meeting: BEC, Bournemouth, Tuesday, 2019-12-03 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk/ New thread, don't hijack: mailto:dorset@mailman.lug.org.uk
Re: [Dorset] Cannot get into KWallet after copying my Home directory from an old Spinning Rust Drive to a new SSD
Hi Patrick, > I don't know how prevalent this sort of failure is, but it taught me > never to fully trust a USB-to-SATA interface when troubleshooting disk > problems. It does seem there's lots of cheap implementations, probably based on a few poor controller chips, that work fine for 99·99…% of transactions and that's probably okay if just accessing a few files but the number of sectors on a drive makes that 0·00…1% bite. What I've done in the past is take a digest of source with it not in the caddy, move it to the caddy, copy source to destination, flush any caches, compare the earlier digest to one of the destination. It needs careful tracking of what's being digested though to ensure it's the same both times, e.g. the destination drive might be bigger. -- Cheers, Ralph. -- Next meeting: BEC, Bournemouth, Tuesday, 2019-12-03 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk/ New thread, don't hijack: mailto:dorset@mailman.lug.org.uk
Re: [Dorset] Cannot get into KWallet after copying my Home directory from an old Spinning Rust Drive to a new SSD
On Wed, 27 Nov 2019 19:24:45 +, D-LUG wrote: > I discovered that the drive in the USB caddy had read errors. On Thu, 28 Nov 2019 17:59:09 +, Ralph Corderoy wrote: > Also, caddy interfaces can be flaky compared to having the drive > installed properly. I own a particularly cheap and flaky USB-to-SATA drive enclosure that causes disk read/write errors. I think it also damaged one of my disks once, but that could have been coincidence. I stopped using it, but I should have known it was no good when I saw that it required a USB Type A to Type A cable (supplied in box). I don't know how prevalent this sort of failure is, but it taught me never to fully trust a USB-to-SATA interface when troubleshooting disk problems. Patrick -- Next meeting: BEC, Bournemouth, Tuesday, 2019-12-03 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk/ New thread, don't hijack: mailto:dorset@mailman.lug.org.uk
Re: [Dorset] Cannot get into KWallet after copying my Home directory from an old Spinning Rust Drive to a new SSD
On 28/11/2019 17:59, Ralph Corderoy wrote: Hi Terry, I found I had a bit of time, so I've swapped the drive back and KWallet is working again. I'll have another go in due course. According to the manual, you can export/import your data: Import and Export If you want to transfer your secrets to another device or computer use the actions in theFilemenu. WithExport as encryptedwallets can be exported into an encrypted archive file. Importing this archive file withImport encryptedyou have to provide the master password of the wallet. Alternatively a|.xml|file can be used for transferring a wallet. Keep in mind that all secrets are stored as plain text in this file. I see a gotcha that you have to know the master password. Does this work? Peter -- Next meeting: BEC, Bournemouth, Tuesday, 2019-12-03 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk/ New thread, don't hijack: mailto:dorset@mailman.lug.org.uk
Re: [Dorset] Cannot get into KWallet after copying my Home directory from an old Spinning Rust Drive to a new SSD
Hi Terry, > I found I had a bit of time, so I've swapped the drive back and > KWallet is working again. I'll have another go in due course. Good, so you're back to your old system that's 70% full, good enough except for running VMs, and no harm done? > Question. How would people recommend that I do this, in the absence of a > spare drive? I remember installing a new HD some years ago without any major > difficulties, but I can't remember exactly what I did. I think Hamish had it right if you're happy with your old system and don't want to start from a fresh install of Kubuntu from installation media. On the other hand, if you think a fresh install might have benefits then I'd do it from installation media and not by copying an existing 19.10 installation. Boot something like Clonezilla from a USB stick and have it copy all the used old disk, partition table and all partitions, to the new disk. Given the caddy is probably a bottleneck, I'd put the old disk in there as reading is normally quicker than writing and the caddy may have less impact. Also, caddy interfaces can be flaky compared to having the drive installed properly. https://www.clonezilla.org/show-live-doc-content.php?topic=clonezilla-live/doc/03_Disk_to_disk_clone Afterwards, if the new disk is working well, boot from a USB stick again and use something like gparted to adjust the partitions to use more of the disk if you want, e.g. expand /home assuming that's the last partition before all the free space. Or you can combine partition resizing with the initial copying in Clonezilla if you're confident. https://clonezilla.org/clonezilla-live/doc/03_Disk_to_disk_clone/advanced/05-advanced-param.php If you want to juggle partitions around on the new disk then it may be better to do it all with gparted from a live USB stick, creating the partition table, then copying/resizing each partition in turn to create your preferred layout and sizes. -- Cheers, Ralph. -- Next meeting: BEC, Bournemouth, Tuesday, 2019-12-03 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk/ New thread, don't hijack: mailto:dorset@mailman.lug.org.uk
Re: [Dorset] Cannot get into KWallet after copying my Home directory from an old Spinning Rust Drive to a new SSD
Hi Terry, > In one case copying a text file came up with 'Not enough disc space' > It had around 20 bytes and copied perfectly later. The rest > seemed to be related to a large dump of development data which > included the contents of a Raspberry Pi SDCard; it was barfing at > trying to copy /dev/tty1 etc. I'd avoid using a general-purpose file-copying GUI for this specialised task. It's unlikely to document its behaviour, and may not give the options to achieve what's required. > > - You copied /home/terry from the old disk into /home/terry on a > > live, running, system whilst logged in as terry? > > Initially I tried to do it from a live disc. That was my first > mistake, I think that's actually a good idea because then both the source and destination systems aren't in use as a user's home directory. > because everything ended up as being owned by root and the desktop > would not run properly. I think that was the first mistake. :-) > What I actually did was to re-install Kubuntu from the 19.10 disc and > then drag the data across again. The 19.10 disc being a third medium that gives a live 19.10 and the option to install? Or is the old disk running 19.10 and that's what you're referring to? > > - You still have the old disk unaltered so in theory the wallet is > > safe and booting from that disk would regain access? > > It might not (see above). I'm not sure what of the above would stop this working; that's why I think I may have misunderstood. -- Cheers, Ralph. -- Next meeting: BEC, Bournemouth, Tuesday, 2019-12-03 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk/ New thread, don't hijack: mailto:dorset@mailman.lug.org.uk
Re: [Dorset] Cannot get into KWallet after copying my Home directory from an old Spinning Rust Drive to a new SSD
On Thursday, 28 November 2019 15:44:13 GMT Hamish MB wrote: > If you new drive is bigger than the old one, you could do Clonezilla > device-to-device cloning, or use DD to copy directly from the old to the > new drive, and then grow the partitions? > > I'd recommend Clonezilla as I've had good success with it (primarily as > a backup tool), and it only copies space in use so is more efficient > than DD. I may well try Clonzilla. I didn't realise that it did device to device copying. Of course, I'm aware of dd, I just prefer a GUI tool, being an old wimp as I am. Redo is more useful perhaps for saving a known good version of the partition for 'Factory Reset' purposes. That's what we used it for. > Of course, you could save the passwords somewhere else, and then add > them to your new Kwallet - might be easier than re-doing the clone? The new wallet has no data in it. I need to get the original wallet onto the SSD. -- Terry Coles -- Next meeting: BEC, Bournemouth, Tuesday, 2019-12-03 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk/ New thread, don't hijack: mailto:dorset@mailman.lug.org.uk
Re: [Dorset] Cannot get into KWallet after copying my Home directory from an old Spinning Rust Drive to a new SSD
Glad it's working. If you new drive is bigger than the old one, you could do Clonezilla device-to-device cloning, or use DD to copy directly from the old to the new drive, and then grow the partitions? I'd recommend Clonezilla as I've had good success with it (primarily as a backup tool), and it only copies space in use so is more efficient than DD. Of course, you could save the passwords somewhere else, and then add them to your new Kwallet - might be easier than re-doing the clone? Hamish On 28/11/2019 15:38, Terry Coles wrote: > On Thursday, 28 November 2019 08:20:44 GMT Terry Coles wrote: >>> - You still have the old disk unaltered so in theory the wallet is safe >>> >>> and booting from that disk would regain access? >> It might not (see above). I haven't really got time to try it until after >> the weekend because I'm going 'up North' tomorrow morning and today is >> pretty much booked up. > I found I had a bit of time, so I've swapped the drive back and KWallet is > working again. I'll have another go in due course. > > Question. How would people recommend that I do this, in the absence of a > spare drive? I remember installing a new HD some years ago without any major > difficulties, but I can't remember exactly what I did. > > I still favour Redo Backup, partly because I used it successfully at work > some > years ago. I've realised (belatedly) that the new 1 TB SSD has more than > adequate space on it to write the image to (in a special partition with the > drive installed in the USB Caddy). I could then install the SSD into the PC > and restore the image from the special partition and delete the partition > when > finished. > > Any better ideas? > signature.asc Description: OpenPGP digital signature -- Next meeting: BEC, Bournemouth, Tuesday, 2019-12-03 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk/ New thread, don't hijack: mailto:dorset@mailman.lug.org.uk
Re: [Dorset] Cannot get into KWallet after copying my Home directory from an old Spinning Rust Drive to a new SSD
On Thursday, 28 November 2019 08:20:44 GMT Terry Coles wrote: > > - You still have the old disk unaltered so in theory the wallet is safe > > > > and booting from that disk would regain access? > > It might not (see above). I haven't really got time to try it until after > the weekend because I'm going 'up North' tomorrow morning and today is > pretty much booked up. I found I had a bit of time, so I've swapped the drive back and KWallet is working again. I'll have another go in due course. Question. How would people recommend that I do this, in the absence of a spare drive? I remember installing a new HD some years ago without any major difficulties, but I can't remember exactly what I did. I still favour Redo Backup, partly because I used it successfully at work some years ago. I've realised (belatedly) that the new 1 TB SSD has more than adequate space on it to write the image to (in a special partition with the drive installed in the USB Caddy). I could then install the SSD into the PC and restore the image from the special partition and delete the partition when finished. Any better ideas? -- Terry Coles -- Next meeting: BEC, Bournemouth, Tuesday, 2019-12-03 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk/ New thread, don't hijack: mailto:dorset@mailman.lug.org.uk
Re: [Dorset] Cannot get into KWallet after copying my Home directory from an old Spinning Rust Drive to a new SSD
On Thursday, 28 November 2019 08:07:23 GMT Ralph Corderoy wrote: > - Presumably the method of copying was some GUI drag and drop? Yes. I originally wanted to use Redo Backup, but that needs a location for the data. > - Do you recall why it said one or two files couldn't be copied? Even > if they're not important, it still seems odd. The messages didn't make much sense to me. In one case copying a text file came up with 'Not enough disc space' It had around 20 bytes and copied perfectly later. The rest seemed to be related to a large dump of development data which included the contents of a Raspberry Pi SDCard; it was barfing at trying to copy /dev/tty1 etc. > - You copied /home/terry from the old disk into /home/terry on a live, > running, system whilst logged in as terry? Initially I tried to do it from a live disc. That was my first mistake, because everything ended up as being owned by root and the desktop would not run properly. That was when I made my second mistake. What I should have done is to put the old disk back until I could get a suitable temporary storage solution. What I actually did was to re-install Kubuntu from the 19.10 disc and then drag the data across again. > - You still have the old disk unaltered so in theory the wallet is safe > and booting from that disk would regain access? It might not (see above). I haven't really got time to try it until after the weekend because I'm going 'up North' tomorrow morning and today is pretty much booked up. BTW. I can now get into email on this machine, but I had to do it by dredging my memory for passwords and starting a new KWallet wallet. -- Terry Coles -- Next meeting: BEC, Bournemouth, Tuesday, 2019-12-03 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk/ New thread, don't hijack: mailto:dorset@mailman.lug.org.uk
Re: [Dorset] Cannot get into KWallet after copying my Home directory from an old Spinning Rust Drive to a new SSD
Hi Terry, Just questions to start with. > I eventually did a clean installation of Kubuntu and copied the data > from the old drive installed in the caddy. I copied everything, > including all the hidden files and directories and the exercise seemed > to work apart from one or two files that I wasn't worried about (they > were nothing relating to configuration). - Presumably the method of copying was some GUI drag and drop? - Do you recall why it said one or two files couldn't be copied? Even if they're not important, it still seems odd. - You copied /home/terry from the old disk into /home/terry on a live, running, system whilst logged in as terry? - You still have the old disk unaltered so in theory the wallet is safe and booting from that disk would regain access? -- Cheers, Ralph. -- Next meeting: BEC, Bournemouth, Tuesday, 2019-12-03 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk/ New thread, don't hijack: mailto:dorset@mailman.lug.org.uk
[Dorset] Cannot get into KWallet after copying my Home directory from an old Spinning Rust Drive to a new SSD
Hi, The drive containing my Home directory on my desktop filled up and despite some vicious paring was still over 70% full. This severely limited what I could do with VMs. I purchased a shiny new SSD (1TB) and using Partition Magic I cloned the old drive to another Spinning Rust Drive in a USB caddy. I'm pretty sure that would have worked OK but unfortunately, I discovered that the drive in the USB caddy had read errors. I had no other spare drive to hand so tried various ways to copy the data to the new drive. To cut a long story short, I eventually did a clean installation of Kubuntu and copied the data from the old drive installed in the caddy. I copied everything, including all the hidden files and directories and the exercise seemed to work apart from one or two files that I wasn't worried about (they were nothing relating to configuration). When I rebooted, everything seemed OK until I tried to open my email client (Kontact). This uses KWallet to store the account configurations and all the passwords but I couldn't open it because it rejected my password. I used KWallet for all my passwords for websites etc too so this is a bit serious. Has anyone any ideas about how I can recover the data for KWallet that contains my password? All I've found on the internet so far is that deleting the .kwl file allows a new password to be entered, but apparently this no longer works. (It didn't work for me.) This laptop is still working, but the KWallet database on here only contains a few passwords (fortunately most of the email related ones). -- Terry Coles -- Next meeting: BEC, Bournemouth, Tuesday, 2019-12-03 20:00 Check to whom you are replying Meetings, mailing list, IRC, ... http://dorset.lug.org.uk/ New thread, don't hijack: mailto:dorset@mailman.lug.org.uk