Page 3 of 3 FirstFirst 123
Results 21 to 29 of 29

Thread: NTFS partition suddenly marked as free space

  1. #21
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: NTFS partition suddenly marked as free space

    I do not know why testdisk would not find sda8 between 310440060 the beginning of your extended partition and 644737570 the beginning of you next partition in the extended??

    parted has a rescue mode where you input a start & end it it tries to find a partition (I think that is how testdisk does it also).

    First backup current partition table.
    Backup partition table to text file & save to external device.
    sudo sfdisk -d /dev/sda > PT.txt

    http://www.gnu.org/software/parted/m...de/rescue.html

    sudo parted /dev/sda unit s print

    sudo parted
    unit s
    rescue
    input start & end and see if it finds partition
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  2. #22
    Join Date
    May 2008
    Beans
    112
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: NTFS partition suddenly marked as free space

    Quote Originally Posted by oldfred View Post
    I do not know why testdisk would not find sda8 between 310440060 the beginning of your extended partition and 644737570 the beginning of you next partition in the extended??

    parted has a rescue mode where you input a start & end it it tries to find a partition (I think that is how testdisk does it also).

    First backup current partition table.
    Backup partition table to text file & save to external device.
    sudo sfdisk -d /dev/sda > PT.txt

    http://www.gnu.org/software/parted/m...de/rescue.html

    sudo parted /dev/sda unit s print

    sudo parted
    unit s
    rescue
    input start & end and see if it finds partition
    i tried parted, it searched but it didn't any result in this block:
    Code:
    GNU Parted 2.2
    Using /dev/sda
    Welcome to GNU Parted! Type 'help' to view a list of commands.
    (parted) unit s                                                           
    (parted) rescue                                                           
    Start? 310440060
    End? 644737570                                                            
    (parted)

    ---EDIT---
    my mistake, i had to precise the end point smaller than 644737570, so:

    Code:
    (parted) unit s                                                           
    (parted) rescue                                                           
    Start? 310440060                                                          
    End? 664737569
    Information: A ntfs logical partition was found at 310440186s -> 664737561s.  Do you want to add it to the
    partition table?
    Yes/No/Cancel? Yes                                                        
    (parted) quit                                                             
    Information: You may need to update /etc/fstab.
    Happily:
    Code:
    Disk /dev/sda: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0xdda4dda4
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1        1658    13312000   27  Unknown
    /dev/sda2   *        1658        1671      102400    7  HPFS/NTFS
    /dev/sda3            1671       19324   141804606    7  HPFS/NTFS
    /dev/sda4           19325       60802   333165506    5  Extended
    /dev/sda5           41379       60467   153332392+  83  Linux
    /dev/sda6           60468       60782     2518016   82  Linux swap / Solaris
    /dev/sda7           60782       60802      158720   83  Linux
    /dev/sda8           19325       41378   177148688    7  HPFS/NTFS
    
    Partition table entries are not in disk order
    
    Disk /dev/sdb: 2003 MB, 2003795968 bytes
    32 heads, 63 sectors/track, 1941 cylinders
    Units = cylinders of 2016 * 512 = 1032192 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00b93e60
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1               1        1941     1956496+   6  FAT16
    oldfred, thank you very much for sharing your knowledge and experience one more time. After mounting sda8, voila! all my files are there again!
    it is a simple (but a little hard to find) solution as it has to be within linux. I really like this forum!
    (:

    cheers!
    Last edited by redmorning; June 5th, 2011 at 09:54 PM. Reason: rerun process

  3. #23
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: NTFS partition suddenly marked as free space

    Glad it worked.

    But if data is important it should be fully backed up on a regular basis.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  4. #24
    Join Date
    May 2008
    Beans
    112
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: NTFS partition suddenly marked as free space

    Quote Originally Posted by oldfred View Post
    Glad it worked.

    But if data is important it should be fully backed up on a regular basis.
    You're absolutely right, i must buy an external disk.


    BTW, i'd like to ask you something (you can propose me to create a new thread of course);
    everytime i boot in ubuntu after windows, ubuntu runs fsck and after that, it restarts automatically and hangs on with black screen (after grub menu selection) No action on hdd (regarding to its led). And sometimes after a hard shutdown in this situation, it runs fsck again (i'm suspecting for hard shutdown triggers fsck).
    In regular boots (not after windows), this happens too. I have this issue for a looong time and i always afraid to corrupt this fsck process. So it takes a long time to start ubuntu session.
    To discover the reasons, whish logs do i have to examine ?
    In case of cancelling startup fsck process, is there a big danger?

    I'm asking all of these questions because i think they are related to these windows ntfs partitions.

    Thanks in advance for all.

    You don't have to answer and if you don't then i will create a new thread on this issue
    Last edited by redmorning; June 5th, 2011 at 10:54 PM.

  5. #25
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: NTFS partition suddenly marked as free space

    I have seen one or two threads on fsck running on every boot, but did not follow threads to see issue or solution.

    I would think any sort of hard shutdown would trigger fsck or chkdsk in NTFS as that can damage file system. Are you not able to shutdown normally?

    Are you hibernating in one system or the other and then writing into the hibernation? That causes corruption since the hibernation does not know about changes and is looking for everything where it was.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  6. #26
    Join Date
    May 2008
    Beans
    112
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: NTFS partition suddenly marked as free space

    When i have just a black screen without any action on hdd,i have no choice other than a hard shutdown.
    I'm not hibernating any of my systems. I had bad experiences with ubuntu on hibernate issue.
    I will search more to find a way/reason/solution.

    Thanks for all.

    ciao!

  7. #27
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: NTFS partition suddenly marked as free space

    You should at least try this first on any forced shutdown.

    Holding down Alt and SysRq (which is the Print Screen key) while slowly typing REISUB
    R-E-I-S-U-B to force shutdown
    A good way to remember it is.
    Raising Skinny Elephants Is Utterly Boring ...or
    Reboot System Even If Ultimately Broken ...LOL.
    http://kember.net/articles/reisub-th...linux-restart/
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  8. #28
    Join Date
    May 2008
    Beans
    112
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: NTFS partition suddenly marked as free space

    Quote Originally Posted by oldfred View Post
    You should at least try this first on any forced shutdown.

    Holding down Alt and SysRq (which is the Print Screen key) while slowly typing REISUB
    R-E-I-S-U-B to force shutdown
    A good way to remember it is.
    Raising Skinny Elephants Is Utterly Boring ...or
    Reboot System Even If Ultimately Broken ...LOL.
    http://kember.net/articles/reisub-th...linux-restart/
    I didn't know it and every time i force shutdown, i feel like i'm hurting the system (:

    This method is awesome! And those shortcuts to remember (:
    Thank you again for sharing another precious piece of knowledge!

  9. #29
    Join Date
    May 2006
    Beans
    160
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: NTFS partition suddenly marked as free space

    Booted up my notebook today and... one of my partitions (one of two ext4 partitions with Ubuntu) was gone. Marked as unallocated. Gave me quite a scare.

    Quote Originally Posted by oldfred View Post
    parted has a rescue mode where you input a start & end it it tries to find a partition (I think that is how testdisk does it also).

    First backup current partition table.
    Backup partition table to text file & save to external device.
    sudo sfdisk -d /dev/sda > PT.txt

    http://www.gnu.org/software/parted/m...de/rescue.html

    sudo parted /dev/sda unit s print

    sudo parted
    unit s
    rescue
    input start & end and see if it finds partition
    THANK YOU!

    Everything is now back to normal...

    Although I have no idea what caused the screw up in the first place.

Page 3 of 3 FirstFirst 123

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •