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.
Hello Linux gurus.I'm hoping someone can help me recover my data. Here is what happened:
A few months back I installed Ubuntu. I played around with it but I messed it up.I decided to try out another distro. No sweat, I thought, I'll just reformat the partition and start over.
I tried Qtparted in Knoppix to create a partition but the option was graeyed out so I went to Winwoes and used disk manager to erase my Linux partition. i decided i wanted a larger swap and tried to delete it but windows also deleted my partition with my documents. i guess because they both were in a extended partition.
I have a back up of my partition table but i can't get sfdisk to write it to disk. I don't know what i'm doing wrong, can someone help? i don' want to lose all my data when I think it's all still there.
If you have access to another pc with enough space on its hard drive to store the amount of data you lost. You count mount it as a slave drive and copy it over. Then when you fix it you could copy back. Kinda a pain, but I have done it a few times.
Sorry you got that one in right before me. I am no good really when it comes to partitions, Thought you were just trying to recover a windows my docs and such. So please disregard.
Knoppix gives me an error message but when gpart is done i'll try it again. i have no clue how to write the partition table back to the drive though. I tried sfdisk but it doesn't seem to change it, any tips or advice? I'm really knew at this so I'm really lost. I can see that gpart identifies something but it's not the same as my partition table right?
i tried using cat backup | sfdisk -d /dev/hda like some websites sais but the partition table stay s the same.
according to `man sfdisk`
-d Dump the partitions of a device in a format useful as input to sfdisk. For example,
% sfdisk -d /dev/hda > hda.out
% sfdisk /dev/hda < hda.out
will correct the bad last extended partition that the OS/2 fdisk creates.
One thing to consider is copying your data before you start messing around with file recovery. You can clone the drive using things like dd from a live CD---or you can clone it in another computer (cloning programs dont care what's on the disk--they just copy the bits)
Whatever you do, don't WRITE to the disk unless you are sure what you are doing.
thanks for the tip,pixellany. I'll go out and buy some dvd+r to back up because i don't have other hdd. I saw that fry's had a pack of fify for six bucks.Part of the problems is that i don't really know what i'm doing. i just assume my data is still there because i only lost the partition table (right??)but i don't know anything about linux so i'm just going through the motions. Like the gpart thing above? i don't know what it means but i think it's telling me that my partitions are there. anyway, i think knoppix has a disl cloner, righ?
1.well after backing up I tried uselpa's tip but this is what i got:
root@3[knoppix]# cat /home/knoppix/Desktop/workin_nov10 | sfdisk /dev/hda
Checking that no-one is using this disk right now ...
Disk /dev/hda: 155061 cylinders, 16 heads, 63 sectors/track
Units = cylinders of 516096 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/hda1 0+ 155060 155061- 78150743+ 83 Linux
/dev/hda2 0 - 0 0 0 Empty
/dev/hda3 0 - 0 0 0 Empty
/dev/hda4 0 - 0 0 0 Empty
sfdisk: unrecognized input: extended partition does not start at a cylinder boundary.
I had the same problem with Windows.
My partitions were gone.
But then I remembered +/- of how my HD was partitioned.
It looked like this
HD with 80G
HDA1 Windows 5G VFAT
HDA2 Windows 35G
HDA5 Extended 40G
HDA6 SWP 256M
HDA7 / ReiserFS 5G
HDA8 /company 10G
HDA9 /songs the rest of HD
So I knew that my company's data was on a partition between 45G and 55G of the HD.
Then I made this:
New installation of LINUX
HDA1 Windows 5G
HDA5 Extended 75G
HDA6 SWP 256M
HDA7 / ReiserFS 5G
HDA8 /company ReiserFS 55G
HDA9 /recovery ReiserFS 15G
So all my old data should be in de "new" "/company" partition.
Log in as ROOT and install the program to (in this case HDA9 /recovery)
Please check the man page (man foremost) for details and your needs!!!!!!!
I executed this:
./foremost -v -s 50000000 -T -t jpg doc pdf -i /dev/hda8
The program started with search after block 50.000.000 created a folder with timestamp in /recovery and recovered JPGs PDFs
Last edited by Sören Schneider; 03-27-2006 at 08:27 AM.