Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14
I was installing Ubuntu, and I think I've got myself a problem. I have Windows 7 installed on my computer. The partitions were setting up as follows: 100 MB for ...
  1. #1
    Just Joined!
    Join Date
    Sep 2010
    Posts
    8

    Installing Ubuntu v10.04.1 LTS 64-bit

    I was installing Ubuntu, and I think I've got myself a problem.

    I have Windows 7 installed on my computer. The partitions were setting up as follows:
    100 MB for the boot sector
    687 GB for drive C:
    15 GB for Win7 drive image

    This is what I did. I went to "Disk Management" and shrunk the volume for drive C to make a 100GB space for Ubuntu. I left the space "unallocated", rebooted the computer using the disc that I made with the 64-bit version of Ubuntu. I clicked the button to try out Ubuntu. When I got to the desktop, I clicked System > Administration > GParted.

    I selected the "non-allocated" 100 GB area to have GParted to partition for Ubuntu.

    Here is where my problem is... after partitioning the area. I go to System > Administration > Install Ubuntu 10.04.1 LTS... I follow the prompts and when I get to the step to install to a partition...nothing shows up in the box for what partition I want to install to. So I shut the computer down, take out the Ubuntu disc, and the computer freezes.

    I put the disc back in to reboot to Ubuntu, run GParted and instead of seeing all the available partitions... I see 1...yes 1 partition that is 687 GB that is "unallocated".

    I'm guessing that Win7 is completely off my computer. What the heck???

    How can I get Win7 back??? My computer didn't come with a disc. I guess I'm screwed!!!

    What should I do now???

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Hi and Welcome !

    It's easy to recover Partition Table. If internet connection works fine in Ubuntu LiveCD mode then install testdisk and execute it in Terminal. It will recover Partition Table.
    Code:
    sudo apt-get update
    sudo apt-get install testdisk
    sudo testdisk
    In case you couldn't install testdisk for any reason, download PartedMagic LiveCD/USB. Testdisk is available in PartedMagic. Boot up from PartedMagic LiveCD and click on Testdisk option in Menu.

    Before starting installation again, post partition structure of your Hard disk here. Boot up from Ubuntu LiveCD, open Terminal and execute this
    Code:
    sudo fdisk -l
    Post output here.

    * It's small L in fdisk -l.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Sep 2010
    Posts
    8
    Here's the output:

    Disk /dev/sda: 750.2 GB, 750156374016 bytes
    255 heads, 63 sectors/track, 91201 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optional): 512 bytes / 512 bytes
    Disk indentifier: 0x0000d39a

    Device Boot Start End Blocks Id System
    ubuntu@ubuntu:~$

    Quote Originally Posted by devils casper View Post
    Hi and Welcome !

    It's easy to recover Partition Table. If internet connection works fine in Ubuntu LiveCD mode then install testdisk and execute it in Terminal. It will recover Partition Table.
    Code:
    sudo apt-get update
    sudo apt-get install testdisk
    sudo testdisk
    In case you couldn't install testdisk for any reason, download [="://partedmagic.com/download.html"]PartedMagic LiveCD/USB[/]. Testdisk is available in PartedMagic. Boot up from PartedMagic LiveCD and click on Testdisk option in Menu.

    Before starting installation again, post partition structure of your Hard disk here. Boot up from Ubuntu LiveCD, open Terminal and execute this
    Code:
    sudo fdisk -l
    Post output here.

    * It's small L in fdisk -l.

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    fdisk doesn't show any partition. Do not try to manually create any new partition now.

    Run testdisk on this Hard disk and recover partitions.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Sep 2010
    Posts
    8
    says i need to enable the component "universe".

    Quote Originally Posted by devils casper View Post
    fdisk doesn't show any partition. Do not try to manually create any new partition now.

    Run testdisk on this Hard disk and recover partitions.

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Press Alt+F2 and type this
    Code:
    gksu gedit /etc/apt/sources.list
    Above code will open sources.list file in Gedit with root privileges.

    Remove # sign before all the lines having universe and multiverse words. Save file and execute apt-get commands again.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Just Joined!
    Join Date
    Sep 2010
    Posts
    8
    Since I'm running from CD...will I be able to save these settings??

    Quote Originally Posted by devils casper View Post
    Press Alt+F2 and type this
    Code:
    gksu gedit /etc/apt/sources.list
    Above code will open sources.list file in Gedit with root privileges.

    Remove # sign before all the lines having universe and multiverse words. Save file and execute apt-get commands again.

  8. #8
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    it is running in memory, so yes you can save, it just won't be saved when you restart

  9. #9
    Just Joined!
    Join Date
    Sep 2010
    Posts
    8
    ok, thanks. i'll try it later when i get home from work.

    Quote Originally Posted by coopstah13 View Post
    it is running in memory, so yes you can save, it just won't be saved when you restart

  10. #10
    Just Joined!
    Join Date
    Sep 2010
    Posts
    8
    OK. I'm getting the following menu:

    Select a media (use Arrow keys, then press Enter):
    Disk /dev/sda - 750 GB / 698 GiB - ATA ST3750528AS
    Disk /dev/sr0 - 719 MB / 686 MiB (RO) - Optiarc DVD RW AD-7231S5

    [Proceed] [Quit]

    I highlight the top one, and get:

    Hidden sectors are present.

    size 1465149168 sectors
    user_max 1465149168 sectors
    dco 1465149168 sectors
    Device Configuration Overlay (DCO) present.

    [Continue]

    [Intel ] Intel / PC partition
    [EFI GPT] EFI GPT partition map
    [Mac ] Apple partition map
    [None ] Non partitioned media
    [Sun ] Sun Solaris partition
    [XBox ] Xbox Partition
    [Return ] Return to disk selection

    I chose [Intel] and get:

    [Analyse]
    [Advanced]
    [Geometry]
    [Options]
    [MBR Code]
    [Delete]
    [Quit]

    If I choose [Delete] it asks to write 1's, so I back out with N.

    Which option should I choose to recover?



    Quote Originally Posted by devils casper View Post
    Press Alt+F2 and type this
    Code:
    gksu gedit /etc/apt/sources.list
    Above code will open sources.list file in Gedit with root privileges.

    Remove # sign before all the lines having universe and multiverse words. Save file and execute apt-get commands again.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...