
The c: drive has my Windows system on it and I do have a Windows 7 Backup of the drive but I can't restore it because the Windows restore says it can't find the drive.


Thank you donald.
Code: Select all
guest@porteus:~$ locate ntfs-3g
locate: unexpected EOF reading `/var/lib/mlocate/mlocate.db'
guest@porteus:~$ ntfsfix --help
ntfsfix v2021.8.22 (libntfs-3g)
Usage: ntfsfix [options] device
Attempt to fix an NTFS partition.
-b, --clear-bad-sectors Clear the bad sector list
-d, --clear-dirty Clear the volume dirty flag
-h, --help Display this help
-n, --no-action Do not write anything
-V, --version Display version information
For example: ntfsfix /dev/hda6
Developers' email address: [email protected]
News, support and information: http://tuxera.com
guest@porteus:~$
Code: Select all
guest@porteus:~$ su
Password:
root@porteus:/home/guest# ntfsfix -n /dev/nvme0n1p3
Mounting volume... NTFS signature is missing.
FAILED
Attempting to correct errors... NTFS signature is missing.
FAILED
Failed to startup volume: Invalid argument
NTFS signature is missing.
Trying the alternate boot sector
The alternate bootsector is usable
Set sector count to 381149183 instead of 381149176
The startup data can be fixed, but no change was requested
Volume is corrupt. You should run chkdsk.
No change made
root@porteus:/home/guest# chkdsk
bash: chkdsk: command not found
root@porteus:/home/guest# ntfsfix /dev/nvme0n1p3
Mounting volume... NTFS signature is missing.
FAILED
Attempting to correct errors... NTFS signature is missing.
FAILED
Failed to startup volume: Invalid argument
NTFS signature is missing.
Trying the alternate boot sector
The alternate bootsector is usable
Set sector count to 381149183 instead of 381149176
Rewriting the bootsector
The boot sector has been rewritten
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... OK
Processing of $MFT and $MFTMirr completed successfully.
Corrupted file $UpCase
Rewriting $UpCase file
$UpCase has been set to default
Setting required flags on partition... OK
Going to empty the journal ($LogFile)... OK
Checking the alternate boot sector... FIXED
NTFS volume version is 3.1.
NTFS partition /dev/nvme0n1p3 was processed successfully.
root@porteus:/home/guest#
i guess this is just a part of the 'attempt data rescue' process..A tool which tries to guess the primary partition table of a PC-type hard disk in case the primary partition table in sector 0 is damaged, incorrect or deleted. The guessed table can be written to a file or device.
That's one of the best year 2000 wishes I ever heard of.
Good it worked for you.
or use the newest GParted Livencmprhnsbl wrote: ↑17 Nov 2022, 06:31for anyone looking for gpart:
gpart: https://slakfinder.org/sbomt64-15.0/system/gpart/
Added in 54 seconds:donald wrote: ↑17 Nov 2022, 05:29I would use the most recent versions of GParted Live -- Download:
https://gparted.org/download.php
Thank you ncmp.ncmprhnsbl wrote: ↑17 Nov 2022, 06:31for anyone looking for gpart:
gpart: https://slakfinder.org/sbomt64-15.0/system/gpart/
You only need the txz, or not?
Code: Select all
guest@porteus:/tmp/gpart$ wget https://slakfinder.org/sbomt64-15.0/system/gpart/gpart-0.3-x86_64-2smt.txz
--2022-11-17 17:51:17-- https://slakfinder.org/sbomt64-15.0/system/gpart/gpart-0.3-x86_64-2smt.txz
Resolving slakfinder.org (slakfinder.org)... 161.97.104.182
Connecting to slakfinder.org (slakfinder.org)|161.97.104.182|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 36460 (36K)
Saving to: ‘gpart-0.3-x86_64-2smt.txz’
gpart-0.3-x86_64-2s 100%[===================>] 35.61K --.-KB/s in 0.1s
2022-11-17 17:51:18 (374 KB/s) - ‘gpart-0.3-x86_64-2smt.txz’ saved [36460/36460]
guest@porteus:/tmp/gpart$ txz2xzm gpart-0.3-x86_64-2smt.txz
Verifying package gpart-0.3-x86_64-2smt.txz.
Installing package gpart-0.3-x86_64-2smt.txz:
PACKAGE DESCRIPTION:smt
# gpart (Guess PC-type hard disk partitions)
#
# A tool which tries to guess the primary partition table of a PC-type
# hard disk in case the primary partition table in sector 0 is damaged,
# incorrect or deleted. The guessed table can be written to a file or
# device.
#
# Homepage: https://github.com/baruch/gpart
#
Package gpart-0.3-x86_64-2smt.txz installed.
Creating /tmp/gpart/gpart-0.3-x86_64-2smt.xzm
guest@porteus:/tmp/gpart$ ls -o gpart-0.3-x86_64-2smt.*|cut -c 20-
36460 2022-05-10 09:14 gpart-0.3-x86_64-2smt.txz
36864 2022-11-17 17:51 gpart-0.3-x86_64-2smt.xzm
Code: Select all
root@porteus:/Lsfind# zgrep gpart-0.3 intHDD1*gz
intHDD1_5.find.gz:./Porteus_modules/5.0/gpart-0.3-x86_64-3_slonly.xzm
intHDD1_5.ls.gz:-rw-r--r-- 1 root 36864 2021-01-28 06:40 gpart-0.3-x86_64-3_slonly.xzm
The newest version, gparted-live-1.4.0-6-amd64.iso, appears to be for AMD systems, mine is Intel based. But I've downloaded the iso and will try it later.
sometimes maintainers refer to x86-64 ISOs or packages as "amd64" instead of "x86-64" or just "64 bit", usually these all also work on Intel x86-64 systems.
Code: Select all
root@porteus:~# cd /tmp/gpart/
root@porteus:/tmp/gpart# cp /Porteus_modules/gpart-0.3-x86_64-3_slonly.xzm .
root@porteus:/tmp/gpart# mkdir gpart-0.3-x86_64-2smt
root@porteus:/tmp/gpart# mkdir gpart-0.3-x86_64-3_slonly
root@porteus:/tmp/gpart# mount gpart-0.3-x86_64-2smt.xzm gpart-0.3-x86_64-2smt
root@porteus:/tmp/gpart# mount gpart-0.3-x86_64-3_slonly.xzm gpart-0.3-x86_64-3_slonly
root@porteus:/tmp/gpart# ls -o */usr/sbin/gpart
-rwxr-xr-x 1 root 44456 2022-05-10 09:14 gpart-0.3-x86_64-2smt/usr/sbin/gpart
-rwxr-xr-x 1 root 44288 2017-05-08 00:01 gpart-0.3-x86_64-3_slonly/usr/sbin/gpart
root@porteus:/tmp/gpart# gpart-0.3-x86_64-2smt/usr/sbin/gpart -V
gpart v0.2.3-dev
root@porteus:/tmp/gpart# gpart-0.3-x86_64-3_slonly/usr/sbin/gpart -V
gpart v0.2.3-dev