LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-19-2009, 11:51 PM   #16
upper_room
LQ Newbie
 
Registered: Jun 2009
Posts: 16

Original Poster
Rep: Reputation: 0

Thanks for the script, but as far as the boot_info_script_028.sh file goes, There's no space to save it to. I can't even delete files to make space because I just installed Ubuntu and I don't have any.
 
Old 06-19-2009, 11:53 PM   #17
upper_room
LQ Newbie
 
Registered: Jun 2009
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks for pointing that out syg00

Code:
grant@grant-laptop:~$ grep -Ev "^#|^\s*$" /boot/grub/menu.lst
default		0
timeout		10
title		Ubuntu 9.04, kernel 2.6.28-11-generic
uuid		75d2bff3-9f52-42c0-91ca-8d5221c2edb6
kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=75d2bff3-9f52-42c0-91ca-8d5221c2edb6 ro quiet splash 
initrd		/boot/initrd.img-2.6.28-11-generic
quiet
title		Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid		75d2bff3-9f52-42c0-91ca-8d5221c2edb6
kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=75d2bff3-9f52-42c0-91ca-8d5221c2edb6 ro  single
initrd		/boot/initrd.img-2.6.28-11-generic
title		Ubuntu 9.04, memtest86+
uuid		75d2bff3-9f52-42c0-91ca-8d5221c2edb6
kernel		/boot/memtest86+.bin
quiet
title		Other operating systems:
root
title		Windows Vista (loader)
rootnoverify	(hd0,1)
savedefault
makeactive
chainloader	+1

Last edited by upper_room; 06-19-2009 at 11:56 PM.
 
Old 06-19-2009, 11:55 PM   #18
upper_room
LQ Newbie
 
Registered: Jun 2009
Posts: 16

Original Poster
Rep: Reputation: 0
As far as the boot_info_script.sh goes, I don't have any hard drive space to save the file to.
 
Old 06-19-2009, 11:59 PM   #19
upper_room
LQ Newbie
 
Registered: Jun 2009
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks syg00

Code:
grant@grant-laptop:~$ grep -Ev "^#|^\s*$" /boot/grub/menu.lst
default		0
timeout		10
title		Ubuntu 9.04, kernel 2.6.28-11-generic
uuid		75d2bff3-9f52-42c0-91ca-8d5221c2edb6
kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=75d2bff3-9f52-42c0-91ca-8d5221c2edb6 ro quiet splash 
initrd		/boot/initrd.img-2.6.28-11-generic
quiet
title		Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid		75d2bff3-9f52-42c0-91ca-8d5221c2edb6
kernel		/boot/vmlinuz-2.6.28-11-generic root=UUID=75d2bff3-9f52-42c0-91ca-8d5221c2edb6 ro  single
initrd		/boot/initrd.img-2.6.28-11-generic
title		Ubuntu 9.04, memtest86+
uuid		75d2bff3-9f52-42c0-91ca-8d5221c2edb6
kernel		/boot/memtest86+.bin
quiet
title		Other operating systems:
root
title		Windows Vista (loader)
rootnoverify	(hd0,1)
savedefault
makeactive
chainloader	+1
grant@grant-laptop:~$
Thanks for emailing me the script norobro, but as far as the boot_info_script.sh goes, I don't have any hard drive space to save the file to
 
Old 06-20-2009, 12:17 AM   #20
upper_room
LQ Newbie
 
Registered: Jun 2009
Posts: 16

Original Poster
Rep: Reputation: 0
I got it working, here's RESULTS.txt from boot_info_script.sh

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

=> Grub0.97 is installed in the MBR of /dev/sda and looks on the same drive
in partition #5 for /boot/grub/stage2 and /boot/grub/menu.lst.

sda1: _________________________________________________________________________

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

sda2: _________________________________________________________________________

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

sda3: _________________________________________________________________________

File system: ntfs
Boot sector type: Windows Vista
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: ext3
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 9.04
Boot files/dirs: /boot/grub/menu.lst /etc/fstab

sda6: _________________________________________________________________________

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

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

Drive: sda ___________________ _____________________________________________________

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xb258bbd4

Partition Boot Start End Size Id System

/dev/sda1 2,048 3,074,047 3,072,000 27 Hidden HPFS/NTFS
/dev/sda2 * 3,084,480 286,358,624 283,274,145 83 Linux
/dev/sda3 291,606,528 312,578,047 20,971,520 7 HPFS/NTFS
/dev/sda4 286,358,625 291,595,814 5,237,190 5 Extended
/dev/sda5 286,358,688 291,258,449 4,899,762 83 Linux
/dev/sda6 291,258,513 291,595,814 337,302 82 Linux swap / Solaris


blkid -c /dev/null: ____________________________________________________________

/dev/sda1: UUID="AEAEC0C7AEC08973" LABEL="TOSHIBA SYSTEM VOLUME" TYPE="ntfs"
/dev/sda2: UUID="0777f285-64ea-4001-95b0-890f528d7c86" TYPE="ext2"
/dev/sda3: UUID="F014ABBC14AB8466" TYPE="ntfs"
/dev/sda5: UUID="75d2bff3-9f52-42c0-91ca-8d5221c2edb6" TYPE="ext3"
/dev/sda6: UUID="838ffcd4-186a-461a-8bf6-32528494ad52" TYPE="swap"

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

/dev/sda5 on / type ext3 (rw,relatime,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,nosuid,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
lrm on /lib/modules/2.6.28-11-generic/volatile type tmpfs (rw,mode=755)
securityfs on /sys/kernel/security type securityfs (rw)
overflow on /tmp type tmpfs (rw,size=1048576,mode=1777)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/grant/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=grant)


=========================== sda5/boot/grub/menu.lst: ===========================

# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=75d2bff3-9f52-42c0-91ca-8d5221c2edb6 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=75d2bff3-9f52-42c0-91ca-8d5221c2edb6

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## specify if running in Xen domU or have grub detect automatically
## update-grub will ignore non-xen kernels when running in domU and vice versa
## e.g. indomU=detect
## indomU=true
## indomU=false
# indomU=detect

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title Ubuntu 9.04, kernel 2.6.28-11-generic
uuid 75d2bff3-9f52-42c0-91ca-8d5221c2edb6
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=75d2bff3-9f52-42c0-91ca-8d5221c2edb6 ro quiet splash
initrd /boot/initrd.img-2.6.28-11-generic
quiet

title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)
uuid 75d2bff3-9f52-42c0-91ca-8d5221c2edb6
kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=75d2bff3-9f52-42c0-91ca-8d5221c2edb6 ro single
initrd /boot/initrd.img-2.6.28-11-generic

title Ubuntu 9.04, memtest86+
uuid 75d2bff3-9f52-42c0-91ca-8d5221c2edb6
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2
title Windows Vista (loader)
rootnoverify (hd0,1)
savedefault
makeactive
chainloader +1


=============================== sda5/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda5 during installation
UUID=75d2bff3-9f52-42c0-91ca-8d5221c2edb6 / ext3 relatime,errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=838ffcd4-186a-461a-8bf6-32528494ad52 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

=================== sda5: Location of files loaded by Grub: ===================


149.0GB: boot/grub/menu.lst
148.4GB: boot/grub/stage2
147.1GB: boot/initrd.img-2.6.28-11-generic
147.1GB: boot/vmlinuz-2.6.28-11-generic
147.1GB: initrd.img
147.1GB: vmlinuz
 
Old 06-20-2009, 06:14 AM   #21
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,721

Rep: Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120
Very odd - did you happen to use Partition Magic to create partition(s) prior to installing Ubuntu ?.
Does Vista boot successfully from the grub menu ?.
 
Old 06-20-2009, 06:55 AM   #22
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,062

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
Am I missing something here? It looks as if what has happened is that you have a swap partition (sda6; presumably exactly what you wanted), a partition sda5, which I don't know what you intended to do with, but, in practice, you've put everything on, and a partition sda2, which you probably intended to use for more-or-less everything, but in practice you aren't using for anything.

A nice, quick, df should be able to confirm that.

The question that arises from that is what do you want to do about it? if this is a fresh install, you might be best re-doing the install. If not, you might want to look at usage an shuffle something big off on to your currently unused partition. This isn't such a good solution, as your currently spare partition is 17632 cylinders and the partition that you are using as '/' is 704 cylinders, and you'd probably prefer that the other way around.

Oh, and back up everything before doing anything else.
 
Old 06-20-2009, 08:42 AM   #23
upper_room
LQ Newbie
 
Registered: Jun 2009
Posts: 16

Original Poster
Rep: Reputation: 0
Okay, I just tried to boot vista, unsuccessfully, I got a message
Quote:
Error 13: invalid or unsupported executable
Prior to installing Ubuntu, I used the partition manager in windows to shrink the size of the Windows partition.

And the output from df

Code:
grant@grant-laptop:~$ df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda5              2411376   2288736       148 100% /
tmpfs                   508528         0    508528   0% /lib/init/rw
varrun                  508528        92    508436   1% /var/run
varlock                 508528         0    508528   0% /var/lock
udev                    508528       168    508360   1% /dev
tmpfs                   508528        84    508444   1% /dev/shm
lrm                     508528      2392    506136   1% /lib/modules/2.6.28-11-generic/volatile
overflow                  1024        20      1004   2% /tmp
If it comes down to it, I'd have no problem reinstalling everything (Windows included), as I backed up everything before installation, but what would I do differently to avoid this problem?
 
Old 06-20-2009, 01:59 PM   #24
upper_room
LQ Newbie
 
Registered: Jun 2009
Posts: 16

Original Poster
Rep: Reputation: 0
Anybody?
 
Old 06-20-2009, 03:48 PM   #25
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 647

Rep: Reputation: 249Reputation: 249Reputation: 249
upper room,

I don't know a thing about vista so I have been hesitant to offer advice. That being said, since you can't boot vista, I would just start over. Install vista, use the vista partition manager to allocate space for ubuntu and a swap partition and then install ubuntu. Just be sure to make your ubuntu partition larger. Since you have lots of space I would suggest 10 Gb.

There are a lot of of partition schemes, like putting /home, /var, & /usr on separate partitions, but to get started I would put ubuntu all on one partition.

HTH

Last edited by norobro; 06-20-2009 at 03:53 PM. Reason: correct typos
 
Old 06-20-2009, 07:04 PM   #26
upper_room
LQ Newbie
 
Registered: Jun 2009
Posts: 16

Original Poster
Rep: Reputation: 0
Alright, thanks everybody.
 
Old 06-20-2009, 08:44 PM   #27
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,721

Rep: Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120
I agree with a re-install - too hard to diagnose remotely.
Do Vista first - then resize using its disk manager (it's pretty good). Leave the space unallocated, don't try and make partitions on the unallocated space from Windoze. Take a note of the partition layout.
Then do the Ubuntu install using logical partitions - you may need to go into "expert" mode during the install. I'm not sure how the Ubuntu installer reacts if you have 3 primaries already allocated. I never trust it and set up partitions in advance of the install from a Linux liveCD.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No free space on disk, but there is? Recirqie SUSE / openSUSE 4 02-22-2013 01:17 PM
partition space and disk space usage and free don't match nsic Linux - Newbie 3 02-22-2013 12:57 PM
How t get it known free disk space? ukrainet Linux - General 3 05-06-2008 10:52 PM
free disk space? Alf829 Linux - Newbie 3 08-01-2003 11:26 AM
How to see free disk space bripage Linux - General 3 04-29-2002 08:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration