Recover deleted partition

 
Thread Tools Search this Thread
Homework and Emergencies Emergency UNIX and Linux Support Recover deleted partition
# 8  
Old 08-29-2011
well last week I adjusted (resized) partitions of my external harddisk by gparted. during the processing, the damn gnome3 crashed. I cannot see the partition any more.

I have still one windows machine(winxp), and tried finalData2.0. after about 30 hours scan/recovering, my 120G data in that partition were back. only 2-3 files lost.
hope this experience is useful 4 u. btw, I didn't write any data to that disk after the problem happened.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to recover the deleted file in Linux?

hi, i deleted one file from linux please let me know, if we can recover it ? if yes, pls let me know the steps to do.. (3 Replies)
Discussion started by: raghur77
3 Replies

2. UNIX for Dummies Questions & Answers

How to recover deleted file?

Hi All By mistake i have deleted some file in a directory, is there any way to get it back in Unix( i am using sh ) (2 Replies)
Discussion started by: parthmittal2007
2 Replies

3. Solaris

how to recover from deleted etc in solaris 9

Recently our Server Room got burnt and we lost everything including a sunfire V880 server. I had a backup and restored it on our 2nd server. I mistakenly restored the etc folder from the burnt server too. After rebooting the 2nd server I can't get the root directory and other volumes mounting. I... (11 Replies)
Discussion started by: rahmantanko
11 Replies

4. Shell Programming and Scripting

Need to Recover Deleted Files

Hi, By mistake, executed the following command : rm -rf * and ALL files got deleted. But I need to get back these files as they are very very important. Please help me how to recover this file. Its Urgent for me please. Thanks in advance. (6 Replies)
Discussion started by: unx100
6 Replies

5. Solaris

How to recover deleted logical volume.

My Solaris system administrator has doing troubleshooting to my server. He has accidental remove the hardware raid. Is it possible to recover it back? (4 Replies)
Discussion started by: webster5u
4 Replies

6. UNIX for Dummies Questions & Answers

recover deleted file in unix

hi after using rm command how to recover the deleted file (7 Replies)
Discussion started by: arulkumar
7 Replies

7. Shell Programming and Scripting

Is there a way to recover files deleted using rm command???

Hi All, I just mistakingly deleted some files using rm command.Is there a way to get it back?i work on Solaris 10 Thanks, Kumar (1 Reply)
Discussion started by: kumarsaravana_s
1 Replies

8. AIX

recover deleted files

How to recover deleted files in AIX ? (1 Reply)
Discussion started by: vjm
1 Replies

9. UNIX for Dummies Questions & Answers

Recover deleted files

Is there a Unix tool, like in Novell, to recover accidentally deleted files? (2 Replies)
Discussion started by: kuultak
2 Replies
Login or Register to Ask a Question
dkio(4) 						     Kernel Interfaces Manual							   dkio(4)

Name
       dkio - disk interface

Syntax
       #include <sys/fs.h>
       #include <sys/ioctl.h>

Description
       This  section  describes  the ioctl (input/output controller) codes for all disk drivers.  The basic ioctl (input/output controller) format
       is:

       #include <sys/fs.h>
       #include <sys/ioctl.h>
       ioctl(fildes, code, arg)
       struct pt *arg;

       The applicable codes are:

       DIOCGETPT       Indicates to the driver to store the information in the current partition table in the address pointed to by arg.  The file
		       descriptor must be opened on the raw partitions, a or c.

		       DIOCGETPT does not change the partition table, but it does provide access to the partition table information.

       DIOCSETPT       Indicates to the driver to modify the current partition table with the information pointed to by arg.

		       The file descriptor must be opened on the raw partitions, a or c.

		       If  the a or c partition is not mounted, only the partition table in the driver is modified.  This temporarily modifies the
		       partition table of the disk.  The modifications are overwritten with the default table when the disk is turned off and on.

		       If the a or c partition is mounted, both the partition table  in  the  driver  and  the	partition  table  in  the  primary
		       superblock are modified.  This permanently modifies the partition table of the disk.  This is not recommended.  To change a
		       partition table permanently, use the command.

       DIOCDGTPT       Indicates to the driver to store the default information of the current partition table in the address pointed to  by  arg.
		       The file descriptor must be opened on the raw partitions a or c.

		       DIOCGETPT does not change the partition table, but it does provide access to the partition table information.

       DKIOCGET        Allows the user to receive generic disk information as defined in structdevget.

       DKIOCACC        This code is defined in It is currently unused.

Restrictions
       These restrictions apply when using the DIOCSETPT ioctl code:

       o   You must have superuser privileges.

       o   You	cannot	shrink	or change the offset of a partition with a file system mounted on it or with an open file descriptor on the entire
	   partition.

       o   You cannot change the offset of the a partition.

Examples
       This example shows how to use the DIOGETPT ioctl code to print the length and offset of the a partition of an RZ23 disk:
       #include <sys/types.h>
       #include <sys/param.h>
       #include <sys/fs.h>
       #include <sys/ioctl.h>

       main()
       {
	    struct pt arg;
	    int fd, i;

	    /* Open the "a" partition of the disk you want to see */

	    if ( (fd = open("/dev/rz0a",0)) < 0 ) {
		 printf("Unable to open device
");
		 exit(2);
	    }

	    /* Get the partition information */

	    if ( ioctl(fd,DIOCGETPT,&arg) < 0 )
		 printf("Error in ioctl
");

	    printf("Length		Offset
");

	    for ( i = 0; i <= 7; i++ ) {
		 printf("%d		%d
",arg.pt_part[i].pi_nblocks,
			     arg.pt_part[i].pi_blkoff );
	    }
       }

Files
See Also
       rz(4), disktab(5), fstab(5), chpt(8), diskpart(8), fsck(8), MAKEDEV(8), mkfs(8), tunefs(8)

								       RISC								   dkio(4)