LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-10-2018, 09:54 AM   #1
ciao303
Member
 
Registered: Jul 2010
Posts: 69

Rep: Reputation: 15
Overwriting Corrupt Ubuntu MATE


Hi Linux Questions,

Is there a way of overwriting a corrupt install of Ubuntu MATE 16.04 32-bit? I need the files that are inside the corrupt installation. It's either I retrieve the files or revert the OS back into it's previous working state which is more favorable.


Thanks!!!!

Carlos L.
 
Old 03-10-2018, 10:18 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
Yes, it is possible. But why do you want the files if they're corrupt? Perhaps you can let us in on what's going on.
 
Old 03-10-2018, 05:05 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,146

Rep: Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935Reputation: 2935
Perhaps "botched" install ?. Wouldn't necessarily imply a filesystem or files are actually corrupt. Guesswork due to insufficient info.
Mount the partition(s) copy off required files, restore/reinstall. Should be pretty straight-forward.
 
Old 03-10-2018, 08:17 PM   #4
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 15,463
Blog Entries: 25

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
You could try using photorec to the recover the files in question and save them to external media, then reinstall the OS.
 
Old 03-11-2018, 01:17 AM   #5
polpak
Member
 
Registered: Jan 2011
Location: Planet Earth, Australia, NSW
Distribution: GNOME openSUSE Leap/Ubuntu18.04
Posts: 148

Rep: Reputation: 17
Check IF the DataNeedBackUp is available, IF available copy contents across into new folder [example:NewBackedUpData] you wish save them in:

Terminal-Command: cp --preserve --recursive /run/media/(where-find-data)/DataNeedBackUp /home/(where-store-data)/NewBackedUpData


.
 
Old 03-11-2018, 07:09 PM   #6
ciao303
Member
 
Registered: Jul 2010
Posts: 69

Original Poster
Rep: Reputation: 15
Hi,

It gives me this message.

error: file '/grub/i386-pc/normal.mod' not found

How do I fix this?
 
Old 03-11-2018, 08:30 PM   #7
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
Try this: https://askubuntu.com/questions/2664...-mod-not-found

In that link it tells you to change $prefix and or $root. Those are specified in the grub configuration file. So you have to change them permanently by editing that file.

My intuition tells me that booting the install media and running the rescue system to reinstall the boot loader would work too. Unless you didn't install grub to the MBR.

Last edited by AwesomeMachine; 03-11-2018 at 08:32 PM.
 
Old 03-13-2018, 02:05 AM   #8
polpak
Member
 
Registered: Jan 2011
Location: Planet Earth, Australia, NSW
Distribution: GNOME openSUSE Leap/Ubuntu18.04
Posts: 148

Rep: Reputation: 17
AwesomeMachine re https://askubuntu.com/questions/2664...-mod-not-found


Yes self read that or similar article a while back.


This works for self, it may work for others, it may not... just enter correct X and Y address of partiion for your root / on your machine set root='hdX,gptY'


Several times after Ubuntu updated grub found when do re-start/reboot find only option given is Ubuntu, openSUSE missing.

Helps keep copies of /boot/grub2/grub.cfg

Double check which partition is needed, self used installation USB for openSUSE 42.3 and soon see options:

"Boot from Hard Disk"
"Installation"
"Upgrade"
"More..."

select "More..." then provided options:

"Rescue System"
"Boot Linux System"
"Check Installation Media"
"Memory Test"

Select "Boot Linux System"
Choose to Edit boot settings then into the line for changes self inserted set root='hd0,gpt5'

Warning: check what you set root= is what suits your machines for HD and Partition:


openSUSE proceeds to start up [to date itself finding /home] after logging in to be sure, do full shutdown with restart, worked each time providing usual openSUSE grub options with option to boot Ubuntu.


.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
High CPU by Xorg on Linux Mint Mate and Ubuntu + Mate ronaldv Linux - Desktop 7 04-11-2017 07:27 AM
New Ubuntu MATE install - corrupt display eco_bach Linux - Software 6 12-09-2016 03:50 PM
LXer: Ubuntu MATE 15.04 Arrives With MATE Desktop 1.8.2 and MATE Tweak LXer Syndicated Linux News 0 05-15-2015 09:30 AM
[SOLVED] Overwriting free space or overwriting single files restored by photorec fcrok Linux - Security 22 09-15-2012 12:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration