LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mageia
User Name
Password
Mageia This forum is for the discussion of Mageia Linux.

Notices


Reply
  Search this Thread
Old 08-03-2015, 12:10 PM   #1
CamTan
LQ Newbie
 
Registered: Jul 2015
Posts: 4

Rep: Reputation: Disabled
how do I become root on Mageia5


I am having problems becoming root to fix Testdisc which I cannot extract
because I am not root.

I have deleted the root disallow marking under settings for login manager, but it refuses to allow root login.

Help would be appreciated.
 
Old 08-03-2015, 01:37 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
As suggested in the other thread stop using Mageia. Everytime you download, extract or install programs your deleted files will be overwritten. You need to boot using a live CD or USB like ALT linux rescue which is the first one on the list. You also need a USB drive as a destination for the recovered files. Use another computer to create the live CD or USB disc.

I don't know what the default installation requires for hard drive space but at least that much of your windows files have been overwritten and not recoverable unless you have a backup. In addition, I assume that a swap partition was created which could be physically anywhere on the disk depending on how it was partitioned. Which means other data was overwritten including maybe the MFT.

http://www.cgsecurity.org/wiki/TestDisk_Livecd

The original thread:
http://www.linuxquestions.org/questi...es-4175549734/

Last edited by michaelk; 08-03-2015 at 01:39 PM.
 
Old 08-03-2015, 10:10 PM   #3
CamTan
LQ Newbie
 
Registered: Jul 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank you Michaelk for taking the time to respond but it seems more complicated than that - I can uninstall but how do I retrieve my files? There must be a way as they were not intentionally erased
 
Old 08-03-2015, 10:14 PM   #4
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,001
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Why don't you login as a user and use su to become root? Or login at a virtual console (ctl+alt+f1) which should allow root logins?
 
Old 08-04-2015, 03:55 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
The details were listed in the other thread. Deleting a file only removes it's reference but not the actual data itself regardless of operating system or filesystem unless you perform some type of secure erase. All of your files are swimming in one's and zeros so finding them is not easy no matter the circumstances of how they were erased..

Again anytime you are running Megeia data is written to disk and more files are lost.
 
Old 08-06-2015, 08:36 AM   #6
bscho
Member
 
Registered: Nov 2012
Location: London
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821

Rep: Reputation: 28
ALT Linux Rescue mount external drive problem

[QUOTE=michaelk;5400310]As suggested in the other thread stop using Mageia. Everytime you download, extract or install programs your deleted files will be overwritten. You need to boot using a live CD or USB like ALT linux rescue which is the first one on the list. You also need a USB drive as a destination for the recovered files. Use another computer to create the live CD or USB disc.

I have made a USB with ALT Linux Rescue on. I am using photorec to recover files. I am having problems mounting a USB external for the recovered files.
All it seems to allow is recovery to the original disc. In the photorec manual it says: File system from external disk may be available in a /media, /mnt or /run/media sub-directory. Mount your destination drive if necessary.

I cannot find the external disk in /media, /mnt or /run/media sub-directory. I have found the drive (called LIVE) however in /dev/disk/by-label/LIVE but it puts the recovered files in the by-label directory and not onto LIVE.

How do I mount the external drive? (It is listed in photorec but will not allow recovery to the external drive)
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can i write to a root:root 750 file with a non-root user? Droa Linux - Newbie 1 05-14-2012 07:49 PM
[SOLVED] how can i remount root filesystem as read/write after modify readonly-root file jcwkyl Linux - Newbie 3 12-21-2010 10:40 PM
How can I have a script owned as root and run as root by a user: setuid? stickey bit? abefroman Linux - Newbie 9 04-19-2008 05:15 PM
why lftp command run failed when user isn't root, but ok when logining as root steven_yu Linux - Software 0 06-06-2007 08:36 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 04:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mageia

All times are GMT -5. The time now is 03:01 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
Open Source Consulting | Domain Registration