Uninstalling LinuxCNC

More
4 years 1 month ago #252676 by OskarXYZ
Recently I install in my Linux Mint Cinnamon 20.1 desktop theLinux Debian 10 Buster with LinuxCNC version 2.8.2During the installation I thought the LinuxCNC was just another program and I was planning to install it on my 240GB SSD until I realized it was a new OS. The hard disks in my desktop are:/dev/sda  240GB SSD with 2 partitions, Ext4(version 4)/dev/sda1 30GB(Free 15GB), UUID, LinuxBootable Mounted at FileSystem Root/dev/sda2 210GB(Free 155GB),UUID, Linux, Mounted at Home /dev/sdb1 160GB HDD All Free, UUID, Linux File System Ext4(version 1.0)Not Mounted.
/dev/sdc1 79GB HDD, All Free, UUID, Linux, Ext4(version 1.0) Not Mounted/dev/sdc2, 1GB, Extended, Partition2/dev/sdc5, 1GB, UUID, Linux Swap, Swap Version1, Not Active BTW the above 79GB HDD is almost empty except two partitions of 1GB each, so where the LinuxCNC was installed? The install DVD ISO was 2GB and I’m sure the final install was much more.The Linux Mint is installed on the 240 SSD and the LinuxCNC is installed on the 79GB HDD. During the LinuxCNC installation it asked if I want to combine the existing grub menu with the new LinuxCNC grub menu and I said yes (it was the recommended step).I want to uninstall LinuxCNC from the 79GB HDD (which is an old/slow HDD) and install it on the 240GB SSD (the 210GB – Free 155GB) section which is a newer/faster disk. However I don’t know the implication related to the grub boot menu and I want to be careful not to make my desktop unbootable.So how do I uninstall the existing LinuxCNC and re install it from my DVD ISO as per above?Thank you

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #252702 by arvidb
Replied by arvidb on topic Uninstalling LinuxCNC
Do you want to overwrite your current Linux Mint desktop and install the LinuxCNC distribution OS on the 240 GB SSD? If so just install from DVD ISO again and select the SSD this time. All data on the SSD will be lost.

Or do you want to install LinuxCNC to your current desktop OS? If so you'll need to install a realtime kernel and the LinuxCNC package(s) using the package manager. This should be possible but I'm not clear on the details on Linux Mint - others can help if this is what you want to do, I'm sure.

Or do you want to re-partition your 240 GB SSD to make room for a separate LinuxCNC distribution install to coexist with your current Linux Mint desktop install on the SSD choosing at boot (using grub) which one to boot?
The following user(s) said Thank You: OskarXYZ

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #252767 by OskarXYZ
Replied by OskarXYZ on topic Uninstalling LinuxCNC
I want to re-partition the 240GB SSD and make room for the LinuxCNC to coexist with my LM desktop (there is lots of free space on this SSD).

That’s what I selected in my first attempt to install LinuxCNC but the message/options I got was not clear and decided to install LinuxCNC on the 79GB HDD.

Perhaps it may be better to re partition the 240GB SSD from inside Linux Mint, name this partition “LinuxCNC” is I can and then re install LinuxCNC on the new partition. If I do this what is a reasonable amount of disk space LinuxCNC would need?

However I’m cautious about damaging the grub boot menu which I understand LinuxCNC is part of it now so how do I uninstall LinuxCNC without corrupting the existing grub menu?

Thank you

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #252798 by arvidb
Replied by arvidb on topic Uninstalling LinuxCNC
I would boot a LiveCD (for example your LinuxCNC DVD) and do the partition resizing from there using gparted. If the latter is not installed by default, you can install it using the package manager of the running LiveCD (it will be "installed" to a tempdisk in RAM). I think 32 GiB of disk space should be plenty for a LinuxCNC install.

If you have a somewhat modern system grub should be using UUID:s to identify partitions so things should just work if you just remove the HDD containing LinuxCNC. If it doesn't (for example if grub was installed on the boot sector of the removed HDD) then just install LinuxCNC to the new partition on the SSD; the system will be scanned for bootable partitions and the grub configuration will be updated to show your two existing options only.

Worst case you can always manually run grub-install and/or update-grub from any LiveCD to fix a broken boot loader. See e.g. unix.stackexchange.com/questions/465189/...grub-vs-grub-install for more details.
The following user(s) said Thank You: OskarXYZ

Please Log in or Create an account to join the conversation.

More
4 years 1 month ago #252810 by OskarXYZ
Replied by OskarXYZ on topic Uninstalling LinuxCNC
Many thanks for your time,

I have noticed all my disk partitions are UUID, and I think the easiest way will be to remove the disk containing LinuxCNC and take it from there.

Now I know the required size for LinuxCNC (since I have the space I will go with 50GB partition) I should be able to figure out the rest based on the info from your last post.

Please Log in or Create an account to join the conversation.

More
4 years 18 hours ago #255672 by OskarXYZ
Replied by OskarXYZ on topic Uninstalling LinuxCNC
Today was the day to fix the “mess” in my Linux desktop but it didn’t go well. From the above discussions I read the link “unix.stackexchange.com….” but didnt help me.

What I did before starting the desktop I unplugged the 80GB HDD which contains LinuxCNC and then started the desktop. Then I got the message “error-no such device 3283a276-4585……”, then error-unknown filesystem. Then at the last prompt I typed exit, or quit, or end but it didn’t work and I shut off the desktop. Since I’m new to Linux I didn’t know what to type at the prompt to exit.

Is there a way to type something at the Grub prompt to direct it to start Linux Mint?

I prefer not to have LinuxCNC installed twice because I’m afraid it may lead to more complications.

Thank you

Please Log in or Create an account to join the conversation.

Time to create page: 0.072 seconds
Powered by Kunena Forum