Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Can't restart after having changed swap with fdisk

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
FUN
Posts: 1
Joined: 2006-03-12 09:47

Can't restart after having changed swap with fdisk

#1 Post by FUN »

Hello,

I'm a Newbie on Linux.

I've installed the Debian (etch) on a partition of my computer which was set up as follow:

hda1 NTFS (For WindowsXP (I said I'm a newbie on Linux :wink: )
hda3 ext3 (100Mo for /boot with grub)
hda5 NTFS (My "Windows"-Data Partition)
hda6 swap (1'000 Mo)
hda7 Linux (Debian)

PURPOSE:
I wanted to delete the swap partition to create a litte 50 Mo FAT 16 partition and create a new swap with what remains of memory.

HOW I DID IT:
I started by desactivating my swap with the "swapoff" command

After that, I used "fdisk" to:
1) erase ("d" command) my old swap, hda6
(Note: hda7 (Linux) so became hda6)
2) create ("n" command) a new FAT 16 ("t" command) disk, hda7, with 50 Mo
3) create ("n" command) a new swap partition ("t" command, then 82) with what remains of memory (950 Mo)
4) update the old partition table ("w" command)

I wanted to do a "swapon", but it didn't work. So I thought I had to reboot in order the new partition table to be considerated. So I reboot.

THE PROBLEME
After the reboot, it doesn't continue. I have following screen:

Code: Select all

./.
Target filesystem doesn't have /sbin/init

BusyBox v1.01 (Debian 1:1.01-4) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty: job control turned off
/ #
Could somebody please help me and explain what to do (with details as I am a newbie :wink: ) in order my computer to finish the boot ? :?:

Thanks in advance for any help :wink:

Best regards

FUN


Ps: Sorry for my bad english => I'm Swiss :oops:

User avatar
Ryujin
Posts: 37
Joined: 2006-03-09 16:58

#2 Post by Ryujin »

My guess would be that your Debian root partition changed and your grub config is pointing to the wrong partition, double check your /boot/grub/menu.lst and look at the entry for Debian and make sure it is pointing to the right partition
The only way to aggrandize oneself is to aggrandize others.
-Joseph Smith

Post Reply