LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to Transfer Files from Windows to Linux on a formerly Dual-Booting configured Machine? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-transfer-files-from-windows-to-linux-on-a-formerly-dual-booting-configured-machine-4175647507/)

zavmat 02-02-2019 01:37 PM

How to Transfer Files from Windows to Linux on a formerly Dual-Booting configured Machine?
 
I can no longer boot into Windows after messing around with my partitions. Before I wipe the disk to free up some space I wanted to retrieve any surviving files from Windows.

colorpurple21859 02-02-2019 01:55 PM

from your file manager, you should be able to click on the windows partition and copy files off of it. If not post the output of
Code:

sudo fdisk -l
so we can see if your windows partition still exist and what partition it is on

zavmat 02-02-2019 02:14 PM

Code:

[root@localhost ~]# sudo fdisk -l
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/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/sdb: 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/sdb1  *        0 3772415 3772416  1.8G  0 Empty
/dev/sdb2      116708  136667  19960  9.8M ef EFI (FAT-12/16/32)
/dev/sdb3      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

Are you allowed to link to other threads? I just want to give you an idea of everything that was done so far so that we don't accidentally repeat a lot of the same stuff.

BW-userx 02-02-2019 03:06 PM

can you still boot your linux? if yes then file manger into it, or mount it then go in that way, or live usb stick and go in that way to get your files out of windows.

zavmat 02-02-2019 04:13 PM

I can still boot linux, I spent the last week with rknichols helping me get to that point. Now I just need to get my files from the unbootable windows back if possible.

lleb 02-02-2019 04:25 PM

Quote:

Originally Posted by zavmat (Post 5956940)
I can still boot linux, I spent the last week with rknichols helping me get to that point. Now I just need to get my files from the unbootable windows back if possible.

this line from your output you are looking for is:

Code:

/dev/sda3  552939519 1105205239 552265721 263.3G Microsoft basic data
That tells you it is on sda3.

https://linuxconfig.org/how-to-mount...d-write-access

read up, that should help, best of luck.

zavmat 02-02-2019 05:07 PM

Much obliged, thank you.

lleb 02-02-2019 05:14 PM

if the information helped, please mark this thread solved.

Thank you.

zavmat 02-02-2019 06:16 PM

Unfortunately not,

Code:

[root@localhost Desktop]# fdisk -l | grep NTFS
Partition 3 does not start on physical sector boundary.
Partition 4 does not start on physical sector boundary.
[root@localhost Desktop]# mkdir /mnt/ntfs
[root@localhost Desktop]# mount -t ntfs /dev/sda3 /mnt/ntfs
ntfs_mst_post_read_fixup_warn: magic: 0x00000001  size: 1024  usa_ofs: 18311  usa_count: 0: Invalid argument
Record 0 has no FILE magic (0x1)
Failed to load $MFT: Input/output error
Failed to mount '/dev/sda3': Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details.


colorpurple21859 02-02-2019 07:17 PM

looks like you need a windows repair disk. install disk, winpe iso something similar so you can run chkdsk, files still may not be recoverable based on your previous threads

zavmat 02-02-2019 07:31 PM

can you install winpe on linux? to be clear, are you suggesting to reinstall windows and then run checkdisk to find the files? would it be possible to do so on a virtual machine?

colorpurple21859 02-02-2019 07:57 PM

Quote:

are you suggesting to reinstall windows and then run checkdisk
no run chkdsk from a windows installation/recovery cd/iso/usb

https://www.microsoft.com/en-us/soft...d/windows10ISO
https://www.ghacks.net/2018/05/25/wi...le-usb-woeusb/
https://neosmart.net/blog/windows-recovery-discs/

BW-userx 02-02-2019 08:00 PM

repair mbr, boot might do you some good, looks like it may have been using hibernation that is why it is telling you its screwed up via linux. but you need a version of your windows install disk to repair it.

https://www.easeus.com/partition-mas...indows-10.html

if it fixes you'll be booting windows like no linux installed, then before you do this created a supergrub2 boot usb stick , it might get you back in, its been a long time sense I've had to use that in this particular issue. maybe a usb live to reinstall grub.

zavmat 02-04-2019 01:46 PM

The easeus people want money for all the software that you need to follow these instructions. The free versions do not allow you to use the part of the software needed. Likewise the software I found to mount the windows .iso image says the image is too large to mount on the current usb that I have, so I'll go to the store today and get a larger USB and an external Hard drive.

colorpurple21859 02-04-2019 04:40 PM

If you still get a file to large error install woeusb, It may be in fedoras you may be able to install with
Code:

sudo dnf install WoeUSB
https://fedora.pkgs.org/29/fedora-up...86_64.rpm.html
from your fedora
use woesusb from the command line when you run WoeUSB from graphical menu it automatically reformats the usb to fat32. Start WoeUSB from the command line with something similar to this

Code:

woeusb \
    --target-filesystem NTFS \
    --device Win10_1809Oct_EnglishInternational_x64.iso /dev/sdX

the sdx will be different and the iso may be named different.

Refer: https://github.com/slacka/WoeUSB/wik...ize-limitation for more info


All times are GMT -5. The time now is 02:21 AM.