Increase the size of my ubuntu 12.04 (dual boot) partition - osx-mountain-lion

I'm currently dual booting Mac OS X Mountain Lion and Ubuntu 12.04 LTS
I'd like to shrink my mac partition by 10 GB and increase my Ubuntu partition by 10 GB, preferably by maintaining the data on both partitions.
I'm familiar with the process of reducing partitions in (mac) disk utility, and then booting into Ubuntu and reformatting that partition; but how do I resize an existing Ubuntu partition without repartitioning?
Thanks!

I'm not sure what you are asking but then again it could be just me. The first thing that comes to mind for me is to simply use Partition magic or GParted. You can just simply boot into them and resize to what you like but I would recommend backing up the partitions before anything to prevent data loss.

Related

How to Install Windows Server 2012 and Ubuntu 16.04 Desktop on a Same Machine

I have installed Windows Server 2012 in my 3 Desktop PCs. I am using it for study purpose. In that PCs I need to install Ubuntu Desktop OS Like Dual OS. I searched in internet. All I got was Dual OS for Windows Server is possible with Windows 7, 8, 8.1 and 10.
Please help me to find a solution to install Windows Server 2012 and Ubuntu 16.04 LTS in Same Machine. Or else suggest me a Free OS Like Ubuntu which supports Dual OS with Windows Server 2012 in Same machine.
Thanks,
Rokesh
There are several ways to do that, the easiest is to have two HDs, physically, witch would be safer, during the installation you could detach the drive with Windows Server, install Ubuntu and then reattach the Windows HD. If this is not a possibility you could use the Windows partition tool to remove a part of the NTFS, you will have to make some research on this. Since you don't say either or not you have tried to do that all i can say is what I usually do:
1 - Windows Installation:
Boot from a flash drive containing the Windows.
In the moment I can select the drive in which I will install the SO, choose to change It then remove the existing partition, confirm.
Create a new partition with, in a case
like this, half the available size in the HD, install the Windows normally.
2 - Ubuntu Installation:
Boot from a flash drive with Ubuntu installation files.
Use the device boot list/options key, (in a desktop PC will be F8 key, in a notebook will vary, F11 and F12 are the most common).
In the boot list choose de flash drive to boot, follow the initial parts of the Ubuntu installation 'till the partitioning part.
In the disk option choose the empty space in your HD. You can let Ubuntu automatically create the set for you or manually do it.
Case you decide to try manually, create one small partition, like up to 30% of the space to the mounting point /, a swap partition with twice the size of you RAM memory, all the remaining space can be assigned to the /home mounting point, this way you can reinstall Ubuntu formatting the system partition and keep your data on /home.
This link, brought to us by JHBonarius, have a detailed step by step to do it with Windows 10 and 8.1. With Windows Server should not be too different.

Can I run Hadoop with Mac pro mid 2010 13inch processor?

My lap has 4gb ram, I want to upgrade to 8gb for Hadoop. But i am not sure that will work or not.
Yes you can start all Hadoop components I can imagine on such machine (even with 4GB, if you optimize well). I suggest using virtual evironments for such task (e.g. virtualbox).
But I am not sure your workload will survive or not (your jobs might be greedy).

How to install pyspark & spark for learning purpose on a laptop with limited resources?

I have a windows 7 laptop with 6GB RAM . What is the most RAM/resource efficient way to install pyspark & spark on this laptop just for learning purpose. I don't want to work on actual big data but small dataset is ideal since this is just for learning pyspark & spark in general. I would prefer the latest version of Spark.
FYI: I don't have hadoop installed.
Thanks
You've basically got three options:
Build everything from source
Install Virtualbox and use a pre-built VM like Cloudera Quickstart
Install Docker and find a suitable container
Getting everything up and running when you choose to build from source can be a pain. You've got to install the JDK, build hadoop and spark (both of which require you to install additional software to build them), set up a bunch of environment variables and then pray that didn't mess anything up.
VMs are nice, particularly the one from Cloudera, but you'll often be stuck with an older version of Spark and it might be tight with the resources you described.
I'd go with Docker.
Once you've got docker installed, it becomes very easy to try Spark (and lots of other technologies). My favorite containers for playing around use ipython or jupyter notebooks.
Install Docker:
https://docs.docker.com/installation/windows/
Jupyter Notebook Python, Spark, Mesos Stack
https://github.com/jupyter/docker-stacks/tree/master/pyspark-notebook
One thing to keep in mind is that you are going to have to allocate a certain amount of memory for the VM and the remaining memory still has to operate Windows. Windows 7 requires a minimum of 1 GB for a 32-bit OS or 2 GB for a 64-bit OS. So likely you are only going to wind up with around 4 GB of RAM for running the VM, which is not much.
Assuming you are 64-bit, note that Cloudera requires a minimum of 4 GB RAM to run CDH 5, but if you want to run Cloudera Express, you need 8 GB.
Running Docker from Windows will require you to use boot2docker, which keeps the entire VM in memory. It uses minimal memory (like around 27 MB) to run, so you should be fine there. A MUCH better solution than running VirtualBox!
Another option to consider would be to spin up a free machine on something like Amazon Web Services (http://aws.amazon.com) or Google Cloud (http://cloud.google.com). Particularly with the later, you can get a free trial amount of credits, which you could use to spin up a machine with more RAM than you would typically get with AWS.

Recover windows seven

I started on Ubuntu and have had the first considerable error. I'm looking for help.
I have an HP Pavilion dv6 i7. I had installed windows 7 and I decided to also install Ubuntu using a USB.
My first attempt was to install Ubuntu 11.10 following the instructions of the official Ubuntu website. When loading the pendrive, my PC stucks at the main menu of ubuntu, so after searching, I found could be due to a problem with my AMD Radeon graphic card (or not), but I decided to change.
Then I used Ubuntu 10.4. This could happen from the start menu i get into Ubuntu live. There I decided to install it because I liked it and I need to develope with Google TV (in windows is not posible).
And I fail in the partitions section. I tried to follow the instructions on this page:
http://hadesbego.blogspot.com/2010/08/instalando-linux-en-hp-pavilion-dv6.html
but there were things that changed a bit so I improvised. I took the windows partition of 700000MB and went to 600000Mb leaving 100GB free to install Linux there. The error was to set it to ext3 (it was ntfs). I thought the new 100gb partition will be set to ext3, and windows partition will stuck at ntfs system, but not.
Total I ran out to boot windows, and above I can not install ubuntu on the 100GB free.
Someone thinks I can help. Is there any easy way to convert back to ntfs windows and not lose data?
Thank you very much.
You should be able to hit F11 when the machine is booting up and go to the HP recovery application. This should let you reset to factory default.
You should definitely be able to install Ubuntu on the new 100GB partition as well. Just make sure you choose the right partition to install it on.
You will need to recover using recovery CD/DVD's. You must have been using the install gparted utility in Linux to "re-partition" your drive. You scrubbed some boot files.
If you successfully recover using the recovery media you can use Disk Management in Win 7 to shrink or extend your volume. In your case you would shrink it down 100Gb's and then when installing Linux gparted will see that available 100 GB and install there while Windows will still run.
Also, you should probably be running ext4 fs, not ext3. you would only want ext3 for compatibility reasons.

Macbook Pro running VMWare Fusion 4 on Native apple partition or Bootcamp partition?

I've been experimenting quite a bit with my new macbook pro and have run into significant performance issues with VMWare fusion as well as running natively from bootcamp.
My three scenarios are:
1) Native booting from bootcamp (16gig, SSD)
2) Native booting OSX, VMWARE fusion running from bootcamp partition (8 gig ram for vmware plus 4 of out processors)
3) Native booting OSX, VMWARE fusion running from files on native OSX partition (SSD) (8 gig ram for vmware plus 4 of out processors)
I don't have enough space to try all these at the same time but I'm suspicious that number three is significantly faster than either 1 or 2.
I've found that in both 1 and 2 (which is what I have loaded now on my computer), doing things like building large projects with visual studio 2010 boggs down, where as on my Lenovo W520 running on the same type of SSD, I don't get bogged down. I am surprised native bootcamp is any slower, but it seems to be.
Any thoughts appreciated.
Native boot has always been faster for me (understandably, with no abstraction layers)
As for the other two, there shouldn't be much difference. Windows is still running through the same abstraction layer, so if the same amount of computing power is available then they should be comparable. If one is on an SSD, that would explain some of the speed difference.
On the one running on top of OSX, does it slow down when you do a lot of processor-intensive tasks under OSX? If so, it's the SSD making the difference there - but it still shouldn't be faster than VMWare.
I've found that 3 is faster than option 2, and option 1 was by far the fastest. Natively booting to windows with bootcamp was much quicker and felt more like a normal native windows laptop. When I run vmware with a clean image (non bootcamp) it seems to run ok, however I've found the best option is as follows.
vmware settings (best option for me considering my system specs)
2 processors for windows VM
4gb RAM allocated within vmware
My system specs:
2.4ghz i7 (oct 2011 model MBP).
8gb total ram
I've found that bootcamp was slightly faster than vmware (non bootcamp image), but I still use vmware the majority of the time because I like using the host OS for things like mail/chat/browsing.
I'm running visual studio 2010 SP1 on a .net 4.0 WPF project. I use Telerik control suite, Entity framework and Oracle data access components. Our project is pretty small still but it builds in about 6 seconds after a "clean". (1 solution with 3 projects).

Resources