LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 08-05-2004, 11:25 AM   #16
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Original Poster
Rep: Reputation: 30

the beauty of slackware is that your almost forced to be so much closer to the origional linux way of doing things, true, rpms are convienient but they have the disadvantage of being more "static" in nature. having to compile things from scratch in times like this might be considered a chore, but the flip side is that you can get at every single line of code that your dealing with.... that's an incredible sense of "command & control" you know.... it's kinda nice!

Code:
Installation
TestDisk need ncurses library (should work with curses or pdcurses).

Before compiling TestDisk, you should install the following libraries
- ext2fs
- reiserfs
- ntfs

Configuration
./configure
./configure --help	for parameters

Exemple:
./configure --with-reiserfs-lib=/home/kmaster/perso/testdisk-5.2/progsreiserfs
 --with-reiserfs-includes=/home/kmaster/perso/testdisk-5.2/progsreiserfs-0.3
 --with-ntfs-lib=/home/kmaster/perso/testdisk-5.2/ntfsprogs-1.8.5/libntfs/.libs/
 --with-ntfs-includes=/home/kmaster/perso/testdisk-5.2/ntfsprogs-1.8.5/include/
 --with-ext2fs-lib=/home/kmaster/perso/testdisk-5.2/e2fsprogs-1.34/lib 
 --with-ext2fs-includes=/home/kmaster/perso/testdisk-5.2/e2fsprogs-1.34/lib
the things i do for love...

- perry

Last edited by perry; 08-05-2004 at 02:11 PM.
 
Old 08-05-2004, 08:09 PM   #17
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Original Poster
Rep: Reputation: 30
configure, make, checkinstall, swaret...

you know, with all this repeated steps to get a package downloaded, compiled and installed, it's very tempting to automate the process with a lovely gui....

but i guess thats already been done....

*sigh*

- perry
 
Old 08-05-2004, 09:56 PM   #18
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Original Poster
Rep: Reputation: 30
After all day...

As with everything else, you download a bunch of stuff, take your best guess as to what configuration options to use, make a couple corrections that seem logical, hit the make & checkinstall commands then hope for the best.

Here's the analysis of the first run

Code:
TestDisk 5.3, Data Recovery Utility, May 2004
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk /dev/hda - CHS 1559 240 63 - 11509 MB
Check current partition structure
     Partition                   Start          End       Size
 1 E extended LBA           694   0  1  1559 111 63   13085856
 2 * FAT32                    0   1  1   693 239 63   10493217 [LOCAL DISK]
Logical partition musn't be bootable
 5 L Linux                  694   1  1   762 191 63    1040193
   X extended               762 192  1   868 127 63    1598688
 6 L Linux Swap             762 193  1   868 127 63    1598625
   X extended               868 128  1  1283  31 63    6268752
 7 L Linux                  868 129  1  1283  31 63    6268689
   X extended              1283  32  1  1337 159 63     824544
 8 L Linux                 1283  33  1  1337 159 63     824481
   X extended              1337 160  1  1476 207 63    2104704
 9 L Linux                 1337 161  1  1476 207 63    2104641
   X extended              1476 208  1  1546  79 63    1050336
10 L Linux                 1476 209  1  1546  79 63    1050273
   X extended              1546  80  1  1559 111 63     198576
11 L Linux                 1546  81  1  1559 111 63     198513
[Previous]  [  Next  ]  [  Quit  ]
*=Primary bootable  P=Primary  L=Logical  E=Extended  D=Deleted
The Logical partition musn't be bootable message concerns me. I've specificed /hda5 as the root partition and ofcourse that has to be bootable.

Treading very carefully, i'll press on.

- perry
 
Old 08-05-2004, 10:11 PM   #19
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Original Poster
Rep: Reputation: 30
Well, this is what it is telling me...

this is the results that i get from TestDisk:

Code:
TestDisk 5.3, Data Recovery Utility, May 2004
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk /dev/hda - CHS 1559 240 63 - 11509 MB
Use arrow keys to change partition characteristics (see below)
Press the ENTER key to continue
    Partition                 Start          End       Size
* FAT32                    0   1  1   693 239 63   10493217 [LOCAL DISK]
L Linux                  694   1  1   762 239 63    1043217












Structure: Ok   Keys a: add partition, T: change type, P: list files
*=Primary bootable  P=Primary  L=Logical  E=Extended  D=Deleted
ReiserFS 2
somehow, they have to make sense with this

i'm tempted to hit Write, but i'd rather wait to get feedback from you as i don't know why it's not showing my other logical partitions?????

some help would be greatly appreciated!

thanks much

- perry
 
Old 08-05-2004, 10:14 PM   #20
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Original Poster
Rep: Reputation: 30
And this is interesting...

When i hit a as in add a partition, it provides this information...

Looks at bit odd, looks like there's space to add a partition, there should not be any space to add a partition....

Code:
TestDisk 5.3, Data Recovery Utility, May 2004
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk /dev/hda - CHS 1559 240 63 - 11509 MB





 empty                    0   0  1  1558 239 63   23572080







[Cylinders]  [  Heads  ]  [ Sectors ]  [Cylinders]  [  Heads  ]  [ Sectors ]
[  Type   ]  [  Done   ]




                             Change partition type
but i cannot interperate the numbers correctly.... is this legit ?

- perry
 
Old 08-05-2004, 10:18 PM   #21
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Original Poster
Rep: Reputation: 30
Here's another...

I pressed enter (hoping no changes would be made)

this is the output (i assume the result of the analysis:

Code:
TestDisk 5.3, Data Recovery Utility, May 2004
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk /dev/hda - CHS 1559 240 63 - 11509 MB

     Partition                   Start          End       Size
 1 * FAT32                    0   1  1   693 239 63   10493217 [LOCAL DISK]
 2 E extended               694   0  1   762 239 63    1043280
 5 L Linux                  694   1  1   762 239 63    1043217












[  Quit  ]  [Search! ]  [ Write  ]

                               Quit this section
continues to look odd....

- perry
 
Old 08-05-2004, 10:36 PM   #22
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Original Poster
Rep: Reputation: 30
I'm having trouble...

I'm having trouble interperating the results....

I ticked the "Allow partition last cylinder" and did an analyis, it seems to like 1559/240 the most. However the data i keep looking for seems to nowhere to be found except....

When i hit "Advanced", then i get this:

Code:
TestDisk 5.3, Data Recovery Utility, May 2004
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk /dev/hda - CHS 1560 240 63 - 11517 MB

    Partition                 Start          End       Size
 2 * FAT32                    0   1  1   693 239 63   10493217 [LOCAL DISK]
 1 E extended LBA           694   0  1  1559 111 63   13085856
 5 L Linux                  694   1  1   762 191 63    1040193
   X extended               762 192  1   868 127 63    1598688
 6 L Linux Swap             762 193  1   868 127 63    1598625
   X extended               868 128  1  1283  31 63    6268752
 7 L Linux                  868 129  1  1283  31 63    6268689
   X extended              1283  32  1  1337 159 63     824544
 8 L Linux                 1283  33  1  1337 159 63     824481
   X extended              1337 160  1  1476 207 63    2104704
 9 L Linux                 1337 161  1  1476 207 63    2104641
   X extended              1476 208  1  1546  79 63    1050336
10 L Linux                 1476 209  1  1546  79 63    1050273
   X extended              1546  80  1  1559 111 63     198576
11 L Linux                 1546  81  1  1559 111 63     198513

[  Quit  ]
                              Return to main menu
now this looks correct, but can i trust it....

i dunno

- perry
 
Old 08-05-2004, 11:09 PM   #23
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Original Poster
Rep: Reputation: 30
Well, i've elected to take my time..

I've other things i need to be at and my system is working so why rush...

However the instructions said to send the log file off to the creator of the program for his analysis. I'll give him a reference to this thread and wait for him to get back to me.

What bothers me most is that the program starts off great, but then i tell it to do a search and the stuff it comes back just seems to be more and more confusing...

TestDisk How-to

Thanks

- perry

ps.
testdata.log:

Code:

Thu Aug  5 23:39:35 2004
TestDisk command line : /log /debug
TestDisk 5.3, Data Recovery Utility, May 2004
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org
Linux version
Using locale 'LC_CTYPE=en_US;LC_NUMERIC=en_US;LC_TIME=en_US;LC_COLLATE=C;LC_MONETARY=en_US;LC_MESSAGES=en_US;LC_PAPER=en_US;LC_NAME=en_US;LC_ADDRESS=en_US;LC_TELEPHONE=en_US;LC_MEASUREMENT=en_US;LC_IDENTIFICATION=en_US'.
file_read(4,1,buffer,23587199(1559/239/63)) seek err Invalid argument
file_read(5,1,buffer,78198783(38182/63/32)) seek err Invalid argument
file_read(6,1,buffer,161023(628/7/32)) seek err Invalid argument
Hard disk list
Disk /dev/hda - CHS 1559 240 63 - 11509 MB
Disk /dev/sda - CHS 38182 64 32 - 38182 MB
Disk /dev/sdb - CHS 628 8 32 - 78 MB


Analyse Disk /dev/hda - CHS 1559 240 63 - 11509 MB
Geometry from MBR: head=240 sector=63
FAT32
FAT1 : 32-10259
FAT2 : 10260-20487
start_rootdir : 20488 root cluster : 2
Data : 20488-10493215
sectors : 10493217
cluster_size : 8
no_of_cluster : 1309091 (2 - 1309092)
fat_length 10228 calculated 10228

ReiserFS Marker at 694/1/1

ReiserFS Marker at 868/129/1

ReiserFS Marker at 1476/209/1
get_geometry_from_list_part_aux head=8 nbr=15
get_geometry_from_list_part_aux head=16 nbr=15
get_geometry_from_list_part_aux head=32 nbr=5
get_geometry_from_list_part_aux head=240 nbr=1
Current partitions:
 1 E extended LBA           694   0  1  1559 111 63   13085856
 2 * FAT32                    0   1  1   693 239 63   10493217 [LOCAL DISK]
Logical partition musn't be bootable
 5 L Linux                  694   1  1   762 191 63    1040193
   X extended               762 192  1   868 127 63    1598688
 6 L Linux Swap             762 193  1   868 127 63    1598625
   X extended               868 128  1  1283  31 63    6268752
 7 L Linux                  868 129  1  1283  31 63    6268689
   X extended              1283  32  1  1337 159 63     824544
 8 L Linux                 1283  33  1  1337 159 63     824481
   X extended              1337 160  1  1476 207 63    2104704
 9 L Linux                 1337 161  1  1476 207 63    2104641
   X extended              1476 208  1  1546  79 63    1050336
10 L Linux                 1476 209  1  1546  79 63    1050273
   X extended              1546  80  1  1559 111 63     198576
11 L Linux                 1546  81  1  1559 111 63     198513

search_part()
Disk /dev/hda - CHS 1559 240 63 - 11509 MB

FAT32 at 0/1/1
FAT32
FAT1 : 32-10259
FAT2 : 10260-20487
start_rootdir : 20488 root cluster : 2
Data : 20488-10493215
sectors : 10493217
cluster_size : 8
no_of_cluster : 1309091 (2 - 1309092)
fat_length 10228 calculated 10228
   D FAT32                    0   1  1   693 239 63   10493217 [LOCAL DISK]

ReiserFS Marker at 694/1/1

recover_rfs
block_count=130024
block_size=4096
   D Linux                  694   1  1   762 191 62    1040192
     ReiserFS 2
get_geometry_from_list_part_aux head=8 nbr=2
get_geometry_from_list_part_aux head=16 nbr=2
get_geometry_from_list_part_aux head=32 nbr=2
get_geometry_from_list_part_aux head=240 nbr=1

Results
   * FAT32                    0   1  1   693 239 63   10493217 [LOCAL DISK]
   L Linux                  694   1  1   762 239 63    1043217
     ReiserFS 2

interface_write()
 1 * FAT32                    0   1  1   693 239 63   10493217 [LOCAL DISK]
 2 E extended               694   0  1   762 239 63    1043280
 5 L Linux                  694   1  1   762 239 63    1043217

search_part()
Disk /dev/hda - CHS 1559 240 63 - 11509 MB

FAT32 at 0/1/1
FAT32
FAT1 : 32-10259
FAT2 : 10260-20487
start_rootdir : 20488 root cluster : 2
Data : 20488-10493215
sectors : 10493217
cluster_size : 8
no_of_cluster : 1309091 (2 - 1309092)
fat_length 10228 calculated 10228
   D FAT32                    0   1  1   693 239 63   10493217 [LOCAL DISK]

FAT32 at 0/1/7
FAT32
FAT1 : 32-10259
FAT2 : 10260-20487
start_rootdir : 20488 root cluster : 2
Data : 20488-10493215
sectors : 10493217
cluster_size : 8
no_of_cluster : 1309091 (2 - 1309092)
fat_length 10228 calculated 10228
   D FAT32                    0   1  1   693 239 63   10493217 [LOCAL DISK]
     FAT found using backup sector!

ReiserFS Marker at 694/1/1

recover_rfs
block_count=130024
block_size=4096
   D Linux                  694   1  1   762 191 62    1040192
     ReiserFS 2
get_geometry_from_list_part_aux head=8 nbr=2
get_geometry_from_list_part_aux head=16 nbr=2
get_geometry_from_list_part_aux head=32 nbr=2
get_geometry_from_list_part_aux head=240 nbr=1

Results
   * FAT32                    0   1  1   693 239 63   10493217 [LOCAL DISK]
   L Linux                  694   1  1   762 239 63    1043217
     ReiserFS 2

interface_write()
 1 * FAT32                    0   1  1   693 239 63   10493217 [LOCAL DISK]
 2 E extended               694   0  1   762 239 63    1043280
 5 L Linux                  694   1  1   762 239 63    1043217

search_part()
Disk /dev/hda - CHS 1559 240 63 - 11509 MB

FAT32 at 0/1/1
FAT32
FAT1 : 32-10259
FAT2 : 10260-20487
start_rootdir : 20488 root cluster : 2
Data : 20488-10493215
sectors : 10493217
cluster_size : 8
no_of_cluster : 1309091 (2 - 1309092)
fat_length 10228 calculated 10228
   D FAT32                    0   1  1   693 239 63   10493217 [LOCAL DISK]

FAT32 at 0/1/7
FAT32
FAT1 : 32-10259
FAT2 : 10260-20487
start_rootdir : 20488 root cluster : 2
Data : 20488-10493215
sectors : 10493217
cluster_size : 8
no_of_cluster : 1309091 (2 - 1309092)
fat_length 10228 calculated 10228
   D FAT32                    0   1  1   693 239 63   10493217 [LOCAL DISK]
     FAT found using backup sector!
get_geometry_from_list_part_aux head=8 nbr=1
get_geometry_from_list_part_aux head=16 nbr=1
get_geometry_from_list_part_aux head=32 nbr=1
get_geometry_from_list_part_aux head=240 nbr=1

Results
   * FAT32                    0   1  1   693 239 63   10493217 [LOCAL DISK]

interface_write()
simulate write!

write_mbr: starting...
write_all_log: starting...

TestDisk exited normally.

Last edited by perry; 08-05-2004 at 11:11 PM.
 
Old 08-06-2004, 09:41 AM   #24
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE 42.1_64+Tumbleweed-KDE, Mint 17.3
Posts: 3,949

Rep: Reputation: Disabled
Re: After all day...

Quote:
Originally posted by perry
... The Logical partition musn't be bootable message concerns me.
I've specificed /hda5 as the root partition and ofcourse that has to be bootable.
...
Hm. I'm not 100% sure but I think I had one bootable too, with no problems.
Concerning the root partition: I always thought the /boot -partition has to be bootable
(if it resides on a special partition). Is that not the case?

Quote:
Originally posted by perry
... When i hit "Advanced", then i get this...
If it is identical with the output from chkdsk, why don't you accept?

Quote:
Originally posted by perry
... However the instructions said to send the log file off to the creator of the program for his analysis.
I'll give him a reference to this thread and wait for him to get back to me....
Please post his answer here...

Last edited by JZL240I-U; 08-06-2004 at 09:42 AM.
 
Old 08-06-2004, 03:45 PM   #25
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Original Poster
Rep: Reputation: 30
This is what he said....

Quote:
On Fri, 6 Aug 2004, perry wrote:


>> thinking that my /etc/fstab might be causing some grief with my use of
>> tmpfs on /tmp, i did a couple more runs of testdisk. here's the results
>> and the /etc/fstab file


#tmpfs /tmp tmpfs auto,rw
tmpfs /home/guest tmpfs auto,rw
should be written
#none /tmp tmpfs defaults 0 0
none /home/guest tmpfs defaults 0 0
or "nosuid,nodev" instead of defaults if you care about security

Under TestDisk, Geometry, set the number of heads to 16,
Analyse and if necessary Search!
If you see all your partitions, rewrote the partition table
and fix your /etc/fstab (Windows partition will become /dev/hda1)

Bye,

Christophe
Code:
---------------------------------------------------------------------
  ,-~~-.___.	 ._.
 / |  '     \	 | |"""""""""| 	     -= GRENIER Christophe =-
(  )         0	 | |         |
 \_/-, ,----'	 | |         |
    ====         !_!--v---v--"	     http://www.cgsecurity.org
    /  \-'~;      |""""""""|
   /  __/~| ._-""||        |      Email: grenier@cgsecurity.org
 =(  _____|_|____||________|
---------------------------------------------------------------------
 
Old 08-06-2004, 07:15 PM   #26
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Original Poster
Rep: Reputation: 30
HOLY SH1T!!! - THIS GUY IS GOOD!

Here's the result of changing the cylinders to 16:

Code:
TestDisk 5.3, Data Recovery Utility, May 2004
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk /dev/hda - CHS 23385 16 63 - 11509 MB
Check current partition structure

 1 E extended LBA         10410   0  1 23391  15 63   13085856
Bad ending head
 2 * FAT32                    0   1  1 10409  15 63   10493217
Bad ending head











[  Quit  ]
*=Primary bootable  P=Primary  L=Logical  E=Extended  D=Deleted
                               Quit this section
Look scary but here's what i did when i did a Analyze:

Code:
TestDisk 5.3, Data Recovery Utility, May 2004
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk /dev/hda - CHS 23385 16 63 - 11509 MB
Use arrow keys to change partition characteristics (see below)
Press the ENTER key to continue
    Partition                 Start          End       Size
* FAT32 LBA                0   1  1 10409  15 63   10493217 [LOCAL DISK]
L Linux                10410   1  1 11441  15 63    1040193
L Linux Swap           11442   1  1 13027  15 63    1598625
L Linux                13028   1  1 19246  15 63    6268689
L Linux                19247   1  1 20064  15 63     824481
L Linux                20065   1  1 22152  15 63    2104641
L Linux                22153   1  1 23194  15 63    1050273







Structure: Ok   Keys a: add partition, T: change type, P: list files
*=Primary bootable  P=Primary  L=Logical  E=Extended  D=Deleted
As we say back in Newfoundland:

"I don't know about you but that looks like one good Bingo!

I don't know what to do, it looks he's batting 2 out of 3, looks like I'll have to chance and attempt to re-write the partition table while running Linux (aka doing what I'm doing right now!)

If you don't hear from me in 10 minutes, you'll know the reboot didn't go so good and I'm in the process of reinstalling....

Here's goes nothing!

- perry
 
Old 08-06-2004, 08:05 PM   #27
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Original Poster
Rep: Reputation: 30
Wink Still here...

Like everything else, before I make a major decision I like to think about it...

So i went for a walk while it was doing a Search and came back and stopped the search which was almost done. I took a look at the results, at the instructions again, noticed that my last partition, a small 100 mb partition is not listed, I looked at my /etc/fstab, took out the tmpfs on the /tmp, rebooted and tried TestDisk again and got the same results. Went thru it's results with a fine tooth comb and everything seems to be checking out, all except for that last partition which I'm not worried about but would like to include. That last parititon has always been trouble in one fashion or another....

Code:
TestDisk 5.3, Data Recovery Utility, May 2004
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk /dev/hda - CHS 23387 16 63 - 11510 MB

     Partition                   Start          End       Size
 1 * FAT32 LBA                0   1  1 10409  15 63   10493217 [LOCAL DISK]
 2 E extended LBA         10410   0  1 23194  15 63   12887280
 5 L Linux                10410   1  1 11441  15 63    1040193
 6 L Linux Swap           11442   1  1 13027  15 63    1598625
 7 L Linux                13028   1  1 19246  15 63    6268689
 8 L Linux                19247   1  1 20064  15 63     824481
 9 L Linux                20065   1  1 22152  15 63    2104641
10 L Linux                22153   1  1 23194  15 63    1050273







[  Quit  ]  [Search! ]  [ Write  ]

                               Quit this section
/etc/fstab

Code:
/dev/hda2        /mnt/windows     vfat        noauto,users     1   0
/dev/hda5        /                reiserfs    defaults         1   1
/dev/hda6        swap             swap        defaults         0   0
/dev/hda7        /usr             reiserfs    defaults         1   2
/dev/hda8        /tmp             ext2        defaults         1   2
/dev/hda9        /home            ext2        defaults         1   2
/dev/hda10       /opt             reiserfs    defaults         1   2
/dev/hda11       /var/www         ext2        defaults         1   2 (M.I.A.)

#none             /tmp	          tmpfs	      defaults         0   0
none             /home/guest      tmpfs	      nosuid,nodev,rw  0   0
/dev/sda1        /mnt/maxtor      vfat        noauto,users     1   0
/dev/sdb1        /mnt/flashcard   vfat        noauto,users     1   0
/dev/cdrom       /mnt/cdrom       iso9660     users,noauto,ro  0   0
/dev/backpack    /mnt/backpack    iso9660     users,noauto,rw  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
I'll run a Search on it now and if it comes up with the last partition I'll go with that, if not, I'll rerun TestDisk one more time (making a clean run, you do this with developing software) and go with it's initial results which happen to be damn good...

Code:
root@slackware:/home/perry# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda5               520076    182724    337352  36% /
/dev/hda7              3134244   2452756    681488  79% /usr
/dev/hda8               399207       301    378294   1% /tmp
/dev/hda9              1019304    840856    125832  87% /home
/dev/hda10              525112    443200     81912  85% /opt
/dev/hda11               96110      5536     85612   7% /var/www
none                    257628         8    257620   1% /home/guest
none                    257628         8    257620   1% /home/guest
The df results look a little odd though.... that 2nd /home/guest should not be there... and it should be empty...

- perry

Last edited by perry; 08-06-2004 at 08:30 PM.
 
Old 08-06-2004, 08:28 PM   #28
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Original Poster
Rep: Reputation: 30
Doing a search, just making sure...

Removed the tmpfs out of the way of testdisk
Believing the mounted /home/guest and the tmpfs /tmp and needless entries in the /etc/fstab to be somehow screwing up testdisk, i removed the said mentioned and rebooted... while the df is looking normal, testdisk is still reporting all but the last partition. so i'll let it do a search (it takes a while) and if it finds it i'll go with it, if not i'll say to hell with it, backup it's contents in /var (i'll unmount and copy) and let testdisk do it's thing, then reboot...
Code:
perry@slackware:~$ df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda5               520076    182784    337292  36% /
/dev/hda7              3134244   2452756    681488  79% /usr
/dev/hda8               399207       288    378307   1% /tmp
/dev/hda9              1019304    840824    125864  87% /home
/dev/hda10              525112    443200     81912  85% /opt
/dev/hda11               96110      5536     85612   7% /var/www
Testdisk should be successful
if testdisk is successfull and i suspect it will be, i should be able to reactivate system commander (or cfdisk) and reclaim that space. In finding that last partition, TestDisk has an option to "Allow Last Partition to be counted" or something, anyway, I tried that and did another Analysis with no difference...

Reclaiming, resizing & renumbering parititions
the primary objective here was to get system commander to reduce the size of the windows partition and then move the other partitions to create another partition for Linux as in maybe a /usr/local for compile source and the like. Moving is something thats safer for me as i hate renumbering /etc/fstab, however that might not be a bad idea... I'm not sure about renumbering behaviour with partitions (based on my experience with WinBlows)... feel free to enlighten me on that...

Nonethelss it's looking really good and would like to recommend TestDisk as standard issue on fixing partitions.... the only thing I can see possibly missing is a GUI to go with it, but hey, if you want guis that much go back to WinDoze.... ...not!

cheers

- perry

Last edited by perry; 08-06-2004 at 08:42 PM.
 
Old 08-06-2004, 09:19 PM   #29
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Original Poster
Rep: Reputation: 30
Well, /var/www had to go...

I said goodbye to /var/www
/var/www was not an important partition to keep, i just wanted it in ext2 format but thanks to tmpfs thats not required anymore

testdisk results too consistent to ignore
i decided to copy the contents of /var/www into /var/www (u know what i mean) and then rebooted, have ran testdisk and it gives me the same results. the Search yield more information that i wanted to bother with, a lot of partitions that were possibly deleted so i said to hell with it and will worry about that 100 mb later, who knows, maybe it's a result of the new 16 cylinder geometry...

Here's goes nothing
Once again, if you don't here from me in 10 minutes, then you know i'm in the process of reinstalling everything...

Code:
TestDisk 5.3, Data Recovery Utility, May 2004
Christophe GRENIER <grenier@cgsecurity.org>
http://www.cgsecurity.org

Disk /dev/hda - CHS 23385 16 63 - 11509 MB

     Partition                   Start          End       Size
 1 * FAT32 LBA                0   1  1 10409  15 63   10493217 [LOCAL DISK]
 2 E extended LBA         10410   0  1 23194  15 63   12887280
 5 L Linux                10410   1  1 11441  15 63    1040193
 6 L Linux Swap           11442   1  1 13027  15 63    1598625
 7 L Linux                13028   1  1 19246  15 63    6268689
 8 L Linux                19247   1  1 20064  15 63     824481
 9 L Linux                20065   1  1 22152  15 63    2104641
10 L Linux                22153   1  1 23194  15 63    1050273







[  Quit  ]  [Search! ]  [ Write  ]

                               Quit this section
Somehow, I think it's going to be ok.

- perry
 
Old 08-06-2004, 09:33 PM   #30
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Original Poster
Rep: Reputation: 30
Well, you just got to see this to believe it...

GRENIER Christophe's TestDisk Does the Job!
You talk about a fella every so glad to see the words "BIOS Data Successful" coming up on the screen. I wasn't sure what was going to happen after i said Write and it asked for confirmation. When I got outside TestDisk it said I had to reboot for changes to take effect.

Here's the results!
Remember, cfdisk would not even run before this, I had to rely on fdisk (yeah right)!
(and to boot that 100 meg is right where it should be!)
Code:
                                  cfdisk 2.12a

                              Disk Drive: /dev/hda
                        Size: 12072517632 bytes, 12.0 GB
              Heads: 16   Sectors per Track: 63   Cylinders: 23392

    Name        Flags      Part Type  FS Type          [Label]        Size (MB)
 ------------------------------------------------------------------------------
    hda1        Boot        Primary   W95 FAT32 (LBA)                   5372.56
    hda5                    Logical   Linux ReiserFS                     532.62
                            Logical   Free Space                           0.04*
    hda6        NC          Logical   Linux swap                         818.50*
                            Logical   Free Space                           0.04*
    hda7        NC          Logical   Linux ReiserFS                    3209.57*
                            Logical   Free Space                           0.04*
    hda8        NC          Logical   Linux ext2                         422.14*
                            Logical   Free Space                           0.04*
    hda9        NC          Logical   Linux ext2                        1077.58* 
                            Logical   Free Space                           0.04*
    hda10       NC          Logical   Linux ReiserFS                     537.75*
                            Pri/Log   Free Space                         101.68



     [Bootable]  [ Delete ]  [  Help  ]  [Maximize]  [ Print  ]
     [  Quit  ]  [  Type  ]  [ Units  ]  [ Write  ]

                 Toggle bootable flag of the current partition
Now it's off to get System Commander back and resize that damned WinBlows partition...

Never been so happy to see a partition table before. Needs a little cleaning up but if i didn't know better I seem to technically have more space now (all those 0.4 mb are a result of the new geometry)

Thanks Grenier (and the person who recommended him and everyone else that helped out)

Now thats one fella that needs a 6-figure job, he's earned it!

- perry

Last edited by perry; 08-06-2004 at 09:37 PM.
 
  


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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Partition problem with Qtparted in Knoppix variety & mp3 support problem in FC3 eypros Linux - Software 1 06-01-2005 08:12 PM
boot problem/ partition problem? ian sil Linux - General 1 05-10-2005 07:08 PM
Problem Resizing Linux Partition From Partition magic John_Emad SUSE / openSUSE 5 02-16-2005 01:42 PM
partition problem!! maseby Red Hat 3 06-10-2004 10:43 PM
What the... ??? (RH 7.3 Partition Problem) zeky Linux - General 7 07-24-2002 04:26 PM


All times are GMT -5. The time now is 05:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration