PDA

View Full Version : [ubuntu] v 9.10 1st install failed, 2nd ok. why no disk space?



scanner248
December 21st, 2009, 12:08 AM
computer literate, but noob to linux/ubuntu.

Set up dual boot with XP, SP2.

My first attempt at installation failed half way through. Tried to set up with ~ 150 gb for each Windows and ubuntu OS of 640 gb drive. Windows OS was on a 320 gb partition originally. So I had a 150 gb partition with windows, 147 mb to failed install and 2.7 gb swap file partition.

During second try at install, I directed the partitioner wizard to install into the originally failed partition. After the installI now have a 143.6 partition with ubuntu installed on it (i think...), a 2.3 gb partition that I think is the swap file created during the second install, a 173 Mb partition and a 2.9 gb that I think was the swap partition from the first install.

Anyways. I am able to boot into ubuntu or windows, but when ubuntu finishes with boot, I am notified that there is only 30 mb remaining on the drive. I can't install updates becuase I don't have enough disk space remaining.

Very confused....

Not sure how to navigate around all the different drives I now have or what is where. There was 2 drives listed that look to have the same directories under them (bin, usr, home, etc...).

I exited and booted into windows to check the drives again in disk management. Now I can't boot into ubuntu. Tells me there's a "problem with the configuration server". /usr/lib/libgconf2-4/gconf-sanity-check-2 exited with status 256. The boot is stuck in a loop. had to power down to get out.


Obviously I can't get boot into ubuntu now, can I just wipe out the logical partitions using disk manager in windows and start install over again? Will I need to reformat the partitions that were involved with the ubuntu installs? Keep them as logical or primary?

Would like to understand how to get it all fixed without reinstallation.

thanks in advance for any help.

darkod
December 21st, 2009, 12:19 AM
I think you should first have a look. Don't use disk management from windows for ubuntu (it's ok that you just took a look with it).
Boot with ubuntu cd, Try Ubuntu option. Open Gparted (in System-Administration). That's a great partition manager. If you have multiple hard disk drives select the correct drive in top right drop down box.
That will show you all partition on the drive and their filesystem. Only the mount points are not shown because you're running it from the cd, not the hdd. So it might be difficult to figure out which is the good install.
I appreciate that you want to solve this without reinstalling ubuntu, but since you are new to ubuntu and you have no data in ubuntu to lose AND most importantly, you have the partitions from the bad install to get rid of, I would use Gparted to delete all ubuntu partitions.
Leave the space as unallocated, boot again with the cd, select Install Ubuntu, and in step 4 use the option Use Largest Continous Free space. That will use your unallocated space. Provided you have only that unallocated space and the rest of the drive belongs to partitions.

PS. When working with Gparted it just schedules your commands. Once you are happy with the choices you made you need to click the big green check mark button in the Gparted toolbar to execute the scheduled commands.

scanner248
December 21st, 2009, 12:45 AM
Thx for quick reply.

I've got it booted onto the CD and have the GParted application up. The 2 swap drives are locked (shows a set of keys and does not have ability to delete). Can only delete the 143.6 and 2.3 drives that are listed as an ext4 file system.

darkod
December 21st, 2009, 12:48 AM
Thx for quick reply.

I've got it booted onto the CD and have the GParted application up. The 2 swap drives are locked (shows a set of keys and does not have ability to delete). Can only delete the 143.6 and 2.3 drives that are listed as an ext4 file system.

Right click on swap partition and use Swapoff. It will remove locks. For other partitions (if you ever need it), you use Unmount option.

scanner248
December 21st, 2009, 05:37 AM
All partitions deleted. Now I have the partition as unallocated. It still recognizes the partition as /dev/sda4 extended. Do I need to leave it as an extended, unallocated or delete it so it's just unallocated.

scanner248
December 21st, 2009, 07:31 AM
I went ahead and deleted the extended partition. Selected largest continuous free space as you directed. The install proceeded without issue.

On boot, I still got the option to choose which OS to boot. When selecting the ubuntu option, it stalls. Tapping on space bar brings up screen with text. Text on the screen says "gave up waiting for root device". Lists some common problems. Text at bottom of list says "ALERT! /dev/disk/by-uuid/3330ff8b-......does not exist. Dropping to shell!" command prompt is (initramfs).

I entered the directory /dev/disk/by-uuid. There's a few objects in there. one with a name as long as the one that is missing. b64fc7b7.........

Appears that information in boot loader that was built in previous install is no longer valid. How to modify the boot loader?

darkod
December 21st, 2009, 10:46 AM
I went ahead and deleted the extended partition. Selected largest continuous free space as you directed. The install proceeded without issue.

On boot, I still got the option to choose which OS to boot. When selecting the ubuntu option, it stalls. Tapping on space bar brings up screen with text. Text on the screen says "gave up waiting for root device". Lists some common problems. Text at bottom of list says "ALERT! /dev/disk/by-uuid/3330ff8b-......does not exist. Dropping to shell!" command prompt is (initramfs).

I entered the directory /dev/disk/by-uuid. There's a few objects in there. one with a name as long as the one that is missing. b64fc7b7.........

Appears that information in boot loader that was built in previous install is no longer valid. How to modify the boot loader?

You did correct by deleting the extended partition too. The space needs to be unallocated, not belonging to any partition.
I'm not sure why this error appeared, the install should have installed new grub files anyway.
It doesn't hurt reinstalling grub2. When you are booted with Try Ubuntu, in terminal first execute:
sudo fdisk -l

That will list your partitions. Most probably you will have larger linux partition as /dev/sda5 and the smaller swap partition as /dev/sda6. Check if that's the setup you have. If yes, reinstall grub2 with:

sudo mount /dev/sda5 /mnt
sudo grub-install --root-directory=/mnt/ /dev/sda

In the first command replace /dev/sda5 with your linux root partition if it isn't /dev/sda5. The commands should report successful installation of grub bootloader.
Restart and see is it working fine.

scanner248
December 21st, 2009, 11:55 PM
You did correct by deleting the extended partition too. The space needs to be unallocated, not belonging to any partition.
I'm not sure why this error appeared, the install should have installed new grub files anyway.
It doesn't hurt reinstalling grub2. When you are booted with Try Ubuntu, in terminal first execute:
sudo fdisk -l

That will list your partitions. Most probably you will have larger linux partition as /dev/sda5 and the smaller swap partition as /dev/sda6. Check if that's the setup you have. If yes, reinstall grub2 with:

sudo mount /dev/sda5 /mnt
sudo grub-install --root-directory=/mnt/ /dev/sda

In the first command replace /dev/sda5 with your linux root partition if it isn't /dev/sda5. The commands should report successful installation of grub bootloader.
Restart and see is it working fine.




I was able to get firefox to run this time I booted onto live CD. You were correct about partitions. Here's the output from fdisk:

ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x2cafdf8f

Device Boot Start End Blocks Id System
/dev/sda1 * 1 19471 156400776 7 HPFS/NTFS
/dev/sda2 38914 64409 204796620 7 HPFS/NTFS
/dev/sda3 64410 77825 107764020 7 HPFS/NTFS
/dev/sda4 19472 38913 156167865 5 Extended
/dev/sda5 19472 38539 153163678+ 83 Linux
/dev/sda6 38540 38913 3004123+ 82 Linux swap / Solaris

sda1 is the XP partition.

The next command reports back that I need to specify the filesystem type.

ubuntu@ubuntu:~$ sudo mount /dev/sda5 /mnt
mount: you must specify the filesystem type

What is it and how do I specify in the command?

darkod
December 21st, 2009, 11:59 PM
It might be some corruption and it doesn't understand the filesystem. You don't need to specify it with that command.
While booted like this with the cd run a filesystem check with:
sudo fsck /dev/sda5

scanner248
December 22nd, 2009, 12:10 AM
It might be some corruption and it doesn't understand the filesystem. You don't need to specify it with that command.
While booted like this with the cd run a filesystem check with:
sudo fsck /dev/sda5


Here's the result:

ubuntu@ubuntu:~$ sudo fsck /dev/sda5
fsck from util-linux-ng 2.16
e2fsck 1.41.9 (22-Aug-2009)
/dev/sda5: clean, 134273/9576448 files, 2285973/38290919 blocks

scanner248
December 22nd, 2009, 12:14 AM
I went ahead and tried running the second command. Here's the output from that.

ubuntu@ubuntu:~$ sudo grub-install --root-directory=/mnt/ /dev/sda
grub-probe: error: cannot find a device for /mnt//boot/grub.

No path or device is specified.
Try ``grub-probe --help'' for more information.
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.


Thanks for the help.

darkod
December 22nd, 2009, 12:41 AM
Out of what ever reason it is not able to mount (or even see) the root partition, /dev/sda5. That's why the second command fails which is logical. But I'm not sure why it's doing this. I don't know ubuntu enough to figure this out, sorry.
Hopefully someone will jump in.

scanner248
December 22nd, 2009, 06:11 AM
I figured out how to get past the first command. The df -T command lists the filesystem types. /dev is type tmpfs.

Filesystem Type 1K-blocks Used Available Use% Mounted on
aufs aufs 512924 97300 415624 19% /
udev tmpfs 512924 320 512604 1% /dev
/dev/sr0 iso9660 706532 706532 0 100% /cdrom
/dev/loop0
squashfs 684032 684032 0 100% /rofs
none tmpfs 512924 136 512788 1% /dev/shm
tmpfs tmpfs 512924 36 512888 1% /tmp
none tmpfs 512924 92 512832 1% /var/run
none tmpfs 512924 0 512924 0% /var/lock
none tmpfs 512924 0 512924 0% /lib/init/rw
/dev/sda5 tmpfs 512924 996 511928 1% /mnt
/dev/sda5 tmpfs 512924 996 511928 1% /mnt

Found a listing for usage of the mount command:
http://linux.die.net/man/8/mount

Edited the command accordingly:
ubuntu@ubuntu:~$ sudo mount -t tmpfs /dev/sda5 /mnt

No error after command. However, I'm still stuck getting past the second command.

ubuntu@ubuntu:~$ sudo grub-install --root-directory=/mnt/ /dev/sda
grub-probe: error: cannot find a device for /mnt//boot/grub.

No path or device is specified.
Try ``grub-probe --help'' for more information.
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.

I also tried:
ubuntu@ubuntu:~$ sudo grub-install --recheck /dev/sda
grub-probe: error: cannot find a device for /boot/grub.

No path or device is specified.
Try ``grub-probe --help'' for more information.
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.

I was able to find --modules usage and crammed it into the command:
ubuntu@ubuntu:~$ sudo grub-install --modules=tmpfs --root-directory=/mnt/ /dev/sda

the result:
ubuntu@ubuntu:~$ sudo grub-install --modules=tmpfs --root-directory=/mnt/ /dev/sda
grub-probe: error: cannot find a device for /mnt//boot/grub.

No path or device is specified.
Try ``grub-probe --help'' for more information.
No path or device is specified.
Try ``grub-probe --help'' for more information.
No path or device is specified.
Try ``grub-probe --help'' for more information.
No path or device is specified.
Try ``grub-probe --help'' for more information.
You attempted a cross-disk install, but the filesystem containing /mnt//boot/grub does not support UUIDs.


I cannot find a definition, usage or options for --modules. sticking in tmpfs was a wild swing.

Here's the output from the boot_info_script: Note that there isn't any information reported back from the partition that ubuntu was installed on.

============================= Boot Info Summary: ==============================

=> Grub 1.97 is installed in the MBR of /dev/sda and looks on the same drive
in partition #5 for /boot/grub.
=> Windows is installed in the MBR of /dev/sdb
=> Windows is installed in the MBR of /dev/sdc
=> Windows is installed in the MBR of /dev/sdd
sda1: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM

sda2: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

sda3: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

sda4: __________________________________________________ _______________________

File system: Extended Partition
Boot sector type: -
Boot sector info:

sda5: __________________________________________________ _______________________

File system:
Boot sector type: -
Boot sector info:
Operating System:
Boot files/dirs:

sda6: __________________________________________________ _______________________

File system: swap
Boot sector type: -
Boot sector info:

sdb1: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

sdb2: __________________________________________________ _______________________

File system: Extended Partition
Boot sector type: -
Boot sector info:

sdb5: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: According to the info in the boot sector, sdb5 starts
at sector 63.
Operating System:
Boot files/dirs:

sdb3: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

sdc1: __________________________________________________ _______________________

File system: vfat
Boot sector type: Windows XP: Fat32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

sdc2: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

sdc3: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

sdd1: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x2cafdf8f

Partition Boot Start End Size Id System

/dev/sda1 * 63 312,801,614 312,801,552 7 HPFS/NTFS
/dev/sda2 625,137,345 1,034,730,584 409,593,240 7 HPFS/NTFS
/dev/sda3 1,034,730,585 1,250,258,624 215,528,040 7 HPFS/NTFS
/dev/sda4 312,801,615 625,137,344 312,335,730 5 Extended
/dev/sda5 312,801,678 619,129,034 306,327,357 83 Linux
/dev/sda6 619,129,098 625,137,344 6,008,247 82 Linux swap / Solaris


Drive: sdb ___________________ __________________________________________________ ___

Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x370088ab

Partition Boot Start End Size Id System

/dev/sdb1 * 63 209,712,509 209,712,447 7 HPFS/NTFS
/dev/sdb2 209,712,510 524,265,209 314,552,700 5 Extended
/dev/sdb5 209,712,573 524,265,209 314,552,637 7 HPFS/NTFS
/dev/sdb3 524,265,210 625,137,344 100,872,135 7 HPFS/NTFS


Drive: sdc ___________________ __________________________________________________ ___

Disk /dev/sdc: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xbb308081

Partition Boot Start End Size Id System

/dev/sdc1 63 32,772,599 32,772,537 c W95 FAT32 (LBA)
/dev/sdc2 32,772,600 155,653,784 122,881,185 7 HPFS/NTFS
/dev/sdc3 155,653,785 234,436,544 78,782,760 7 HPFS/NTFS


Drive: sdd ___________________ __________________________________________________ ___

Disk /dev/sdd: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x533b156d

Partition Boot Start End Size Id System

/dev/sdd1 63 976,768,064 976,768,002 7 HPFS/NTFS


blkid -c /dev/null: __________________________________________________ __________

/dev/loop0: TYPE="squashfs"
/dev/sda1: UUID="E81823EB1823B808" LABEL="C Win OS" TYPE="ntfs"
/dev/sda2: UUID="C6D42044D4203957" LABEL="D drive" TYPE="ntfs"
/dev/sda3: UUID="2234AF7F34AF5497" LABEL="E drive" TYPE="ntfs"
/dev/sda6: UUID="b64fc7b7-d47a-4d98-9c12-6eaa4d9e1a5c" TYPE="swap"
/dev/sdb1: LABEL="F Apps" TYPE="ntfs"
/dev/sdb3: UUID="324846BD48468019" LABEL="H drive" TYPE="ntfs"
/dev/sdb5: LABEL="G Files" TYPE="ntfs"
/dev/sdc1: LABEL="PAGEFILE" UUID="D03D-B300" TYPE="vfat"
/dev/sdc2: UUID="0EF4C3EAF4C3D1DF" LABEL="Backup1" TYPE="ntfs"
/dev/sdc3: UUID="C6EC0AB4EC0A9F35" LABEL="Z drive" TYPE="ntfs"
/dev/sdd1: UUID="BA10DDCB10DD8EAF" LABEL="FreeAgent Drive" TYPE="ntfs"

=============================== "mount" output: ===============================

aufs on / type aufs (rw)
none on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
/dev/sr0 on /cdrom type iso9660 (rw)
/dev/loop0 on /rofs type squashfs (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/ubuntu/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=ubuntu)
/dev/sda5 on /mnt type tmpfs (rw)
/dev/sda5 on /mnt type tmpfs (rw)
/dev/sda5 on /mnt type tmpfs (rw)


================================ sda1/boot.ini: ================================

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOW S
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /fastdetect /NoExecute=OptIn

scanner248
December 23rd, 2009, 05:49 PM
SOLVED.

Though only by re-installation.

Tried re-install first like previous (wipe out partitions and install to largest unallocated space) and got the same result. Looks like it wasn't a random error, but perhaps a bug.

Ultimately, had to wipe out the partitions created by installation, then grow the windows OS partion back to its original size of 320 gb. Also left the remaining 320 gb on the disk as unallocated.

This allowed me to choose the option of "install them side by side, choosing OS each time at start up" to get the install the way I wanted it. Chose to split the windows OS partition 50-50 as in initial install. The partition wizard indicated that the remaining unallocated space would stay so.

After install (clean w/o errors) it booted into ubuntu without issue. The install used the 150 gb from the original windows OS partition as directed, but it had also taken the remaining 320, leaving ubuntu partition with ~ 450 gb.

I loaded up the live disk again and used GParted to shrink the ubuntu partition back down to where I wanted it, created another ext4 partition for /home and also grew my swap space to where I wanted it to be.

So it would appear that I am now ready to play in the linux world. Just need to figure out the nome networking stuff while the remainder of the family computers are running on either XP or vista. :)