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.
I was resizing a fat32 storage partition on my laptop. I resized using YAST2 in Suse. Originally it was ~39GB and I resized it to ~37GB to make more space for the linux parition. However, after the resize, I could not add the extra space to the linux partition. What is worse is that I could not longer mount the drive. Also, when I boot into windows, it is no longer recognized as a formatted drive.
Most of my important data is on this partition and I need to get it back. How can I recover the data? YAST2 will not let me resize the partition back to its original size. When I try to use parted, it says the partition table is incorrect. How do I fix this?
gpart and sfdisk are your first level friends. If those don't help, use lde. Remember to take backups from every bit you overwrite when you do your recovering attemps. This way you can't make the situation worse.
Oh, and I would recommend turning into local linux/filesystems guru from the neibourhood to get him/her to help you. If there is none available, I might be willing to help with the issue.
If your job/ass/life/over a monts work is dependant on those files, it might be better to use some professionals to do the job.
Begin scan...
Possible partition(Windows NT/W2K FS), size(10001mb), offset(0mb)
Possible partition(DOS FAT), size(39997mb), offset(10001mb)
Possible partition(Linux swap), size(7mb), offset(57224mb)
End scan.
Checking partitions...
Partition(OS/2 HPFS, NTFS, QNX or Advanced UNIX): primary
Partition(DOS or Windows 95 with 32 bit FAT): primary
Partition(Linux swap or Solaris/x86): primary
Ok.
Primary partition(2)
type: 011(0x0B)(DOS or Windows 95 with 32 bit FAT)
size: 39997mb #s(81915372) s(20482938-102398309)
chs: (1023/15/63)-(1023/15/63)d (20320/6/1)-(101585/9/63)r
Warning: Unable to align partition properly. This probably means that another
partitioning tool generated an incorrect partition table, because it didn't have
the correct BIOS geometry. It is safe to ignore,but ignoring may cause
(fixable) problems with some boot loaders.
yes hda5 is the one i tried to resize. The Gpart output shows the correct size (39997mb). However, now the partition goes from cylinder 20322 to 99147. If i resize it back to the original size of 20322-101586 will that cause any problems? Also, how do i do that?
also hda5 is not in /etc/fstab because i umounted before resizing. I dont remember exactly how it was mounted. It was a fat32 drive. I tried remounting the resized drive but I cant remember the type and i get an error
I don't think that helps. If there is a problem accessing some files or directories, that might help, but a mounting problem sounds more like the starting offset is out of track. Could you give the output of "fdisk -l -u /dev/hda"?
PS. I sent you email about how contacting me in realtime, so we could have more dynamic conversation.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.