Wednesday, March 6, 2019

compression - How to compress a large number of files (resulting in high volumes) using cPanel File Manager

I often find that the compression operation times out (without any notification message) when we try to compress large volumes of files in cPanel File Manager. I think it is due to some timeouts. I checked for the solution, but didn't find it. Probably I am missing something that's too obvious.


Does anyone know how to accomplish this?


I know this can be done using SSH, but is there a way to do this in cPanel File Manager?

windows explorers hangs when changing user on Vista home premium

I created a new user with admin priviledge on Vista i86 Home premium SP2.


And when switching to that user's account, can't launch Exploere! It says Explorerer has stopped, restart?


And so on.


Tryed the same with Guest account: same result...


Any clue?

ssd - What marks data as deleted - the hard drive or the filesystem?

Anyone with a cursory understanding of data recovery and sanitisation as it relates to hard drives is aware of the concept that data "permanently" deleted from within an operating system is not deleted, but simply marked as such in the MFT, and that the data exists on the drive until the sector that it occupies on the hard drive is overwritten with new data.



However, I recently realised that I'm hazy on whether this process is a function of the hard drive itself, or the filesystem on it (NTFS more than likely, since we're talking about the MFT). If it's the former, how different is this process in mechanical and solid state drives? If the latter, do other filesystems (apart from NTFS) handle the deletion of data radically differently?

Tuesday, March 5, 2019

Better performance - Running Windows 7 VM with Linux Host, or vice versa?


I will be getting a Windows 7 machine at work soon. I want some of the software that Windows offers (i.e. Office, iTunes), but I develop software in Linux. Should I install Linux on a virtual machine with Windows 7 as the host (either via Windows own software or VirtualBox), or should I install a Linux partition and run Windows 7 in a virtual machine, with Linux as the host (assuming I have the Windows 7 disk)? Is the latter even possible?


On the Linux side I'll be running OpenSuSE 11.2 and above, and the software I'm developing uses OpenGL and the Qt SDK.


As mentioned earlier, on the Windows side I'll be running Office and iTunes primarily.


I can do web-browsing on either.


Answer



Your best bet is to run Windows in the VM - Office is not resource consuming, and iTunes if you are only using it for music (not videos!) runs perfectly fine in the VM.


On the other hand, your development needs means you need straight on access to the OpenGL layer without going through another VM layer, and compiling will definitely be faster if it's done on the host layer.


So, based on your needs, it's definitely a Windows VM on a Linux host.


Monday, March 4, 2019

Moving Windows non-system partition and Linux to a new drive

My setup has two hard drives. A smaller hard drive with the Windows C: partition and GRUB, and a larger hard drive with a Windows D: partition, and a Linux install - separate / and /home partitions. The Windows D: is not a system partition, but has quite a lot of applications installed in addition to other data. This bigger hard drive is about to fail, it started making the click of death today, so I'm replacing it as soon as I can.


I want to move the D: partition and the Linux install to the new drive. I know how to clone to a hard drive of the same size, or when just one OS is involved, but here I am not entirely sure, and would rather double check before I break something.


For Windows, I assume the following should work. Connect the new drive, with an empty partition that would become E:. Copy all of D: to E:, then after unplugging the old drive the new one becomes D: and everything works because paths remain the same.


For the Linux /home partition there's no problem, re-creating it on the new drive and copying with any method should work.


The / partition is where I have no good ideas. I would rather not use dd because I expect the new drive to have different partition sizes. The failing drive is 750 gigs, the new one will be at least 1 TB, and space on /home is currently tight, so I'd rather assign more on the new drive. But this rules out dd I think. Would straight-up copying the root filesystem excluding /dev and /proc possibly work?


Finally, there's the boot loader. It's on the drive that will remain in the PC, so it should be simply a matter of booting a live Linux system to point GRUB to the new Linux partitions with their UUID once all is done. Any caveats here?

filesystems - How can I export file and folder tree structure of an external hard drive as a text file?



I have a malfunctioning hard drive that is full of thousands of files. All the files are still shown as 'there' when explored (with both Windows and Linux). Some of the files can be recovered by moving them to another hard drive, files with CRC errors cannot be moved.



Everything that can be recovered has been moved; the files that could not be moved have been left on the hard drive. I would like to create a 'text file' that lists all the files on the broken hard drive so that I have a list of files for future reference.



Are there any applications that allow me to do this?


Answer




As per Jimmy's suggestion, Windows dir command actually allows for a prettier output, this one gave me the best result:



dir *.mp3 /s /w /b > lostFiles.txt


Of course, removing *.mp3 from there gives all files, but in that case I only needed music.



Reference to dir command is here: http://www.computerhope.com/dirhlp.htm


How can I manually/force install a specific driver in Ubuntu?

I have recently downloaded Ubuntu 14.04.1 LTS 32-bit and I created a virtual machine using Microsoft Virtual PC (the old one, not the Windows Virtual PC) in order to test it. I did that since my host is an old Pentium 4 PC running Windows XP with only 1GB RAM, so I think Microsoft Virtual PC is the lightest among Oracle Virtualbox and VMWare. I could only give the guest about 360MB. It Works, albeit a little slow. My main problem (apart from speed) is that the virtual graphics hardware is not recognised and I am stuck at 800x600 resolution making use of some applications difficult (buttons not showing etc). I know from Windows that the virtual card is S3, but there are no virtual additions (drivers etc) for Linux and the Ubuntu build-in driver is installed but not used as the hardware is not recognized.


How can I force Ubuntu use specific drivers for the graphics? I know that in a Windows system I would go to Device Manager and manually force/install the S3 graphics driver and would hopefully work. I have done it many times in real PCs with some weird ATI models and it worked. Is there something similar in Ubuntu 32-bit? If this involves the terminal, please give me all the code to copy-paste as I am not familiar with Linux.


Thank you in advance!

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...