Pages

Error in mounting sda problem in Ubuntu 16.04 (sda5)

This is a series of posts on problems and issues in using Ubuntu /Windows10 Parallel installation

This is a common problem that occur when you want to access files from Ubuntu OS (which is paralelly installed) stored in Windows 10 OS in the same hardware.

Suppose, you want to access sda5. Then, to fix this quickly, in terminal, run following command.

sudo ntfsfix /dev/sda5

Then type the password.

[sudo] password for UserName: 

This will display follwing lines.

Mounting volume... The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
FAILED
Attempting to correct errors... 
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition... OK
Going to empty the journal ($LogFile)... OK
Checking the alternate boot sector... OK
NTFS volume version is 3.1.
NTFS partition /dev/sda5 was processed successfully.

Finally, if above line is displayed, you can now access files from Ubuntu.



dpkg, apt, apt-get and aptitude - what are these?


  • dpkg - the core that does the actual installs. It doesn't manage all of the packages. The others are built off it.
  • apt - a package manager that manages repositories, dependencies etc.
  • apt-get - a CLI that is used to do installs through apt.
  • aptitude - a featured command line interface and an equivalent of powerful GUI software center.

What is virtual box?

Virtual box is an application which can be used to operate different operating systems in the same hardware (without rebooting). You can have a number of operating systems, each running different applications.

If we want to test some applications, download and do it in virtual box.

Advantage: 
  • spyware, viruses and malware don't affect the main machine
  • the main would be clean
Presently, Oracle provides popular VirtualBox


Installing FreeDOS in VirtualBox.

Download FreeDOS.iso to your disk.


Quotes for Research


"With four parameters I can fit an elephant, and with five I can make him wiggle his trunk."
     
---- Attributed to von Neumann by Enrico Fermi, as quoted by Freeman Dyson in "A meeting with Enrico Fermi" in Nature 427 (22 January 2004) p. 297

The video version from Web of Stories site is https://www.webofstories.com/play/freeman.dyson/94


“We are what we repeatedly do. Excellence, then, is not an act, but a habit.”
---- Aristotle


"All of humanity’s problems stem from man’s inability to sit quietly in a room alone."
-- Blaise Pascal (In the internet world, you want to do some work. But, because of distraction, you are not able to do. This was true many hundred years before and now it is more true in the internet world.)

"...what makes planets go around the sun? At the time of Kepler some people answered this problem by saying that there were angels behind them beating their wings and pushing the planets around an orbit. As you will see, the answer is not very far from the truth. The only difference is that the angels sit in a different direction and their wings push inwards."
-- Richard Feynman, In the lecture "The Character of Physical Law" (MIT, 1967), p. 18:



"If you are pushing the edge, eventually you find the edge."
--Brad Gobright (In the National Geography documentary Fee Solo). Alas.. Brad Gobright when he was pushing the edge. Condolences to him.

"When something is important enough, you do it even if the odds are not in your favor"
--Elon Musk

"Great creative minds think like artists. But work like accountants" David Brooke (from Deep Work Book)




How do I make shaded box for a quote?

How to create shaded boxes for quote?


A simple solution is provided in Blogging Basics 101 (Thanks to Jessica Knapp)

Past following code in your HTML box in wordpress.

<blockquote style="border: 2px solid #666; padding: 10px; background-color: #ccc;"> This is the text inside the box.</blockquote>

For other details see the Blogging Basics 101 page.
This is the text inside the box.

Jupyter Notebook error: AttributeError: type object 'IOLoop' has no attribute 'initialized'

AttributeError: type object 'IOLoop' has no attribute 'initialized'

This error may be due to the tornado==5.0* versions. Using Tornado 4.5.3 solves the problem.

To do this, try

pip3 uninstall tornado
pip3 install tornado==4.5.3
This solved my problem. Comment if this is useful to you.


You may be interested in these posts

Error in image file conversion: convert-im6.q16: not authorized `test.eps' @ error/constitute.c/WriteImage/1037.

This error is because of the vulnerability. This allows remote execution of code using image formats. So, some Linux distributions by defaul...