FIXXED!! Ubuntu 12.04 help crashing

hello myy names matt im fairly new to ubuntu today i experianced my comp crashing to the site
could not write bytes: broken pipe
A buddy of mine BKS sent me here

computer specs
dell inspiron 530s
intel core duo 2
2.2ghz if i remember
only running one hhd was planning to buy another soon
invidia geforce 210 gti card
also im having to type all this off my xbox so it sucks haha

so im asking how to fix this thx

Ok, going to need a little more to go on … at what point does it crash, during boot up or while you are running an application ??
(and where do you see this error message, in a Window or on the console?)

Sorry haha it crashes on the boot up prossess. It did it once with the ubuntu screen load screen. Then again at the same place but the word ubuntu didnt show up

Again if im. Ot makin since i apologize im in the learning ropes of using ubuntu so please forgive me also im using ubuntu 12.04

Where and when do you see the “broken pipe” message ?

I take it the PC used to work with Ubuntu, and it’s only just started doing this ?

Where any updates running when you last closed the PC down … ie. before it started crashing ?

It would say ubuntu purple background and then go to black screen with the writing in white. As i call it script page lol. And yeah i had sOme updates but it freezed up and never did them so i had to hardshut down the pc and yes i know thats bad for your pc but i didnt know there was another way until now haha

Can you boot to an Ubuntu 12.04 LiveCD/LiveUSB … open a terminal (Ctrl+Alt+T) and post the output from running this command:

sudo fdisk -l

No clrt alt t doesnt work for me

Wow i feel dumb sorry ok yeah ima gunna try the terminal now to see what it does

What this suppose to do for me? like i said im a newb at this lol i admit it i prob caused this problem.

At this point it’s not supposed to do anything “for you” … I just need to see where Ubuntu is installed.

K? so what now lol

What now ? … erm, I still need the output from:

sudo fdisk -l

run in a temninal, whilst booted to an Ubuntu 12.04 LiveCD/LiveUSB

k i’ve done that and it brings a bunch of stuff like idk even know what to call this haha

I NEED to SEE the output.

Post it here.

If it helps … boot to the LiveCD/LiveUSB … set up a wired or wireless connection … then come here, and copy/paste.

You’re going to need to setup an internety connection in the Live environment anyway.

ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00079583

Device Boot Start End Blocks Id System
/dev/sda1 * 2048 620951551 310474752 83 Linux
/dev/sda2 620953598 625141759 2094081 5 Extended
/dev/sda5 620953600 625141759 2094080 82 Linux swap / Solaris

Disk /dev/sdb: 8004 MB, 8004304896 bytes
35 heads, 21 sectors/track, 21269 cylinders, total 15633408 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdb1 * 32 15633407 7816688 c W95 FAT32 (LBA)
ubuntu@ubuntu:~$

does this work? srry if i dont understand some things :-[

OK, for these commands to work, you MUST have an active internet connection from the LiveCD/LiveUSB.

It’s also probably best to copy/paste these commands into the terminal.

Once you’re sure you have3 a live internet connection, run these commands in sequence:

sudo mount /dev/sda1 /mnt

then:

for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done

then:

sudo chroot /mnt

your prompt should change from $ to # … then run:

dpkg --configure -a

then

apt-get update

then:

apt-get upgrade

then:

dpkg --configure -a

When finished, hit Ctrl+D to exit the chroot environment … the prompt should change back from # to $

Now close the terminal, and reboot to the hard drive.

If there are any errors … post them here, along with which command spit them out.

k when rebooting take out the usb drive yes?

OK, shut down … remove USB stick … turn on.

i get the same thing as i did before… guess im in big trouble haha