Go Back   TalkBass Forums > Bass Guitar Forums > Bass Guitar Forums > Off Topic [BG]
Register Rules/FAQ/CUP Members List Search Today's Posts Mark Forums Read

Off Topic [BG] Non-music-related discussion and chat


Supporting Membership
Thank You

Latest Supporting Member
Donate to Upgrade Today

Reply
 
Thread Tools Search this Thread
  #1  
Old 05-27-2011, 12:59 PM
Registered User
 
Join Date: Sep 2005
Location: Istanbul
Need help on Linux swap space,deleted files

Sign in to disble this ad
I needed to install Linux to complete my finishing project.

My hard drive had 2 sectors,namely C and D in NTFS format.

On C I have Vista installed,D was used as storage,had all my music archive etc.

So I created another partition from the free space of D,named it Z and formatted it Ex2 to install Ubuntu.

During installation it asked me to choose a swap space for virtual memory.So I though D has more free space available so Ubuntu can use that free space for virtual memory if needed. I choose drive D as swap space and installed Ubuntu on Z.

Now Vista can not see D,in Ubuntu (which didn't install properly for some reason beyond me) drive D is seen as swap space,all 130 GBs of it and it says it is 100% free.

I found partition manager tool on Ubuntu and tryed swapoff but no good.

What the heck? Did I lose everything on D for good?

__________________
Quote:
Originally Posted by Relic View Post
Yes, you look like the pizza, dammit. Now get back to work!:D
Quote:
Originally Posted by macaroni tony View Post
You're a very handsome man :D
  #2  
Old 05-27-2011, 01:31 PM
winston's Avatar
Registered User
 
Join Date: May 2000
Location: Berkeley, CA
Supporting Member
Just to be sure I understand correctly:

From the D partition you formatted the free space as an EXT2 Linux partition named Z, then you told the installer to format D as Linux swap?

In that case, yes the data on D was erased.
Since Ubuntu shows D as 100% free Linux swap partition, it's almost certainly gone.
You could contact a forensic data specialist, if so, don't turn your computer off until you do.

FYI, even if the data is there, Windows can't read Linux filesystems (whether EXT/swap/other) or detect Linux bootloaders like GRUB/LILO.
If you want to share a data partition in the future it should be FAT32 or NTFS (as long as Ubuntu can stably write to NTFS - it was still experimental a few years back).

Whenever I have installed Linux I made the swap partition a separate one from all the others...it's the same as "virtual memory" in Windows--info on swap partition gets erased when you turn the computer off.

As a rule of thumb (5 years ago) you made swap 2X the size of your RAM, now with 64 bit systems running 4-16 GB of RAM I don't think that's necessary.

Hope things work out, in any case it's a reminder to backup your data before experimenting.
__________________

tunes
videos
blog
  #3  
Old 05-27-2011, 01:44 PM
Registered User
 
Join Date: Sep 2005
Location: Istanbul
Quote:
Originally Posted by winston View Post
Just to be sure I understand correctly:

From the D partition you formatted the free space as an EXT2 Linux partition named Z, then you told the installer to format D as Linux swap?
Yes.From the partition D I created another partition using Computer Management stuff of Vista andnamed it Z,formatted it EXT2.

I choose D as as linux swap and did you just say "then you told the installer to format D as Linux swap?"

__________________
Quote:
Originally Posted by Relic View Post
Yes, you look like the pizza, dammit. Now get back to work!:D
Quote:
Originally Posted by macaroni tony View Post
You're a very handsome man :D
  #4  
Old 05-27-2011, 02:26 PM
winston's Avatar
Registered User
 
Join Date: May 2000
Location: Berkeley, CA
Supporting Member
Quote:
Originally Posted by machine gewehr View Post
Yes.From the partition D I created another partition using Computer Management stuff of Vista andnamed it Z,formatted it EXT2.

I choose D as as linux swap and did you just say "then you told the installer to format D as Linux swap?"

Yes, in my experience it's possible to re-size (sub-partition) a partition without losing data...I shrank my Windows C: partition to make room for Linux partitions on the same HD.

However, if you specified that all of remaining D: was to be Linux swap (which is how I interpreted the info in your first post), that partition would have been re-formatted with the new file system (Linux swap), with all data erased. Given that Ubuntu says the space is 100% free, that seems to be the case.

I see in your profile that you are a CS student...is there anyone at school who can help?
__________________

tunes
videos
blog
  #5  
Old 05-27-2011, 02:33 PM
Registered User
 
Join Date: Sep 2005
Location: Istanbul
It's no problem to shrink partitions,I used shrinking to create my partition to install Ubuntu.

I just don't get it,why would they leave it as an option.Windows doesn't ask for VM space,yes you can edit but you I never met anyone losing data for editing that.And no warnings for file deletion? Come on...I thought it would use the free space on the partition as virtual memory.

I contacted an instructor,basically he says if the partition is formatted when creating swap area, kiss your files goodbye.

Such a dumb mistake to be done,and I'm graduating in 2 weeks.guess I'm too tired to even install Ubuntu.

Some computer engineer I am going to be...
__________________
Quote:
Originally Posted by Relic View Post
Yes, you look like the pizza, dammit. Now get back to work!:D
Quote:
Originally Posted by macaroni tony View Post
You're a very handsome man :D
  #6  
Old 05-27-2011, 02:34 PM
Registered User
 
Join Date: Sep 2005
Location: Istanbul
Oh,and thanks winston.
__________________
Quote:
Originally Posted by Relic View Post
Yes, you look like the pizza, dammit. Now get back to work!:D
Quote:
Originally Posted by macaroni tony View Post
You're a very handsome man :D
  #7  
Old 05-27-2011, 02:44 PM
Selta's Avatar
www.HeavyMetalOpera.com

Unofficialy endorsing EBMM, Avatar Speakers
 
Join Date: Feb 2002
Location: Seattle (ish), WA
Send a message via AIM to Selta Send a message via MSN to Selta Send a message via Yahoo to Selta
Supporting Member
Just reformat it to NTFS and run GetDataBack on it. You probably won't get everything back, but you'll get most of it for sure. Format does not actually erase data...
__________________
Sterling 5 HH / Bongo 6 HS / Sterling 5 H
|
V

SansAmp RPM
|
V
FOH

Yes, I wear kilts from Utilikilt
  #8  
Old 05-27-2011, 03:08 PM
Registered User
 
Join Date: Sep 2005
Location: Istanbul
Quote:
Originally Posted by Ray Salamon View Post
Just reformat it to NTFS and run GetDataBack on it. You probably won't get everything back, but you'll get most of it for sure. Format does not actually erase data...
Thanks Ray,I was about to format it back to NTFS and was asking friends for a good recovery program.
__________________
Quote:
Originally Posted by Relic View Post
Yes, you look like the pizza, dammit. Now get back to work!:D
Quote:
Originally Posted by macaroni tony View Post
You're a very handsome man :D
  #9  
Old 05-27-2011, 03:11 PM
Selta's Avatar
www.HeavyMetalOpera.com

Unofficialy endorsing EBMM, Avatar Speakers
 
Join Date: Feb 2002
Location: Seattle (ish), WA
Send a message via AIM to Selta Send a message via MSN to Selta Send a message via Yahoo to Selta
Supporting Member
Quote:
Originally Posted by machine gewehr View Post
Thanks Ray,I was about to format it back to NTFS and was asking friends for a good recovery program.
GetDataBack is a pretty common/standard one you'll run into a lot if you stick in IT . Like I said, it probably won't get it all back (if the sectors have been overwritten multiple times in swap, what was there is gone), but you'll get a lot/most back, which IMO is better than nothing. Even through multiple formats the data is still technically on the disk
__________________
Sterling 5 HH / Bongo 6 HS / Sterling 5 H
|
V

SansAmp RPM
|
V
FOH

Yes, I wear kilts from Utilikilt
  #10  
Old 05-27-2011, 03:21 PM
winston's Avatar
Registered User
 
Join Date: May 2000
Location: Berkeley, CA
Supporting Member
Quote:
Originally Posted by machine gewehr View Post
Some computer engineer I am going to be...
Just be sure to learn from this...back up your data, and don't assume that different OSs do things the same.

Being based on UNIX (which does not hold your hand), a lot of Linux utilities let you make powerful decisions without the warnings you'd get in Mac/Windows.
__________________

tunes
videos
blog
  #11  
Old 05-27-2011, 03:27 PM
Registered User
 
Join Date: Sep 2005
Location: Istanbul
A friend of mine just called me to recommend GetDataBack,he said he recovered ~120 gb of data with this program.

I'm sure all of my data is still there just labeled as swap space,I never used Ubuntu after install so no virtual mem. was needed.

Man I hate computers.
__________________
Quote:
Originally Posted by Relic View Post
Yes, you look like the pizza, dammit. Now get back to work!:D
Quote:
Originally Posted by macaroni tony View Post
You're a very handsome man :D
  #12  
Old 05-27-2011, 03:31 PM
Registered User
 
Join Date: Sep 2005
Location: Istanbul
Quote:
Originally Posted by winston View Post
Just be sure to learn from this...back up your data, and don't assume that different OSs do things the same.

Being based on UNIX (which does not hold your hand), a lot of Linux utilities let you make powerful decisions without the warnings you'd get in Mac/Windows.
Heh,the friend I told about the above post told me the same thing.He's a pretty good software developer and he did the same mistake with higher costs before and just told me to learn from it.

The thing I'm angry about is I took 2 different classes that explains file systems as a part of the course and I know pretty good how file systems work,especially Unix systems.I passed those classes with good grades too.

theory != practice
__________________
Quote:
Originally Posted by Relic View Post
Yes, you look like the pizza, dammit. Now get back to work!:D
Quote:
Originally Posted by macaroni tony View Post
You're a very handsome man :D
  #13  
Old 05-27-2011, 03:34 PM
Selta's Avatar
www.HeavyMetalOpera.com

Unofficialy endorsing EBMM, Avatar Speakers
 
Join Date: Feb 2002
Location: Seattle (ish), WA
Send a message via AIM to Selta Send a message via MSN to Selta Send a message via Yahoo to Selta
Supporting Member
Quote:
Originally Posted by machine gewehr View Post
theory != practice
Get used to that
__________________
Sterling 5 HH / Bongo 6 HS / Sterling 5 H
|
V

SansAmp RPM
|
V
FOH

Yes, I wear kilts from Utilikilt
  #14  
Old 05-27-2011, 03:44 PM
Registered User
 
Join Date: Sep 2005
Location: Istanbul
Quote:
Originally Posted by Ray Salamon View Post
Get used to that
Will do Ray,will do.
__________________
Quote:
Originally Posted by Relic View Post
Yes, you look like the pizza, dammit. Now get back to work!:D
Quote:
Originally Posted by macaroni tony View Post
You're a very handsome man :D
  #15  
Old 05-27-2011, 03:48 PM
MJ5150's Avatar
Online
 
Join Date: Apr 2001
Location: Sunapee, New Hampshire
Supporting Member
Linux Swap File Questions

-Mike
  #16  
Old 05-28-2011, 05:16 AM
Registered User
 
Join Date: Sep 2005
Location: Istanbul
Just want to say that GetDataBack sees all the contents of the partition and I'm recovering all my files as we speak.

Thankfully swap space was never used and nothing got overwritten.Thanks for the help guys.
__________________
Quote:
Originally Posted by Relic View Post
Yes, you look like the pizza, dammit. Now get back to work!:D
Quote:
Originally Posted by macaroni tony View Post
You're a very handsome man :D
  #17  
Old 05-28-2011, 07:20 AM
Selta's Avatar
www.HeavyMetalOpera.com

Unofficialy endorsing EBMM, Avatar Speakers
 
Join Date: Feb 2002
Location: Seattle (ish), WA
Send a message via AIM to Selta Send a message via MSN to Selta Send a message via Yahoo to Selta
Supporting Member
Good to hear, Machine. It'll probably take awhile, but it sounds like it'll get most/all of your files back - success!
__________________
Sterling 5 HH / Bongo 6 HS / Sterling 5 H
|
V

SansAmp RPM
|
V
FOH

Yes, I wear kilts from Utilikilt
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Follow TalkBass on Twitter   Visit TalkBass on Facebook  

All times are GMT -6. The time now is 05:03 AM.




Copyright 2011 Talk Music Group Inc. All rights reserved.
Play guitar? Visit our new sister site TalkGuitar.com [beta]
Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.