LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   fedora doesnot detect swap after deletion of a partition (https://www.linuxquestions.org/questions/fedora-35/fedora-doesnot-detect-swap-after-deletion-of-a-partition-613771/)

ashjas 01-15-2008 02:05 PM

fedora doesnot detect swap after deletion of a partition
 
New Note 4



Hello,



i had windows on my system,installed suse then fedora 8.

for some reason deleted suse and increased the ext3 partition of fedora to acquire the free space of suse partition by using a third party partioner.



now fedora doesnot detect the swap...may be because the sda number of both swap and the ext3 partition got changed??as i had to reinstall grub changing the partition number from where grub loads fedora...though i am able to boot fedora up,but my problem is that i need to enable swap detection at boot time.



but something stange is there...gparted shows swap to be at sda5:




http://img90.imageshack.us/my.php?image=26088062fo3.png


and /boot/grub/menu.lst shows that the partition from which the grub loads up fedora is hd0,5 that is sda5..

http://img221.imageshack.us/my.php?i...3458323rd8.png





so how can one partitions be alloted sda5 at boot time and other when fedora loads??



please help me.



Thanks.

b0uncer 01-15-2008 02:18 PM

Pay attention to GRUB's naming convention: (hd0,5) is the equivalent of sda6. In GRUB configuration the numbers count from zero upwards; that is, first partition is partition number 0, second is number 1 and so on.

So:
sda1 = (hd0,0)
sda2 = (hd0,1)
sda3 = (hd0,2)
sda4 = (hd0,3)
sda5 = (hd0,4)
...

Swap not being loaded is probably beceause of the changed partition table..is fstab information correct?

You can use swapon to enable swap.

ashjas 01-16-2008 10:12 AM

Thanks for the help...


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