Tekforums

Chat => Entertainment & Technology => Topic started by: soopahfly on August 04, 2006, 10:09:55 AM

Title: Ubuntu Partitions
Post by: soopahfly on August 04, 2006, 10:09:55 AM
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

(http://img130.imageshack.us/img130/733/screenshotvf8.th.png) (http://img130.imageshack.us/my.php?image=screenshotvf8.png)

Ive tried unmounting but it says its not mounted.

I cant kill the partition to make it useable again :(
Title: Re:Ubuntu Partitions
Post by: brummie on August 04, 2006, 11:30:31 AM
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
Title: Re:Ubuntu Partitions
Post by: skidzilla on August 04, 2006, 11:40:42 AM
Used by Hoff lovers everywhere: http://gparted.sourceforge.net/livecd.php
Title: Re:Ubuntu Partitions
Post by: soopahfly on August 04, 2006, 11:54:07 AM
That is GtParted.
Title: Re:Ubuntu Partitions
Post by: brummie on August 04, 2006, 13:24:27 PM
its Q T Parted not Gparted

go with skidzillas post so they arent mounted
Title: Re:Ubuntu Partitions
Post by: soopahfly on August 04, 2006, 15:24:57 PM
Tried, the live cd hangs before I get to the GUI.
Title: Ubuntu Partitions
Post by: maximusotter on August 04, 2006, 15:55:05 PM
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.
Title: Re:Ubuntu Partitions
Post by: soopahfly on August 04, 2006, 16:04:49 PM
Na, its not the HDD, its something Ive done.
Title: Re:Ubuntu Partitions
Post by: soopahfly on August 04, 2006, 16:14:22 PM
Tried hiren too! Ive got v8.3 here.
Title: Re:Ubuntu Partitions
Post by: bear on August 04, 2006, 16:15:32 PM
Quote from: soopahflyTried hiren too! Ive got v8.3 here.

k Ill remove link ;)
Title: Re:Ubuntu Partitions
Post by: soopahfly on August 04, 2006, 16:22:25 PM
Wink Wink, Nudge Nudge  -  Say no more!
Title: Ubuntu Partitions
Post by: bear on August 04, 2006, 16:25:09 PM
Did u try good ole delpart which is on the CD ?
Title: Re:Ubuntu Partitions
Post by: soopahfly on August 04, 2006, 16:28:56 PM
No actually.  I dont know where the original cd is now.
hmm.

I think I threw it at a collegue.
Title: Ubuntu Partitions
Post by: cornet on August 05, 2006, 14:56:21 PM
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
Title: Re:Ubuntu Partitions
Post by: soopahfly on August 09, 2006, 09:22:05 AM
I fixed it.

I backed up everything and started again.

And I had just got flash to work too :(
Title: Re:Ubuntu Partitions
Post by: brummie on August 09, 2006, 10:43:00 AM
Quote from: soopahflyI fixed it.

I backed up everything and started again.

And I had just got flash to work too :(

flash??? err thats pretty easy to achieve matey.