Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello
I am newbie in the OpenSource, and in PC generaly . I was use gnome-disks GUI pprogram for deleting my SWAP (i just want separate it into two parts) filesystem , but after i confirmed the procedure , all of my partition has been lost (in gnome-disks they marked as free space) :*( . gpart can see all of my partition , but i think after reboot gnome-disks will delete my data. So, what i can to do that undo this crazy missunderstood . I don`t wonna lose my data !
For cases of a damaged or erased partition table, testdisk is the tool of choice. Photorec is for recovering files from broken filesystems. That is not what you have. There is no reason, at this point, to believe that anything more than the partition table has been affected.
You do need to proceed carefully. You can safely allow testdisk to analyze the disk and see what it finds, but you should report those results here before allowing testdisk to write anything to the disk. If recovery does not seem to be very simple, you should make a backup image of the whole disk to another device before proceeding.
You can run testdisk from your installed system without rebooting.
This is out of my experience, but I have some thoughts:
Do not shutdown or reboot the computer until folks have a chance to respond to your query.
Please provide more information:
Were you doing this under Windows (your user agent icon says "Win7") or under a Linux distro; if a Linux distro, which distro/version?
Did you post your message from the problem computer or from a different one? On the problem computer, what is the output of
Code:
fdisk -l <---You will likely need to run this as root
Take a look at Photorec. If worse comes to worst, it could be your last resort.
Sorry , i was not to able login in the forum , half of the day, be`coz I am using Tor_bundle_net, so sometimes, when I try to join LinuxQuestions I am getting an error :*( .
Code:
fdisk -l
showed that all of the my partitions is ready , exept the Swap , that i was trying to delete with gnome-disks utility . And yes it is, one of the my PC is powered on , at least 3 days in a row... ;S Be`coz i dont know , what if that gnome-disks will destroy my partition table after reebot :S .
And thanx 4 answer.
Device Size Id Type
***
/dev/sda2 443,7G f W95 Ext'd (LBA)
/dev/sda5 22,1G 7 HPFS/NTFS/exFAT
/dev/sda6 30G 7 HPFS/NTFS/exFAT
/dev/sda7 25G b W95 FAT32
/dev/sda8 25G b W95 FAT32
/dev/sda9 9,8G 7 HPFS/NTFS/exFAT
/dev/sda10 45,7G 7 HPFS/NTFS/exFAT
/dev/sda11 40G 7 HPFS/NTFS/exFAT
/dev/sda12 50,6G 83 Linux
***
So all of the my partitions , is in normal stage and exist!.
And that is the what i got from gnome-disks, after deleting Swap-partition Attachment
My OS , is a Debian or something like that, jessie as I know.
And yes it is, one of the my PC is powered on , at least 3 days in a row... ;S Be`coz i dont know , what if that gnome-disks will destroy my partition table after reebot :S .
And thanx 4 answer.
You've told gnome-disks to write the partition table, and you have existed gnome-disks?
The good news is that it's done what it's done. It's written the partition table as you told it. If gparted shows your other partitions, they are still there.
I am not familiar with any Linux partition editor that will make changes on reboot. They make changes right then and there, or not at all, depending on what you've told it to do.
If you haven't quit gnome-disks yet, it hasn't written your partition table yet. It may not at all. AFAIK it would have made changes immediately. What you're seeing may well possibly be a bug (judging from nothing at all displayed in the "free space" blocks, I'm thinking maybe a display bug?).
Make a backup of your partition table (from your info, it looks as if you're using MBR), replacing (user) below with your username:
then , I rebooted the machine, and some sad thing happened :*( - my WinOS stops when it loading (after had been choosed in the GRUB boot-menu) , and black_screen appeared ... My /dev/sda had been transformed to /dev/sdb in Linux OS ! O_O
But it`s Amazing! After I just Installed new Linux OS to the someone partition on my /dev/sdb, i was not install a new GRUB-LOADER , and I just typed on my old Linux OS
Code:
grub-update
by root, in the terminal , so and - WinOS cans load itself after this procedure, like that`s was before! O_o
With gnome-disks, i think that was a really "bug" , be`coze it shows the empty space even when I typed
Code:
partprobe
etc.
Now i am happy to play on my favorite PC-games at the WinOS , and also enjoying the Linux enviroment ! Thanx to all , again . ^_^
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.