LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-12-2016, 06:20 AM   #1
Whynot
Member
 
Registered: Jan 2005
Posts: 110

Rep: Reputation: 18
Unhappy Partitions gone


Hi
I had Ubuntu 16.04 x64 and windows 7 pro x32 desktop system. Yesterday I wanted to mount a iso file as a driver under Unity desktop drive list menu you know that gnome software you could also able to mount or recover iso files. I think I removed my partitions with that software interface.Is there anyway to get back partitions and files?Now my system doesn't even boot up and doesn't detect any systems.
Thanks.
 
Old 11-12-2016, 06:44 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Boot http://www.cgsecurity.org/wiki/TestDisk_Livecd, briefly skim 'man testdisk' for options then run testdisk and post the full result here for comments?
 
1 members found this post helpful.
Old 11-12-2016, 07:34 AM   #3
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 3,850

Rep: Reputation: 1738Reputation: 1738Reputation: 1738Reputation: 1738Reputation: 1738Reputation: 1738Reputation: 1738Reputation: 1738Reputation: 1738Reputation: 1738Reputation: 1738
Quote:
Originally Posted by unSpawn View Post
Boot http://www.cgsecurity.org/wiki/TestDisk_Livecd, briefly skim 'man testdisk' for options then run testdisk and post the full result here for comments?
It is possible that your partitions are just fine, but your GRUB is messed up. The above is a good first step to finding out what is really going on, and what can be recovered.
 
Old 11-12-2016, 11:47 AM   #4
Whynot
Member
 
Registered: Jan 2005
Posts: 110

Original Poster
Rep: Reputation: 18
I created a new Ubuntu Live CD.And I booted with that.

I think I messed up with the gnome-disk-utility software.

How do we install testdisk under ubuntu live CD?
Code:
sudo fdisk -l
Device     Boot      Start        End    Sectors   Size Id Type
/dev/sda1        738023424 1465143295  727119872 346.7G  7 HPFS/NTFS/exFAT
/dev/sda2                0 1851878407 1851878408   883G 39 Plan 9
/dev/sda3          6581877 1841684869 1835102993   875G 65 Novell Netware 386
/dev/sda4       1769238633 1769922263     683631 333.8M 65 Novell Netware 386

Device         Start       End   Sectors   Size Type
/dev/sdb1         40    409639    409600   200M EFI System
/dev/sdb2     411648 619721604 619309957 295.3G Microsoft basic data
/dev/sdb3  619722752 623628287   3905536   1.9G Linux swap
/dev/sdb4  623628288 976771071 353142784 168.4G Linux filesystem

Partition table entries are not in disk order.
It's pretty strange Where did I get that Novell and Plan 9 file system?
Thanks.
 
Old 11-13-2016, 04:37 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Quote:
Originally Posted by Whynot View Post
I created a new Ubuntu Live CD.And I booted with that.
...while I suggested you boot http://www.cgsecurity.org/wiki/TestDisk_Livecd instead? Odd.


Quote:
Originally Posted by Whynot View Post
How do we install testdisk under ubuntu live CD?
You're unnecessarily complicating things. I suggest you do not do that. Please read http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step
 
1 members found this post helpful.
Old 11-13-2016, 05:15 AM   #6
Whynot
Member
 
Registered: Jan 2005
Posts: 110

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by unSpawn View Post
...while I suggested you boot http://www.cgsecurity.org/wiki/TestDisk_Livecd instead? Odd.



You're unnecessarily complicating things. I suggest you do not do that. Please read http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step
sorry but I haven't any experience with those Linux Distrubutions.I saw in that testdisk website ubunutu based linux somewhere underneath.So I though maybe I could able to apt-get testdisk. Ok never mind now I'm working with gparted-live.It's analysing my dev/sda harddrive.It takes too long.
Thanks.

Last edited by Whynot; 11-14-2016 at 03:58 PM.
 
Old 11-14-2016, 01:28 PM   #7
Whynot
Member
 
Registered: Jan 2005
Posts: 110

Original Poster
Rep: Reputation: 18
Hi again
I was able to rescue windows partition and boot partition but There is one more partition that I use for my backup datas. I couldn't rescue that one.Now I'm able to boot with Ubuntu and I install testdisk. It's great software but It takes too long.
Thanks.

Last edited by Whynot; 11-14-2016 at 04:09 PM.
 
Old 11-14-2016, 02:36 PM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Quote:
Originally Posted by Whynot View Post
It's great software but It takes too long.
It takes just as long as it needs because it needs to be precise and complete.
Be happy it worked for you and the software is made available for no money at all.
 
Old 11-14-2016, 05:40 PM   #9
Whynot
Member
 
Registered: Jan 2005
Posts: 110

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by unSpawn View Post
It takes just as long as it needs because it needs to be precise and complete.
Be happy it worked for you and the software is made available for no money at all.
Every time when I start Quick Search after that I have to do Deeper Search and then I try to select step by step each one but nothing happening.I have to start one more time from the very beginning


Now its look like this
Code:
Disk /dev/sda: 698,7 GiB, 750156374016 bytes, 1465149168 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: 0xbaf6bcf7

Device     Boot     Start        End   Sectors   Size Id Type
/dev/sda1  *    738023424 1465143295 727119872 346,7G  7 HPFS/NTFS/exFAT




Disk /dev/sdb: 465,8 GiB, 500107862016 bytes, 976773168 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: 3XXXXXX-XXXX-XXXX-XXXX-EXX0XXE

Device         Start       End   Sectors   Size Type
/dev/sdb1         40    409639    409600   200M EFI System
/dev/sdb2     411648 619721604 619309957 295,3G Microsoft basic data
/dev/sdb3  619722752 623628287   3905536   1,9G Linux swap
/dev/sdb4  623628288 976771071 353142784 168,4G Linux filesystem
Under windows 7 I see two partitions first part was not available (not recognized) sda1, second part was Windows (sda2 I guess) but there must be in total 4 partitions but last 2 of them was too small and It was build up from old partition software.Under Gparted live CD in Testdisk I was able to look in through that faulty partition but I couldn't save or write as it was.I don't know why.

Thanks
Attached Thumbnails
Click image for larger version

Name:	2016-11-15.png
Views:	28
Size:	72.1 KB
ID:	23528  
 
Old 11-15-2016, 11:18 AM   #10
Whynot
Member
 
Registered: Jan 2005
Posts: 110

Original Poster
Rep: Reputation: 18
Question

I don't know what to do right now.
Attached Thumbnails
Click image for larger version

Name:	2016-11-15-1.png
Views:	27
Size:	76.4 KB
ID:	23536   Click image for larger version

Name:	2016-11-15-2.png
Views:	28
Size:	48.0 KB
ID:	23537   Click image for larger version

Name:	2016-11-15-3.png
Views:	26
Size:	86.1 KB
ID:	23538   Click image for larger version

Name:	2016-11-15-4.png
Views:	23
Size:	66.1 KB
ID:	23539  
 
Old 11-15-2016, 04:30 PM   #11
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Quote:
Originally Posted by Whynot View Post
Under windows 7 I see two partitions first part was not available (not recognized) sda1, second part was Windows (sda2 I guess)
First of all not ever use Windows as a yardstick for anything, let alone use it as the "proper" way to view partitioning. Secondly don't "guess". Please. Cold hard facts only.


Quote:
Originally Posted by Whynot View Post
but there must be in total 4 partitions but last 2 of them was too small and It was build up from old partition software.
Now that's confusing. Or I'm reading your post wrong. In post #7 you said:
Quote:
Originally Posted by Whynot View Post
I was able to rescue windows partition and boot partition but There is one more partition that I use for my backup datas. I couldn't rescue that one. Now I'm able to boot with Ubuntu and I install testdisk.
Let's say that's disk /dev/sdb. It's got the EFI partition, NTS for Microsoft basic data, a Linux swap and a Linux filesystem. So /dev/sdb is all accounted for, right?

That leaves /dev/sda, or as you say the "partition that I use for my backup datas". Partition as in only one, so does that mean /dev/sda should show only one partition? Please confirm. Open a terminal window, run 'testdisk /debug /log /dev/sda' and post the log file (IIRC "testdisk.log") as plain text attachment please.
 
Old 11-16-2016, 06:44 PM   #12
Whynot
Member
 
Registered: Jan 2005
Posts: 110

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by unSpawn View Post
First of all not ever use Windows as a yardstick for anything, let alone use it as the "proper" way to view partitioning. Secondly don't "guess". Please. Cold hard facts only.
Sir, I couldn't stay like that and I need to get over it.So I didn't rescue that partition. I have formatted.I gave up

At least I have a working system.





Quote:
Originally Posted by unSpawn View Post
Now that's confusing. Or I'm reading your post wrong. In post #7 you said: Let's say that's disk /dev/sdb. It's got the EFI partition, NTS for Microsoft basic data, a Linux swap and a Linux filesystem. So /dev/sdb is all accounted for, right?
I had for 2 years ago with a partition software that one partitions split into multiple partitions. That time I think that software made some senseless small partitions I don't know.



Quote:
Originally Posted by unSpawn View Post
That leaves /dev/sda, or as you say the "partition that I use for my backup datas". Partition as in only one, so does that mean /dev/sda should show only one partition? Please confirm. Open a terminal window, run 'testdisk /debug /log /dev/sda' and post the log file (IIRC "testdisk.log") as plain text attachment please.

I think that was a hidden partition.And log files were in G-parted live system I don't know whether they are still available. But after, that I try to repair with testdisk software under Ubuntu 16.04.


My system was used to be something like this

/dev/sda1 Partition with my Photo files NTFS
/dev/sda2 Partition with Windows 7 NTFS

/dev/sdb1 Boot Partition
/dev/sdb2 Partition with Download files NTFS
/dev/sdb3 Ubuntu Swap
/dev/sdb4 Ubuntu Root


Thank you for you great replays.
I'm appreciated.
 
Old 11-17-2016, 02:48 PM   #13
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Quote:
Originally Posted by Whynot View Post
Sir, I couldn't stay like that and I need to get over it.So I didn't rescue that partition. I have formatted.I gave up I had for 2 years ago with a partition software that one partitions split into multiple partitions. That time I think that software made some senseless small partitions I don't know. I think that was a hidden partition.And log files were in G-parted live system I don't know whether they are still available. But after, that I try to repair with testdisk software under Ubuntu 16.04. My system was used to be something like this
Code:
/dev/sda1 Partition with my Photo files NTFS
/dev/sda2 Partition with Windows 7 NTFS

/dev/sdb1 Boot Partition
/dev/sdb2 Partition with Download files NTFS
/dev/sdb3 Ubuntu Swap
/dev/sdb4 Ubuntu Root
It really is a pity you gave up and formatted /dev/sda, because the companion app to Testdisk, Photorec, was especially created to try and retrieve data in such situations. As long as nothing was overwritten it could at least have tried to rescue some photos. Next time please ask first, OK? But OK, at least like you said you have a working system. I do hope you keep regular backups now?
 
Old 11-18-2016, 06:06 AM   #14
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 3,850

Rep: Reputation: 1738Reputation: 1738Reputation: 1738Reputation: 1738Reputation: 1738Reputation: 1738Reputation: 1738Reputation: 1738Reputation: 1738Reputation: 1738Reputation: 1738
If you have, or can build, a server with significant hardware I would recommend installing burp in that as a service and burp as a client on any other machine you run. You can then back up to that server over your network. burp works for both linux and windows clients, does rsync style change detection, compression and de-duplication making it space, network, and time efficient.

It does not restore disk format or structure (few backup solutions can) but it protect the file and folder content and metadata nicely. It is far easier to set up than Bacula, Amanda, or most other enterprise ready backup/restore systems.
 
  


Reply

Tags
drivers, partitions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] what is a logical partitions and group partitions and how to check disk space on a partition ITareliteralyMyInitials Linux - Newbie 10 02-08-2016 11:19 AM
rebuild partitions/label from existing partitions - used parted on wrong drive zedmelon Linux - Software 4 07-26-2013 03:42 PM
Change primary partitions to logical partitions AND migrate their data? chickenlinux Linux - Hardware 10 04-04-2010 04:31 PM
windows killed my partitions! no linux partitions found on this computer. The MJ Linux - Software 10 01-05-2007 08:31 AM
Question on creating more partitions than default ones, i.e. /home,/root partitions casmac SUSE / openSUSE 1 12-20-2006 05:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration