You are not logged in.

#1 2015-07-07 18:17:45

kabbalah
Banned
Registered: 2011-08-23
Posts: 150

Ntfs partition was changed to swap (Solved)

Hi, create a swap file according to the wiki arch, then delete it according to the wiki arch and now the partition I had with ntfs where I have all my work is a swap and not know as access this without deleting nothing, all files are important work of more than six years, not like coming back this to ntfs, I need urgent help.

[root@arch julio]# fdisk -l
Disposit.  Inicio  Comienzo     Final  Sectores Tamaño Id Tipo
/dev/sda1              2048  61442047  61440000  29,3G  7 HPFS/NTFS/exFAT
/dev/sda2          61442048 233293823 171851776    82G  7 HPFS/NTFS/exFAT
/dev/sda3         233293824 310362111  77068288  36,8G 83 Linux
/dev/sda4         310362112 312580095   2217984   1,1G 82 Linux swap / Solaris

#cfdisk
Disco: /dev/sda
                                  Tamaño: 149,1 GiB, 160041885696 bytes, 312581808 sectores
                                           Etiqueta: dos, identificador: 0x00002730

    Disposit.        Inicio              Comienzo           Final       Sectores     Tamaño      Id Tipo
>>  /dev/sda1                                2048        61442047       61440000       29,3G       7 HPFS/NTFS/exFAT         
    /dev/sda2                            61442048       233293823      171851776         82G       7 HPFS/NTFS/exFAT
    /dev/sda3                           233293824       310362111       77068288       36,8G      83 Linux
    /dev/sda4                           310362112       312580095        2217984        1,1G      82 Linux swap / Solaris

The Disks gnome utility recognizes the partition / dev / sda2 as swap.

     
You see I can not use this aid because they are disabled.  BBcode....

Nemo does not recognize the partition / dev / sda2 which is what I need access

Need urgent support, I do not want to do anything that endangers the information within this partition.

Thaks

Last edited by kabbalah (2015-07-08 23:57:01)

Offline

#2 2015-07-07 18:28:00

respiranto
Member
Registered: 2015-05-15
Posts: 479
Website

Re: Ntfs partition was changed to swap (Solved)

Are you talking of /dev/sda4? It's only 1.1 GiB in size - pretty small for all your work of 5 years.
Or do the '>' signs indicate that /dev/sda1 is the relevant partition?
In the latter case, simply try to mount it from command line, as it is still formatted as NTFS according to (c)fdisk.

For the future you should probably think about creating a backup.

Offline

#3 2015-07-07 18:28:34

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,721

Re: Ntfs partition was changed to swap (Solved)

Stop.
What is the output of cat /proc/swaps   ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2015-07-07 18:36:31

kabbalah
Banned
Registered: 2011-08-23
Posts: 150

Re: Ntfs partition was changed to swap (Solved)

[root@arch julio]# cat /proc/swaps
Filename                Type        Size    Used    Priority
/dev/sda4                               partition    1108988    0    -1

The idea is: I have the partition / dev / sda2 as backup, there I have all the files of my work, it is formatted with NTFS, but now I not have access to this even when it appears as ntfs, Disks appears as swap, and nemo not recognizes it.

Offline

#5 2015-07-07 18:41:24

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,721

Re: Ntfs partition was changed to swap (Solved)

I think your data are safe on /dev/sda2.   I know nothing of "Nemo", so let us ignore that for right now.
What is the output of mount   ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#6 2015-07-07 18:46:23

kabbalah
Banned
Registered: 2011-08-23
Posts: 150

Re: Ntfs partition was changed to swap (Solved)

[root@arch julio]# mkdir /media
mkdir: no se puede crear el directorio «/media»: El fichero ya existe
[root@arch julio]# mkdir /media/windows
[root@arch julio]# mount -t ntfs-3g /dev/sda2 /media/windows
NTFS signature is missing.
Failed to mount '/dev/sda2': Argumento inválido
The device '/dev/sda2' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

As you can see: The partition /dev/sda2 can not be mounted

What happened is that the name of the NTFS partition changed to swap, I not know how this happened.

Last edited by kabbalah (2015-07-07 18:46:49)

Offline

#7 2015-07-07 19:02:16

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,721

Re: Ntfs partition was changed to swap (Solved)

I would now disconnect the drive and make a sector by sector copy of it.
You will need to find some tools to try to recover NTFS file systems. Arch Linux is not the answer here.
Try to recover files from the copy, not the original.
Good Luck, and consider how it is that you do not have back up copies of your files and why you are using an undocumented file system for those files.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#8 2015-07-07 19:29:35

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: Ntfs partition was changed to swap (Solved)

ewaller wrote:

You will need to find some tools to try to recover NTFS file systems. Arch Linux is not the answer here.

That is not entirely true

Since then, ntfsprogs seem to have merged with the ntfs-3g package.

EDIT: Have a look at testdisk/photorec as well.

Last edited by Awebb (2015-07-07 19:30:16)

Offline

#9 2015-07-08 00:11:23

mandog
Member
From: Peru
Registered: 2008-09-17
Posts: 218

Re: Ntfs partition was changed to swap (Solved)

To me it seems that you have a corrupted ntfs file system usually coursed by improper shut-down and easily remedied by using windows tools, or xp in Hirons boot disk, scan for errors and scan for bad sectors then reboot twice into windows is the usual fix.


I'm dyslexic Please do not complain about puntuation or spelling and remember most dyslexic people have above average iq.

Offline

#10 2015-07-08 23:56:29

kabbalah
Banned
Registered: 2011-08-23
Posts: 150

Re: Ntfs partition was changed to swap (Solved)

There was no other choice but to format and retrieve files with recuva in windows as much as I could

Offline

Board footer

Powered by FluxBB