LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 02-07-2019, 12:31 PM   #61
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,369

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593

That's not good, after doing chkdsk you should have been able to mount your windows partition and view the files.
can you view the file at /mnt if you run
Code:
sudo /dev/sda3 /mnt
Having another look at your fdisk output in post 3 shows your recovery partition the same size as the windows partition. I think there is something wrong, usually your recovery partition is only about 8GB

Last edited by colorpurple21859; 02-07-2019 at 12:33 PM.
 
Old 02-07-2019, 02:28 PM   #62
zavmat
Member
 
Registered: Oct 2018
Posts: 184

Original Poster
Rep: Reputation: Disabled
I cannot boot into fedora anymore.

I was following a guide that said to delete system files from C: and replace with copied files from a tmp folder but the files in the tmp could not be located so I just deleted a bunch of system32/config files.

as for the recovery partition this might answer your question:https://www.linuxquestions.org/quest...ns-4175647189/

Last edited by zavmat; 02-07-2019 at 02:33 PM.
 
Old 02-07-2019, 09:08 PM   #63
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,369

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
Quote:
I cannot boot into fedora anymore.
Is it because you don't get the grub menu anymore or something else? If you don't get the grub menu try going into your bios to select fedora bootloader.
 
Old 02-07-2019, 09:43 PM   #64
zavmat
Member
 
Registered: Oct 2018
Posts: 184

Original Poster
Rep: Reputation: Disabled
it sends me to the recovery screen with error code 0xc0000098
 
Old 02-07-2019, 10:12 PM   #65
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,369

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
Quote:
I was following a guide that said to delete system files from C: and replace with copied files from a tmp folder but the files in the tmp could not be located so I just deleted a bunch of system32/config files.
Your windows has serious problems now
here is some info on the error your getting: https://neosmart.net/wiki/0xc0000098/
Boot into your linux live usb, mount your windows partition and attempt to copy your files off to another usb.
also from the live usb reinstall grub so you can boot your fedora partition.
 
1 members found this post helpful.
Old 02-09-2019, 12:14 PM   #66
zavmat
Member
 
Registered: Oct 2018
Posts: 184

Original Poster
Rep: Reputation: Disabled
Sorry for not getting back to you, I've been sick the past couple days. I'll take a look at that page and do what you said and get back to you. I might be out another day or two though.
 
Old 02-11-2019, 12:12 PM   #67
zavmat
Member
 
Registered: Oct 2018
Posts: 184

Original Poster
Rep: Reputation: Disabled
Good news, I was able to mount windows like you said by following the tutorial here:
https://www.tecmint.com/how-do-i-acc...tion-in-linux/

Next is repairing grub.

Last edited by zavmat; 02-11-2019 at 08:48 PM. Reason: spelling
 
Old 02-11-2019, 09:19 PM   #68
zavmat
Member
 
Registered: Oct 2018
Posts: 184

Original Poster
Rep: Reputation: Disabled
before I tackle grub, I want to get some important files that I now have onto the flash drive. I'm having some trouble transferring files onto the flashdrive that had the windows iso mounted on it.

[edit] I formatted the flash drive as NTFS and that seems to have solved it. Does anyone know why fat32 wouldn't show up in the filesystem?

Last edited by zavmat; 02-11-2019 at 09:45 PM.
 
Old 02-12-2019, 04:26 PM   #69
zavmat
Member
 
Registered: Oct 2018
Posts: 184

Original Poster
Rep: Reputation: Disabled
I'm trying to reinstall Grub2 following this tutorial:
https://help.ubuntu.com/community/Re...tallingWindows
But my system has so many partitions that I do not know which is the right one.

Here's the fdisk:
Code:
Disk /dev/sda: 698.7 GiB, 750156374016 bytes, 1465149168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: B7850B5C-4716-CC49-9BFC-C316EAA97D14

Device          Start        End   Sectors   Size Type
/dev/sda1        2048     411647    409600   200M EFI System
/dev/sda2      673792  552939512 552265721 263.3G Windows recovery environment
/dev/sda3   552939519 1105205239 552265721 263.3G Microsoft basic data
/dev/sda4  1360289793 1412718592  52428800    25G Microsoft basic data
/dev/sda5  1105205248 1107302399   2097152     1G Linux filesystem
/dev/sda6  1107302400 1360289791 252987392 120.6G Linux LVM

Partition 3 does not start on physical sector boundary.
Partition 4 does not start on physical sector boundary.
Partition table entries are not in disk order.




Disk /dev/sdc: 3.7 GiB, 4004511744 bytes, 7821312 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x7c3f77cf

Device     Boot  Start     End Sectors  Size Id Type
/dev/sdc1  *         0 3772415 3772416  1.8G  0 Empty
/dev/sdc2       116708  136667   19960  9.8M ef EFI (FAT-12/16/32)
/dev/sdc3       136668  178683   42016 20.5M  0 Empty


Disk /dev/mapper/fedora-swap: 5.9 GiB, 6266290176 bytes, 12238848 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/fedora-home: 64.8 GiB, 69575114752 bytes, 135888896 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/mapper/fedora-root: 50 GiB, 53687091200 bytes, 104857600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes


Disk /dev/loop0: 1.7 GiB, 1829224448 bytes, 3572704 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 6.5 GiB, 6981419008 bytes, 13635584 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop2: 32 GiB, 34359738368 bytes, 67108864 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/live-rw: 6.5 GiB, 6981419008 bytes, 13635584 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/live-base: 6.5 GiB, 6981419008 bytes, 13635584 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sdb: 28.7 GiB, 30752636928 bytes, 60063744 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000
and the df:
Code:
Filesystem            1K-blocks     Used Available Use% Mounted on
devtmpfs                2965824        0   2965824   0% /dev
tmpfs                   2992560    30832   2961728   2% /dev/shm
tmpfs                   2992560     1728   2990832   1% /run
tmpfs                   2992560        0   2992560   0% /sys/fs/cgroup
/dev/sdc1               1885468  1885468         0 100% /run/initramfs/live
/dev/mapper/live-rw     6643016  6183276    443356  94% /
tmpfs                   2992560      592   2991968   1% /tmp
vartmp                  2992560        0   2992560   0% /var/tmp
tmpfs                    598512     6104    592408   2% /run/user/1000
/dev/sda2             276132860 95503628 180629232  35% /mnt/nts
/dev/mapper/live-base   6643016  5402036   1224596  82% /run/media/liveuser/Anaconda
/dev/sda5                999320   126688    803820  14% /run/media/liveuser/b19c9294-7467-4e53-9e14-a685f0d5842a
/dev/sdb               30031868  2331588  27700280   8% /run/media/liveuser/SanDiskNTFS
 
Old 02-12-2019, 04:33 PM   #70
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
did not you get it to the point you can actually boot into your linux OS? if yes then boot linux and just run,
Code:
sudo grub-install (to what boot hdd you want to use) /dev/sdx
sudo update-grub
done...
 
Old 02-12-2019, 04:39 PM   #71
zavmat
Member
 
Registered: Oct 2018
Posts: 184

Original Poster
Rep: Reputation: Disabled
Quote:
did not you get it to the point you can actually boot into your linux OS?
You can't boot linux without grub though.

Last edited by zavmat; 02-12-2019 at 04:56 PM.
 
Old 02-12-2019, 04:55 PM   #72
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Install Grub from chroot

after you boot your live OS you can use gparted, or lsblk to see what's out there then desided what to install it to. yes??
 
Old 02-12-2019, 04:57 PM   #73
zavmat
Member
 
Registered: Oct 2018
Posts: 184

Original Poster
Rep: Reputation: Disabled
Quote:
after you boot your live OS you can use gparted, or lsblk to see what's out there then desided what to install it to. yes??
No, not if I do not know which partition has linux installed to it.

Code:
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop0         7:0    0   1.7G  1 loop 
loop1         7:1    0   6.5G  1 loop 
├─live-rw   253:3    0   6.5G  0 dm   /
└─live-base 253:4    0   6.5G  1 dm   /run/media/liveuser/Anaconda
loop2         7:2    0    32G  0 loop 
├─live-rw   253:3    0   6.5G  0 dm   /
└─loop2p1   259:0    0    32G  0 loop 
sda           8:0    0 698.7G  0 disk 
├─sda1        8:1    0   200M  0 part 
├─sda2        8:2    0 263.3G  0 part /mnt/nts
├─sda3        8:3    0 263.3G  0 part 
├─sda4        8:4    0    25G  0 part 
├─sda5        8:5    0     1G  0 part /run/media/liveuser/b19c9294-7467-4e53-9e1
└─sda6        8:6    0 120.6G  0 part 
  ├─fedora-swap
  │         253:0    0   5.9G  0 lvm  [SWAP]
  ├─fedora-home
  │         253:1    0  64.8G  0 lvm  
  └─fedora-root
            253:2    0    50G  0 lvm  
sdb           8:16   1  28.7G  0 disk /run/media/liveuser/SanDiskNTFS
sdc           8:32   1   3.7G  0 disk 
├─sdc1        8:33   1   1.8G  0 part /run/initramfs/live
├─sdc2        8:34   1   9.8M  0 part 
└─sdc3        8:35   1  20.5M  0 part 
sr0          11:0    1  1024M  0 rom
these loop directories are new to me. By process of elimination I know that no /dev/sdax is it. sdb is the flash drive. sdc seems too small. loop0 is too small, leaving only loop1 and loop2

Code:
loop1         7:1    0   6.5G  1 loop 
├─live-rw   253:3    0   6.5G  0 dm   /
└─live-base 253:4    0   6.5G  1 dm   /run/media/liveuser/Anaconda
loop2         7:2    0    32G  0 loop 
├─live-rw   253:3    0   6.5G  0 dm   /
└─loop2p1   259:0    0    32G  0 loop

Last edited by zavmat; 02-12-2019 at 05:09 PM.
 
Old 02-12-2019, 05:19 PM   #74
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
that is LVM .. don't know LVM, sorry, but shooting in the dark, easiest way to figure this out would be to mount until you find it.

Code:
su -
passwd
#mount /dev/sda1 /mnt
#ls /mnt #look to see if your see your system dir's
// no?
#umount /mnt
#mount /sda2 # repeat
but it looks that this might give you a good start.
Code:
─sda6        8:6    0 120.6G  0 part 
  ├─fedora-swap
  │         253:0    0   5.9G  0 lvm  [SWAP]
  ├─fedora-home
  │         253:1    0  64.8G  0 lvm  
  └─fedora-root
mount /sda6 /mnt

but if I where you I'd search "how to install grub chroot lvm"
 
Old 02-12-2019, 05:22 PM   #75
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,369

Rep: Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593Reputation: 1593
Can boot fedora by going into your bios, or changed bootorder in your bios to boot fedora?
If your booting fedora in efi mode, you won't be able to following ubuntu tutorials to reinstall grub.
My guess is your fedora partition is sda6. If your booted in efi mode /sys/firmware/efi/efivars will exist.
To reinstall fedora grub when in efi mode run the following as root by chroot into your fedora system.
Code:
dnf reinstall grub2-efi shim
https://fedoraproject.org/wiki/GRUB_...n_UEFI_systems

Last edited by colorpurple21859; 02-12-2019 at 05:24 PM.
 
  


Reply



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
How to transfer files from a linux machine to a windows machine which are not in the same network Lakshmi Yallampalli Linux - Networking 6 07-16-2010 04:50 AM
LXer: Wal-Mart's $199 (formerly $198) Linux box is here -- and so is the OS that runs LXer Syndicated Linux News 0 11-07-2007 06:30 AM
Windows Vista (formerly Longhorn) jaz General 39 02-19-2007 08:27 PM
Linux on Averatec (formerly Sotec) 3120V TheFarLeft Linux - General 1 11-29-2003 02:04 PM

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

All times are GMT -5. The time now is 07:14 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