PDA

View Full Version : [other] Partitions



Makosz
September 7th, 2010, 05:01 AM
I have what seams to be 7 different partitions. I only have 3 OS, Windows 7, Ubuntu, Backtrack 4. For some reason i have 2 separate partitions for Ubuntu 9.10 and 10.04. Which partitions can I format and how can I do it using only the bash and in system tools? Here is what menu.lst says


# 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 5

## 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=05808ecb-307c-4534-b7bf-235e45400dd2 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=05808ecb-307c-4534-b7bf-235e45400dd2

## 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=3

## 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 10.04.1 LTS, kernel 2.6.32-24-generic
uuid 05808ecb-307c-4534-b7bf-235e45400dd2
kernel /boot/vmlinuz-2.6.32-24-generic root=UUID=05808ecb-307c-4534-b7bf-235e45400dd2 ro quiet splash
initrd /boot/initrd.img-2.6.32-24-generic
quiet

title Ubuntu 10.04.1 LTS, kernel 2.6.32-24-generic (recovery mode)
uuid 05808ecb-307c-4534-b7bf-235e45400dd2
kernel /boot/vmlinuz-2.6.32-24-generic root=UUID=05808ecb-307c-4534-b7bf-235e45400dd2 ro single
initrd /boot/initrd.img-2.6.32-24-generic

title Ubuntu 10.04.1 LTS, kernel 2.6.32-23-generic
uuid 05808ecb-307c-4534-b7bf-235e45400dd2
kernel /boot/vmlinuz-2.6.32-23-generic root=UUID=05808ecb-307c-4534-b7bf-235e45400dd2 ro quiet splash
initrd /boot/initrd.img-2.6.32-23-generic
quiet

title Ubuntu 10.04.1 LTS, kernel 2.6.32-23-generic (recovery mode)
uuid 05808ecb-307c-4534-b7bf-235e45400dd2
kernel /boot/vmlinuz-2.6.32-23-generic root=UUID=05808ecb-307c-4534-b7bf-235e45400dd2 ro single
initrd /boot/initrd.img-2.6.32-23-generic

title Ubuntu 10.04.1 LTS, kernel 2.6.31-22-generic
uuid 05808ecb-307c-4534-b7bf-235e45400dd2
kernel /boot/vmlinuz-2.6.31-22-generic root=UUID=05808ecb-307c-4534-b7bf-235e45400dd2 ro quiet splash
initrd /boot/initrd.img-2.6.31-22-generic
quiet

title Ubuntu 10.04.1 LTS, kernel 2.6.31-22-generic (recovery mode)
uuid 05808ecb-307c-4534-b7bf-235e45400dd2
kernel /boot/vmlinuz-2.6.31-22-generic root=UUID=05808ecb-307c-4534-b7bf-235e45400dd2 ro single
initrd /boot/initrd.img-2.6.31-22-generic

title Ubuntu 10.04.1 LTS, memtest86+
uuid 05808ecb-307c-4534-b7bf-235e45400dd2
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



Thank You!!!

bobpress
September 7th, 2010, 05:25 AM
Your GRUB menu does not tell you how many partitions you have. You will need to run a command in a Terminal


sudo fdisk -lor you can use GParted Partition Editor from the System > Administration Menu to view your partitions. It will give you additional information about "mount points." Your Windows partition will be an NTFS partition. Your Ubuntu partition will have a mount point of / (some installations have a seperate /home partition for data) and you probably also have a linux-swap partition too. If there are others, you may have a Windows recovery partition, among others.

Mine looks like this:

Device Boot Start End Blocks Id System
/dev/sda1 * 1 16325 131130531 7 HPFS/NTFS
/dev/sda3 16326 18880 20523037+ 83 Linux
/dev/sda4 18881 38913 160915072+ 5 Extended
/dev/sda5 18881 38497 157573521 83 Linux
/dev/sda6 38498 38913 3341488+ 82 Linux swap / Solarissda1 is Windows 7
sd3 is my /
sda5 is my /home
sda4 is an Extended partition which contains sda5 and sda6

You need to run Ubuntu from a USB, CD, or DVD to actually make modifications to the partitions on the hard drive. Also make sure you backup your data and know what you are doing before you remove and/or resizing any partitions.

Makosz
September 7th, 2010, 05:33 AM
I got

/dev/sda1 1 5 40131 de Dell Utility
/dev/sda2 * 6 1918 15360000 7 HPFS/NTFS
/dev/sda3 1918 20315 147777078+ 7 HPFS/NTFS
/dev/sda4 20316 38913 149388435 5 Extended
/dev/sda5 38589 38891 2433816 83 Linux
/dev/sda6 38892 38913 176683+ 82 Linux swap / Solaris
/dev/sda7 20316 36118 126937534+ 83 Linux
/dev/sda8 37842 38588 6000246 82 Linux swap / Solaris
/dev/sda9 36119 37763 13213431 83 Linux
/dev/sda10 37764 37841 626503+ 82 Linux swap / Solaris
Which can i remove and also i have never made any backups before so could you tell me how or where to find the best way to do so.

This says I have 3 different Linux OS but i have only 2 Ubuntu 10.04 and Backtrack 4,

bobpress
September 7th, 2010, 06:26 AM
I got

/dev/sda1 1 5 40131 de Dell Utility
/dev/sda2 * 6 1918 15360000 7 HPFS/NTFS
/dev/sda3 1918 20315 147777078+ 7 HPFS/NTFS
/dev/sda4 20316 38913 149388435 5 Extended
/dev/sda5 38589 38891 2433816 83 Linux
/dev/sda6 38892 38913 176683+ 82 Linux swap / Solaris
/dev/sda7 20316 36118 126937534+ 83 Linux
/dev/sda8 37842 38588 6000246 82 Linux swap / Solaris
/dev/sda9 36119 37763 13213431 83 Linux
/dev/sda10 37764 37841 626503+ 82 Linux swap / Solaris
Which can i remove and also i have never made any backups before so could you tell me how or where to find the best way to do so.

This says I have 3 different Linux OS but i have only 2 Ubuntu 10.04 and Backtrack 4,

OK. It looks like your sda1 is a Dell Utility (Windows), sda2 is the Windows boot partition, sda3 is the partition that is your Windows installation. These need to be left alone. sda4 is the Extended partition (a container) for the sda5, sda6, and sda7.

Your Linux 10.04, 9.10, and Backtrack are on sda5, sda7, and sda9, but based on the info so far cannot tell which is which. Use Gparted while in Linux 10.04 and the / partition (sda?) is the one you will want to keep.

Backups can be made of your data by using an external drive, an online program such as Dropbox or other methods.

Repartitioning comes later, you need a live Ubuntu CD since the hard drive partitions cannot be mounted while being edited.

Makosz
September 7th, 2010, 05:25 PM
I have ran gparted but it does not tell me which linux is which. Could i remove Ubuntu 9.10 with out worrying what will happen with Ubuntu 10.04?

Also I believe that Backtrack installed a different grub version would it matter if i used Ubuntu to repartition or Backtrack then? I have Ubuntu 9.04 on a live cd at the moment only.

Could you also help me with http://ubuntuforums.org/showthread.php?t=1568873


Thank You!!!

srs5694
September 7th, 2010, 05:30 PM
Please don't post the same question to multiple forums. You posted it here, (http://ubuntuforums.org/showthread.php?t=1569605) too.

Makosz
September 7th, 2010, 05:40 PM
Sorry up to this point i have only posted questions about Ubuntu so the prefix was Ubuntu. But I put the prefix here other. I have always found my questions on >Search>Find all your threads. So when I did not find it there I thought that something went wrong because I just started Using konqueror just to check it out. But after looking more around the forums I went to >Search>Find all your posts , thats when i found it. I have not gone that way before. Once again sorry

Makosz
September 7th, 2010, 05:48 PM
Actually sda5 is Ubuntu 9.04. Is it safe to remove it? I got it from


Boot Info Script 0.55 dated February 15th, 2010

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

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

sda1: __________________________________________________ _______________________

File system: vfat
Boot sector type: Dell Utility: Fat16
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /COMMAND.COM

sda2: __________________________________________________ _______________________

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

sda3: __________________________________________________ _______________________

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

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: /etc/fstab

sda6: __________________________________________________ _______________________

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

sda7: __________________________________________________ _______________________

File system: ext3
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.04.1 LTS
Boot files/dirs: /boot/grub/menu.lst /etc/fstab

sda8: __________________________________________________ _______________________

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

sda9: __________________________________________________ _______________________

File system: ext3
Boot sector type: -
Boot sector info:
Operating System: BackTrack 4 PwnSauce
Boot files/dirs: /boot/grub/menu.lst /etc/fstab

sda10: __________________________________________________ _______________________

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

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

Drive: sda ___________________ __________________________________________________ ___

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

Partition Boot Start End Size Id System

/dev/sda1 63 80,324 80,262 de Dell Utility
/dev/sda2 * 81,920 30,801,919 30,720,000 7 HPFS/NTFS
/dev/sda3 30,801,920 326,356,076 295,554,157 7 HPFS/NTFS
/dev/sda4 326,360,475 625,137,344 298,776,870 5 Extended
/dev/sda5 619,916,283 624,783,914 4,867,632 83 Linux
/dev/sda6 624,783,978 625,137,344 353,367 82 Linux swap / Solaris
/dev/sda7 326,360,601 580,235,669 253,875,069 83 Linux
/dev/sda8 607,915,728 619,916,219 12,000,492 82 Linux swap / Solaris
/dev/sda9 580,235,733 606,662,594 26,426,862 83 Linux
/dev/sda10 606,662,658 607,915,664 1,253,007 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/sda10 4a5d5f61-6ac4-44cf-a607-181dfea71135 swap
/dev/sda1 3030-3030 vfat DellUtility
/dev/sda2 38C0B22EC0B1F26C ntfs RECOVERY
/dev/sda3 3AE4B445E4B40563 ntfs OS
/dev/sda4: PTTYPE="dos"
/dev/sda5 e1388bc7-6a83-4d68-8c07-9825334bcd99 ext3
/dev/sda6 97603b18-5265-4a97-85e5-dd82472adc98 swap
/dev/sda7 05808ecb-307c-4534-b7bf-235e45400dd2 ext3
/dev/sda8 8a750e05-9b77-41d6-9477-ff4e2b90e61b swap
/dev/sda9 72a7d62d-351b-4604-a5ea-63b0c296eac8 ext3
/dev/sda: PTTYPE="dos"

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

/dev/sda7 / ext3 (rw,relatime,errors=remount-ro)


=============================== 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=e1388bc7-6a83-4d68-8c07-9825334bcd99 / ext3 relatime,errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=97603b18-5265-4a97-85e5-dd82472adc98 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

=========================== sda7/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 5

## 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=05808ecb-307c-4534-b7bf-235e45400dd2 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=05808ecb-307c-4534-b7bf-235e45400dd2

## 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 10.04.1 LTS, kernel 2.6.32-24-generic
uuid 05808ecb-307c-4534-b7bf-235e45400dd2
kernel /boot/vmlinuz-2.6.32-24-generic root=UUID=05808ecb-307c-4534-b7bf-235e45400dd2 ro quiet splash
initrd /boot/initrd.img-2.6.32-24-generic
quiet

title Ubuntu 10.04.1 LTS, kernel 2.6.32-24-generic (recovery mode)
uuid 05808ecb-307c-4534-b7bf-235e45400dd2
kernel /boot/vmlinuz-2.6.32-24-generic root=UUID=05808ecb-307c-4534-b7bf-235e45400dd2 ro single
initrd /boot/initrd.img-2.6.32-24-generic

title Ubuntu 10.04.1 LTS, kernel 2.6.32-23-generic
uuid 05808ecb-307c-4534-b7bf-235e45400dd2
kernel /boot/vmlinuz-2.6.32-23-generic root=UUID=05808ecb-307c-4534-b7bf-235e45400dd2 ro quiet splash
initrd /boot/initrd.img-2.6.32-23-generic
quiet

title Ubuntu 10.04.1 LTS, kernel 2.6.32-23-generic (recovery mode)
uuid 05808ecb-307c-4534-b7bf-235e45400dd2
kernel /boot/vmlinuz-2.6.32-23-generic root=UUID=05808ecb-307c-4534-b7bf-235e45400dd2 ro single
initrd /boot/initrd.img-2.6.32-23-generic

title Ubuntu 10.04.1 LTS, kernel 2.6.31-22-generic
uuid 05808ecb-307c-4534-b7bf-235e45400dd2
kernel /boot/vmlinuz-2.6.31-22-generic root=UUID=05808ecb-307c-4534-b7bf-235e45400dd2 ro quiet splash
initrd /boot/initrd.img-2.6.31-22-generic
quiet

title Ubuntu 10.04.1 LTS, kernel 2.6.31-22-generic (recovery mode)
uuid 05808ecb-307c-4534-b7bf-235e45400dd2
kernel /boot/vmlinuz-2.6.31-22-generic root=UUID=05808ecb-307c-4534-b7bf-235e45400dd2 ro single
initrd /boot/initrd.img-2.6.31-22-generic

title Ubuntu 10.04.1 LTS, kernel 2.6.28-19-generic
uuid 05808ecb-307c-4534-b7bf-235e45400dd2
kernel /boot/vmlinuz-2.6.28-19-generic root=UUID=05808ecb-307c-4534-b7bf-235e45400dd2 ro quiet splash
initrd /boot/initrd.img-2.6.28-19-generic
quiet

title Ubuntu 10.04.1 LTS, kernel 2.6.28-19-generic (recovery mode)
uuid 05808ecb-307c-4534-b7bf-235e45400dd2
kernel /boot/vmlinuz-2.6.28-19-generic root=UUID=05808ecb-307c-4534-b7bf-235e45400dd2 ro single
initrd /boot/initrd.img-2.6.28-19-generic

title Ubuntu 10.04.1 LTS, memtest86+
uuid 05808ecb-307c-4534-b7bf-235e45400dd2
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


=============================== sda7/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/sda7 during installation
UUID=05808ecb-307c-4534-b7bf-235e45400dd2 / ext3 relatime,errors=remount-ro 0 1
# swap was on /dev/sda8 during installation
UUID=8a750e05-9b77-41d6-9477-ff4e2b90e61b none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

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


206.8GB: boot/grub/menu.lst
206.9GB: boot/grub/stage2
206.8GB: boot/initrd.img-2.6.28-19-generic
206.9GB: boot/initrd.img-2.6.31-22-generic
206.8GB: boot/initrd.img-2.6.32-23-generic
206.8GB: boot/initrd.img-2.6.32-24-generic
206.9GB: boot/vmlinuz-2.6.28-19-generic
206.8GB: boot/vmlinuz-2.6.31-22-generic
206.8GB: boot/vmlinuz-2.6.32-23-generic
206.9GB: boot/vmlinuz-2.6.32-24-generic
206.8GB: initrd.img
206.8GB: initrd.img.old
206.9GB: vmlinuz
206.8GB: vmlinuz.old

=========================== sda9/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=72a7d62d-351b-4604-a5ea-63b0c296eac8 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=72a7d62d-351b-4604-a5ea-63b0c296eac8

## 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=0x317 resume=/dev/hda5
# defoptions=vga=0x317

## 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

## 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 ##

splashimage=72a7d62d-351b-4604-a5ea-63b0c296eac8/boot/grub/splash.xpm.gz

title Ubuntu 8.10, kernel 2.6.30.9
uuid 72a7d62d-351b-4604-a5ea-63b0c296eac8
kernel /boot/vmlinuz-2.6.30.9 root=UUID=72a7d62d-351b-4604-a5ea-63b0c296eac8 ro quiet splash
initrd /boot/initrd.img-2.6.30.9
quiet

title Ubuntu 8.10, kernel 2.6.30.9 (recovery mode)
uuid 72a7d62d-351b-4604-a5ea-63b0c296eac8
kernel /boot/vmlinuz-2.6.30.9 root=UUID=72a7d62d-351b-4604-a5ea-63b0c296eac8 ro single
initrd /boot/initrd.img-2.6.30.9

title Ubuntu 8.10, memtest86+
uuid 72a7d62d-351b-4604-a5ea-63b0c296eac8
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/Longhorn (loader)
root (hd0,1)
savedefault
makeactive
chainloader +1


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda7.
title Ubuntu 10.04.1 LTS, kernel 2.6.32-24-generic (on /dev/sda7)
root (hd0,6)
kernel /boot/vmlinuz-2.6.32-24-generic root=UUID=05808ecb-307c-4534-b7bf-235e45400dd2 ro quiet splash
initrd /boot/initrd.img-2.6.32-24-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda7.
title Ubuntu 10.04.1 LTS, kernel 2.6.32-24-generic (recovery mode) (on /dev/sda7)
root (hd0,6)
kernel /boot/vmlinuz-2.6.32-24-generic root=UUID=05808ecb-307c-4534-b7bf-235e45400dd2 ro single
initrd /boot/initrd.img-2.6.32-24-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda7.
title Ubuntu 10.04.1 LTS, kernel 2.6.32-23-generic (on /dev/sda7)
root (hd0,6)
kernel /boot/vmlinuz-2.6.32-23-generic root=UUID=05808ecb-307c-4534-b7bf-235e45400dd2 ro quiet splash
initrd /boot/initrd.img-2.6.32-23-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda7.
title Ubuntu 10.04.1 LTS, kernel 2.6.32-23-generic (recovery mode) (on /dev/sda7)
root (hd0,6)
kernel /boot/vmlinuz-2.6.32-23-generic root=UUID=05808ecb-307c-4534-b7bf-235e45400dd2 ro single
initrd /boot/initrd.img-2.6.32-23-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda7.
title Ubuntu 10.04.1 LTS, kernel 2.6.31-22-generic (on /dev/sda7)
root (hd0,6)
kernel /boot/vmlinuz-2.6.31-22-generic root=UUID=05808ecb-307c-4534-b7bf-235e45400dd2 ro quiet splash
initrd /boot/initrd.img-2.6.31-22-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda7.
title Ubuntu 10.04.1 LTS, kernel 2.6.31-22-generic (recovery mode) (on /dev/sda7)
root (hd0,6)
kernel /boot/vmlinuz-2.6.31-22-generic root=UUID=05808ecb-307c-4534-b7bf-235e45400dd2 ro single
initrd /boot/initrd.img-2.6.31-22-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda7.
title Ubuntu 10.04.1 LTS, kernel 2.6.28-19-generic (on /dev/sda7)
root (hd0,6)
kernel /boot/vmlinuz-2.6.28-19-generic root=UUID=05808ecb-307c-4534-b7bf-235e45400dd2 ro quiet splash
initrd /boot/initrd.img-2.6.28-19-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda7.
title Ubuntu 10.04.1 LTS, kernel 2.6.28-19-generic (recovery mode) (on /dev/sda7)
root (hd0,6)
kernel /boot/vmlinuz-2.6.28-19-generic root=UUID=05808ecb-307c-4534-b7bf-235e45400dd2 ro single
initrd /boot/initrd.img-2.6.28-19-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda7.
title Ubuntu 10.04.1 LTS, memtest86+ (on /dev/sda7)
root (hd0,6)
kernel /boot/memtest86+.bin
savedefault
boot


=============================== sda9/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda9
UUID=72a7d62d-351b-4604-a5ea-63b0c296eac8 / ext3 relatime,errors=remount-ro 0 1
# /dev/sda10
UUID=4a5d5f61-6ac4-44cf-a607-181dfea71135 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

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


297.4GB: boot/grub/menu.lst
297.4GB: boot/grub/stage2
297.4GB: boot/initrd.img-2.6.30.9
297.4GB: boot/vmlinuz-2.6.30.9
297.4GB: initrd.img
297.4GB: vmlinuz

Can I make a single swap partition that all the Linux OS will use instead of 3 different once?

bobpress
September 8th, 2010, 01:12 AM
Yes, if that information is current, your Ubuntu 10.04 is on sda7. Partitions sda5 and 6, 8, 9 could be removed without affecting that OS. When you start deleting, moving and expanding those partitions, however, you need to boot a live CD and use GParted since no partition can be changed while active. The swap will be in use by the live CD and will show swapon status in GParted. You will need to do a swapoff action in GParted before it can be removed or moved.

If you just want Windows and Ubuntu 10.04, you could remove 5 and 6, then 4. You could also remove sda8 and 9 if you wanted (you could leave Backtrack sda9 and both would use swap on sda10) and then enlarge sda7 (your Ubuntu 10.04 OS) to fill the empty space and use sda10 for your swap.

Any change in your partitions can lead to loss of data, that is why backing up any data you don't want to potentially lose is recommended.

I use separate system (/ about 10G) and home (/home) partitions. It is a little more complicated, but you could reinstall Ubuntu with a newer version at any time without messing with your data files. Don't do it if you are not comfortable with the directions. Here is one. http://www.ubuntugeek.com/how-to-create-a-separate-home-partition-in-ubuntu.html There are other tutorials out there for this. Search on how to create separate /home partition in Ubuntu.