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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
So, I'll start at the beginning. I have a Micro-SD card that got corrupted and I wanted the files off of it. I read that there was no way to do it, and I'd have to format it. I found this unacceptable. I read deeper. Somewhere I read that it could be done in Linux. I have an old BackTrack3 disk, and I tinkered around in there with it. I read that I'd need something more. I got Ubuntu 11.1 (I think that's the version).
I tinkered around in Ubuntu trying commands that I found on forums to repair the "superblock." I'd like to mention here, that I am NOT good at Linux. I have only ever used it to recover deleted files on a hard drive, and to crack a WEP key a long time ago. I am worse than a noobie, as I soon proved to myself.
I had to go to work, so I gave up on the Micro-SD card temporarily. I shut down. Upon coming home, I wanted to play some Star Wars:TOR, so I booted up, and now my Windows won't boot. It goes all the way to the graphic (the swirly windows symbol), starts the graphic, and then blue screens for a fraction of a second, and reboots. I tried booting in recover mode, I tried the Windows disk, nothing will repair it.
I loaded Ubuntu back up (from CD) and have been trying a few commands, but I have no idea what I am doing. I am probably causing more damage than good.
Disk /dev/sdc: 90.0 GB, 90028302336 bytes
255 heads, 63 sectors/track, 10945 cylinders, total 175836528 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
Disk identifier: 0x00000000
Disk /dev/sdc doesn't contain a valid partition table
This is the drive. It's a 90GB OCZ-Agility3 SSD. I'm using Win7x64.
Also, to note, it does not show up at all in my Home Folder. I have 2 other drives that do show up.
description: ATA Disk
physical id: 0.0.0
bus info: scsi@8:0.0.0
logical name: /dev/sdc
size: 83GiB (90GB)
In summary, I have no idea what to try. I don't know what I broke. I can remember most of the commands I attempted, and I think I was using the wrong /dev.
Even though u feel that you wiped the disk & are getting sdc doesn't have a valid partition table try mounting the drive & see if there are any files on it that are recoverable.
Depending on what level of disk wipe you did gparted-live-cd has testdisk on it you may be able to recover some of your files from there.
Is there any way to get the info back off that drive?
Or get it to list what is on it? Maybe show used blocks...? I don't know these Linux commands
if it is as k3lt01 says [to put it another way,that the disk is FUBAR] there are actualy programs available which recover wiped disks,am remembering from memory but think the forensic section in back track [well in the latest version anyway] possibly had such a program but may be entirely wrong.
am not familiar of specific brand names for these programs,apart from recuva on windows but that was trash and never found one file of mine though that was just an accidental delete from within windows.
google something like 'hard disk partition recovery open source',one search that came up was clonezilla,have had it on a number of distros for cloning but never used it-also never knew recovered whole disks let alone specific partitions,so it may be worth a go; have a read into it- http://clonezilla.org/
also,slightly offtopic but dont be so hard on self about making a mistake,cant say have personaly known any linux newbie who has ever known what cracking WEP keys involved let alone what it means,so that is having one over a lot of people.
everyone makes screwups it comes with the risk of using linux et al; which all offer us freedom over autopilot,we need to screw up to learn dont we?
if are setting up a windows partition again [assuming have got the disks] install a virtual machine and a linux/s that matches spec,its very good for practicing with as any screwups only mess up the virtual partition which can be easily recovered or-wiped and restarted.
Take either that Backtrack CD or Ubuntu, pop it in. Get to a command line somehow, anyway will work.
When you see "xxxxxx@ubuntulive$ or whatever it will say,
type sudo parted
If it then says <parted>, your in.
Then simply type print all
If you see anything remotely close to that sccard come up, it will tell you or should.
Anyway, if not, type mktable /dev/sdb
and see what it says. If it warns you, say okay. If it gives error, try mktable /dev/sdc
If you still get errors or "not found", you may be out of luck. however, if you see <label type>?, type msdos or it may fat then if you see <file type? [ext2] pop up, just type vfat and hit enter and you should be good to go.
I must warn you, if you use parted, it does not play around so don't make any typos, okay? Be careful. It's real time but it works best of anything.
a) The SDcard:
With the disk id being zeroes, looks like you wiped the card. Would also explain the invalid (as in non-existent) partition table. Testdisk, which is very good, will be unable to help if you really did zero the disk. It looks for "signatures" for partitions and files. You won't have any. This also precludes using a "data carving" forensic tool like foremost.
b) Windows boot problem:
This should be unrelated, but who'd bet against it ?. Hard to know what was done to the other two disks, and even if we did, recovery would be difficult. Re-install maybe ?.
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Originally Posted by EDDY1
Not to stir up confusion but the OP is posting from linux machine, so I think any help u offer will be beneficial, as any help will preserve the linux os or be recoverable
I didn't actually take any notice of what type of OS he was using after he said in his post he was using a Windows 7 machine. My concern, after already being warned for certain behaviours, is that it would be deemed inappropriate and also that the OP could cause more damage using such tools.
PendriveLinux has a list of programs to create bootable usb drives. Some of these programs have the ability to download and install anything from a Linux iso to security iso to cracking isos. I have personally used multisystem and know it can do this I have also used Yumi and it was able to do it to.
Be very careful with tools like the ones supplied, or downloadable, with these programs.