News:

Tekforums.net - The improved home of Tekforums! :D

Main Menu

Ubuntu Partitions

Started by soopahfly, August 04, 2006, 10:09:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

soopahfly

Im trying to kill a fluffed partition, and im having no such luck.
Quotesoopahfly@soopahfly-laptop:~$ sudo e2fsck -p /dev/hda6
/dev/hda6 is mounted.

WARNING!!!  Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.

Do you really want to continue (y/n)? yes

e2fsck: Bad magic number in super-block while trying to open /dev/hda6
/dev/hda6:
The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193



Ive tried unmounting but it says its not mounted.

I cant kill the partition to make it useable again :(

brummie

used any other app? i use gparted.

can you format it first as ext3 then try delete it?
its only logical and i cant see any obvious probs

make sure it doesnt get mounted in /etc/fstab then restart the comp and try again

skidzilla


soopahfly


brummie

its Q T Parted not Gparted

go with skidzillas post so they arent mounted

soopahfly

Tried, the live cd hangs before I get to the GUI.

maximusotter

Did ya run the diagnostic software for your HDD? Its always good ta rule that out. Only time I started cursing Ubuntu serioiusly was when it was actually Maxtor being a twat.

soopahfly

Na, its not the HDD, its something Ive done.

soopahfly

Tried hiren too! Ive got v8.3 here.

bear

Quote from: soopahflyTried hiren too! Ive got v8.3 here.

k Ill remove link ;)

soopahfly

Wink Wink, Nudge Nudge  -  Say no more!

bear

Did u try good ole delpart which is on the CD ?

soopahfly

No actually.  I dont know where the original cd is now.
hmm.

I think I threw it at a collegue.

cornet

Firstly try cfdisk (terminal based partition proggy, real easy to use) and see if that lets you delete it.

As a last resort before just nuking everything you could try the following (and no im not responsible for you stuffing it up ;) )

Here goes:

* Boot off cd

* Create raw backup of existing parition table just incase:

dd if=/dev/hda of=backup.bin bs=512 count=1


* Copy backup.bin to somewhere safe.

* Now create a text dump of your partion table:

sfdisk -d /dev/hda > partitions.txt


* Edit paritions.txt and remove ONLY the line that contains /dev/hda6 (the screwed parition)

* Recreate the partition table:

cat partitions.txt | sfdisk /dev/hda


* Reboot

* Hopefully thatll fix it :)

* If its knackered then restore from your original raw backup by doing:

dd if=backup.bin of=/dev/hda bs=512 count=1


Cornet

soopahfly

I fixed it.

I backed up everything and started again.

And I had just got flash to work too :(