[Gllug] partition table screwup

Minty mintywalker at gmail.com
Tue Nov 1 11:49:22 UTC 2005


i've done something rather dumb

i forgot to create a swap partion when installing debian sarge.

so, I ran fdisk.
deleted /dev/hda6 which was /var/tmp
created a new (slightly smaller) partition for /var/tmp
created a new swap parition in the free'd up space

This kinda monkied with the partition table numbers that fdisk
reported, such that

  what was // was now
  ===================
  hda9     // hda8 (aka /)
  hda8     // hda7 (aka /tmp)
  hda7     // hda6 (aka /usr)
  hda6     // hda9 (aka, /var/tmp)
  ....     // hda10 new swap partition
  all the others remain unchanged

This mapping is based on start/end block numbers before & after my hatchet job.

so, I updated /etc/fstab accordingly and rebooted. ouch.

  pivot_root: No such file or directory
  /sbin/init: cannot open dev/console: No such file
  kernel panic : attempted to kill init

Happily, Knoppix cd to the rescue.

Only, I'm not entirely sure what I need to do to recover my system.

Best guess is that grub might be confused.  It was expecting / on hda8
and it's now on hda9.

Help!
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list