LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Crashed a partition !! Help !! (https://www.linuxquestions.org/questions/linux-software-2/crashed-a-partition-help-222202/)

_UnPrEdictAbLe_ 08-25-2004 09:40 AM

Crashed a partition !! Help !!
 
hi,

WELL I HAD THE EXTREME NEED TO INSTALL WINDOWS ON MY BOX, SO I DECIDED TO REMOVE A PARTITION....
Code:

[root@unpredictable anurag]# cat /etc/fstab
LABEL=/                /                      ext3    defaults                1 1
none                    /dev/pts                devpts  gid=5,mode=620          0 0
none                    /dev/shm                tmpfs  defaults                0 0
LABEL=/masti            /masti                  ext3    defaults,users,rw,exec        1 2
LABEL=/other            /other                  ext3    defaults,users,rw,exec      1 2
LABEL=/software      /software                  ext3    defaults,users,rw,exec      1 2
none                    /proc                  proc    defaults                0 0
none                    /sys                    sysfs  defaults                0 0
/dev/hda5              swap                    swap    defaults                0 0
/dev/fd0                /mnt/floppy            auto    noauto,owner,kudzu      0 0
/dev/cdrom              /mnt/cdrom              udf,iso9660 noauto,owner,kudzu,ro 0 0

So, I backed up all data on /software and then rebooted with a Windows XP Setup disk.
Now, after everything, I put the FC2 disk and booted in "linux rescue". I successfully reinstalled grub and removed the line "LABEL=/software...." from /etc/fstab.

Here is the real problem. /software was 20GB. I just used up 5GB for Windows, so basically the rest 15GB is free. How do I recover it in Linux ?? and make it mount on /software as before ??

This is what "fdisk -l" shows.........
Code:

[root@unpredictable anurag]# /sbin/fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/hda1              1        1912    15358108+  83  Linux
/dev/hda2            1913        5736    30716280  83  Linux
/dev/hda3  *        5737        6389    5245222+  c  W95 FAT32 (LBA)
/dev/hda4            8287        9729    11590897+  f  W95 Ext'd (LBA)
/dev/hda5            8287        8477    1534176  82  Linux swap
/dev/hda6            8478        9729    10056658+  83  Linux


Help me please


Regards
unpredictable

darkleaf 08-25-2004 10:03 AM

If you know which of those partitions is the rest of the 15 GB set the type to linux and make it ext3 again. Then add it again in your /etc/fstab file

_UnPrEdictAbLe_ 08-25-2004 02:21 PM

Hi,
Well I recovered the partition. But now, it is a FAT32 formatted logical partition. How do I convert it to ext3 ??
Code:

[root@unpredictable anurag]# /sbin/fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/hda1              1        1912    15358108+  83  Linux
/dev/hda2            1913        5736    30716280  83  Linux
/dev/hda3  *        5737        6389    5245222+  c  W95 FAT32 (LBA)
/dev/hda4            6390        9729    26828550    f  W95 Ext'd (LBA)
/dev/hda5            6390        8286    15237621    b  W95 FAT32
/dev/hda6            8287        8477    1534176  82  Linux swap
/dev/hda7            8478        9729    10056658+  83  Linux
[root@unpredictable anurag]# cat /etc/fstab
LABEL=/                /                      ext3    defaults                1 1
none                    /dev/pts                devpts  gid=5,mode=620          0 0
none                    /dev/shm                tmpfs  defaults                0 0
LABEL=/masti            /masti                  ext3    defaults,users,rw,exec        1 2
LABEL=/other            /other                  ext3    defaults,users,rw,exec      1 2
none                    /proc                  proc    defaults                0 0
none                    /sys                    sysfs  defaults                0 0
/dev/hda5              swap                    swap    defaults                0 0
/dev/fd0                /mnt/floppy            auto    noauto,owner,kudzu      0 0
/dev/cdrom              /mnt/cdrom              udf,iso9660 noauto,owner,kudzu,ro 0 0

And by the way, in /etc/fstab the path to the device of the partition is just "LABEL=/software". How does Linux know which device ?? Help me people....I want back my 15GB of space back in Linux !!

regards,
unpredictable


All times are GMT -5. The time now is 08:01 PM.