LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing Linux Alongside Windows 8 (For now) Question (https://www.linuxquestions.org/questions/linux-newbie-8/installing-linux-alongside-windows-8-for-now-question-4175533236/)

sNiPiCk 02-06-2015 12:44 AM

Installing Linux Alongside Windows 8 (For now) Question
 
Good day everyone,

I'm currently a student and as far as I'm aware I still need windows for some program I need, but I am going over to Linux.
(Thus I'm running Windows 8 at this moment)

Today I was going to install Ubuntu 14.04.01 alongside Windows 8, everything went well till I hit the 4th step (Installation type page) of the installation:

A message like follows showed:
"This computer currently has Debian GNU/Linux (Kali Linux 1.0.7) on it. What would you like to do?"

There are then 3 options available:
1) Install Ubuntu alongside Debian GNU/Linux (Kali Linux 1.0.7)
2) Replace Debian GNU/Linux (Kali Linux 1.0.7) with Ubuntu
3 and 4 is greyed out.
5) Something else (You can create resize partitions yourself, or choose multiple partitions for Ubuntu.

I just want to make sure what option to choose, I cant afford to lose all my data and windows.

Problem: Showing Kali Linux as current OS and not Windows 8.

Possible reason for showing Kali Linux as current OS:
I have a live CD of Kali Linux and ran it a few times in the past, but according to my knowledge it shouldn't have changed anything.

Maybe the 1st option is still the right one even though the current OS isn't listed right? Or the 3rd option is like a manual setting I guess.

Thanks for the time reading and helping!

syg00 02-06-2015 02:00 AM

Certainly looks like you managed to install Kali at some time. We need better info. According to this page, you should be able to install bootinfoscript easily. So abort the install (no harm at that stage), and from a terminal in the Ubuntu liveCD, run the following commands - it will generate a RESULTS.txt file; post that for us.
Code:

sudo apt-get install boot-info-script
sudo boot_info_script


sNiPiCk 02-06-2015 02:34 AM

Thank you for the reply, I will do as requested ASAP which unfortunately will be in a few hours

sNiPiCk 02-06-2015 04:54 AM

From terminal in the Ubuntu liveCD I run the following command:

Code:

sudo apt-get install boot-info-script
But then got the following output:

Code:

Reading package list... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package boot-info-script

I also tried sudo get-apt update before the command which didn't help.

Then the second command as suspected didn't work:
Code:

sudo: boot_info_script: command not found

manu-tm 02-06-2015 05:47 AM

To avoid possible typos, copy and paste in a terminal:
Code:

sudo apt-get update && sudo apt-get install boot-info-script && sudo bootinfoscript

sNiPiCk 02-06-2015 05:58 AM

Result:
Quote:

ubuntu@ubuntu:~$ sudo apt-get update && sudo apt-get install boot-info-script && sudo bootinfoscript
Ign cdrom://Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2) trusty InRelease
Ign cdrom://Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2) trusty/main Translation-en_US
Ign cdrom://Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2) trusty/main Translation-en
Ign cdrom://Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2) trusty/restricted Translation-en_US
Ign cdrom://Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release amd64 (20140722.2) trusty/restricted Translation-en
Ign http://archive.ubuntu.com trusty InRelease
Ign http://security.ubuntu.com trusty-security InRelease
Ign http://archive.ubuntu.com trusty-updates InRelease
Hit http://security.ubuntu.com trusty-security Release.gpg
Hit http://archive.ubuntu.com trusty Release.gpg
Hit http://security.ubuntu.com trusty-security Release
Hit http://archive.ubuntu.com trusty-updates Release.gpg
Hit http://security.ubuntu.com trusty-security/main amd64 Packages
Hit http://archive.ubuntu.com trusty Release
Hit http://security.ubuntu.com trusty-security/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty-updates Release
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://archive.ubuntu.com trusty/main amd64 Packages
Hit http://security.ubuntu.com trusty-security/restricted Translation-en
Hit http://archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty/main Translation-en
Hit http://archive.ubuntu.com trusty/restricted Translation-en
Hit http://archive.ubuntu.com trusty-updates/main amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/restricted amd64 Packages
Hit http://archive.ubuntu.com trusty-updates/main Translation-en
Hit http://archive.ubuntu.com trusty-updates/restricted Translation-en
Ign http://archive.ubuntu.com trusty/main Translation-en_US
Ign http://archive.ubuntu.com trusty/restricted Translation-en_US
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package boot-info-script
ubuntu@ubuntu:~$

manu-tm 02-06-2015 06:11 AM

It's in the 'universe" repo, can you check it's enabled?
(You can use
Code:

software-properties-gtk
)

sNiPiCk 02-06-2015 06:41 AM

1 Attachment(s)
Thank you manu-tm!

The RESULTS.TXT file is attached I think, just in case here are the data:

Quote:

Boot Info Script 0.61 [1 April 2012]


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

=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector
1144607136 of the same hard drive for core.img. core.img is at this
location and looks for (,gpt6)/boot/grub on this drive.
=> Windows is installed in the MBR of /dev/sdb.

sda1: __________________________________________________________________________

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

sda2: __________________________________________________________________________

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

sda3: __________________________________________________________________________

File system: vfat
Boot sector type: Unknown
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /efi/Boot/bootx64.efi

sda4: __________________________________________________________________________

File system:
Boot sector type: -
Boot sector info:
Mounting failed: mount: unknown filesystem type ''

sda5: __________________________________________________________________________

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

sda6: __________________________________________________________________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Kali GNU/Linux 1.0.7
Boot files: /boot/grub/grub.cfg /etc/fstab
/boot/extlinux/extlinux.conf /boot/grub/core.img

sda7: __________________________________________________________________________

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

sdb1: __________________________________________________________________________

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

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

Drive: sda _____________________________________________________________________

Disk /dev/sda: 750.2 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sda1 1 1,465,149,167 1,465,149,167 ee GPT


GUID Partition Table detected.

Partition Start Sector End Sector # of Sectors System
/dev/sda1 2,048 821,247 819,200 Windows Recovery Environment (Windows)
/dev/sda2 821,248 1,435,647 614,400 Windows Recovery Environment (Windows)
/dev/sda3 1,435,648 1,640,447 204,800 EFI System partition
/dev/sda4 1,640,448 1,902,591 262,144 Microsoft Reserved Partition (Windows)
/dev/sda5 1,902,592 1,131,446,271 1,129,543,680 Data partition (Windows/Linux)
/dev/sda6 1,131,446,272 1,438,648,319 307,202,048 EFI System partition
/dev/sda7 1,438,648,320 1,465,147,391 26,499,072 Windows Recovery Environment (Windows)

Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 1000.2 GB, 1000170586112 bytes
255 heads, 63 sectors/track, 121597 cylinders, total 1953458176 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start Sector End Sector # of Sectors Id System

/dev/sdb1 2,048 1,953,458,175 1,953,456,128 7 NTFS / exFAT / HPFS


"blkid" output: ________________________________________________________________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 A8AA765FAA762A48 ntfs Recovery
/dev/sda2 AA1E51CD1E519365 ntfs Recovery
/dev/sda3 F653-E2CD vfat
/dev/sda5 56BC5BCEBC5BA771 ntfs Local Disk Windows
/dev/sda6 de0a619d-f336-479d-a092-e537084ae893 ext4
/dev/sda7 BE8C7CF78C7CAB91 ntfs Push Button Reset
/dev/sdb1 4E1AEA7B1AEA6007 ntfs Boeta - 0835540729
/dev/sr0 iso9660 Ubuntu 14.04.1 LTS amd64

================================ Mount points: =================================

Device Mount_Point Type Options

/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sdb1 /media/ubuntu/Boeta - 0835540729 fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
/dev/sr0 /cdrom iso9660 (ro,noatime)


=========================== sda6/boot/grub/grub.cfg: ===========================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}

insmod part_gpt
insmod ext2
set root='(hd0,gpt6)'
search --no-floppy --fs-uuid --set=root de0a619d-f336-479d-a092-e537084ae893
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
insmod part_gpt
insmod ext2
set root='(hd0,gpt6)'
search --no-floppy --fs-uuid --set=root de0a619d-f336-479d-a092-e537084ae893
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_gpt
insmod ext2
set root='(hd0,gpt6)'
search --no-floppy --fs-uuid --set=root de0a619d-f336-479d-a092-e537084ae893
insmod png
if background_image /usr/share/images/desktop-base/kali-grub.png; then
set color_normal=white/black
set color_highlight=black/white
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 3.14-kali1-amd64' --class debian --class gnu-linux --class gnu --class os {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt6)'
search --no-floppy --fs-uuid --set=root de0a619d-f336-479d-a092-e537084ae893
echo 'Loading Linux 3.14-kali1-amd64 ...'
linux /boot/vmlinuz-3.14-kali1-amd64 root=UUID=de0a619d-f336-479d-a092-e537084ae893 ro initrd=/install/gtk/initrd.gz quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.14-kali1-amd64
}
menuentry 'Debian GNU/Linux, with Linux 3.14-kali1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
load_video
insmod gzio
insmod part_gpt
insmod ext2
set root='(hd0,gpt6)'
search --no-floppy --fs-uuid --set=root de0a619d-f336-479d-a092-e537084ae893
echo 'Loading Linux 3.14-kali1-amd64 ...'
linux /boot/vmlinuz-3.14-kali1-amd64 root=UUID=de0a619d-f336-479d-a092-e537084ae893 ro single initrd=/install/gtk/initrd.gz
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.14-kali1-amd64
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt6)'
search --no-floppy --fs-uuid --set=root de0a619d-f336-479d-a092-e537084ae893
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt6)'
search --no-floppy --fs-uuid --set=root de0a619d-f336-479d-a092-e537084ae893
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
menuentry "Memory test (memtest86+, experimental multiboot)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt6)'
search --no-floppy --fs-uuid --set=root de0a619d-f336-479d-a092-e537084ae893
multiboot /boot/memtest86+_multiboot.bin
}
menuentry "Memory test (memtest86+, serial console 115200, experimental multiboot)" {
insmod part_gpt
insmod ext2
set root='(hd0,gpt6)'
search --no-floppy --fs-uuid --set=root de0a619d-f336-479d-a092-e537084ae893
multiboot /boot/memtest86+_multiboot.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
--------------------------------------------------------------------------------

=============================== sda6/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' 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>
# / was on /dev/sda6 during installation
UUID=de0a619d-f336-479d-a092-e537084ae893 / ext4 errors=remount-ro 0 1
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0
--------------------------------------------------------------------------------

====================== sda6/boot/extlinux/extlinux.conf: =======================

--------------------------------------------------------------------------------
## /boot/extlinux/extlinux.conf
##
## IMPORTANT WARNING
##
## The configuration of this file is generated automatically.
## Do not edit this file manually, use: extlinux-update


default l0
prompt 1
timeout 50

include themes/debian/theme.cfg
--------------------------------------------------------------------------------

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

GiB - GB File Fragment(s)


================= sda6: Location of files loaded by Syslinux: ==================

GiB - GB File Fragment(s)


============== sda6: Version of COM32(R) files used by Syslinux: ===============

boot/extlinux/chain.c32 : COM32R module (v4.xx)

======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on sda3

00000000 eb 58 90 4d 53 44 4f 53 35 2e 30 00 02 02 fe 19 |.X.MSDOS5.0.....|
00000010 02 00 00 00 00 f8 00 00 3f 00 ff 00 00 e8 15 00 |........?.......|
00000020 00 20 03 00 01 03 00 00 00 00 00 00 02 00 00 00 |. ..............|
00000030 01 00 06 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000040 80 01 29 cd e2 53 f6 4e 4f 20 4e 41 4d 45 20 20 |..)..S.NO NAME |
00000050 20 20 46 41 54 33 32 20 20 20 33 c9 8e d1 bc f4 | FAT32 3.....|
00000060 7b 8e c1 8e d9 bd 00 7c 88 56 40 88 4e 02 8a 56 |{......|.V@.N..V|
00000070 40 b4 41 bb aa 55 cd 13 72 10 81 fb 55 aa 75 0a |@.A..U..r...U.u.|
00000080 f6 c1 01 74 05 fe 46 02 eb 2d 8a 56 40 b4 08 cd |...t..F..-.V@...|
00000090 13 73 05 b9 ff ff 8a f1 66 0f b6 c6 40 66 0f b6 |.s......f...@f..|
000000a0 d1 80 e2 3f f7 e2 86 cd c0 ed 06 41 66 0f b7 c9 |...?.......Af...|
000000b0 66 f7 e1 66 89 46 f8 83 7e 16 00 75 39 83 7e 2a |f..f.F..~..u9.~*|
000000c0 00 77 33 66 8b 46 1c 66 83 c0 0c bb 00 80 b9 01 |.w3f.F.f........|
000000d0 00 e8 2c 00 e9 a8 03 a1 f8 7d 80 c4 7c 8b f0 ac |..,......}..|...|
000000e0 84 c0 74 17 3c ff 74 09 b4 0e bb 07 00 cd 10 eb |..t.<.t.........|
000000f0 ee a1 fa 7d eb e4 a1 7d 80 eb df 98 cd 16 cd 19 |...}...}........|
00000100 66 60 80 7e 02 00 0f 84 20 00 66 6a 00 66 50 06 |f`.~.... .fj.fP.|
00000110 53 66 68 10 00 01 00 b4 42 8a 56 40 8b f4 cd 13 |Sfh.....B.V@....|
00000120 66 58 66 58 66 58 66 58 eb 33 66 3b 46 f8 72 03 |fXfXfXfX.3f;F.r.|
00000130 f9 eb 2a 66 33 d2 66 0f b7 4e 18 66 f7 f1 fe c2 |..*f3.f..N.f....|
00000140 8a ca 66 8b d0 66 c1 ea 10 f7 76 1a 86 d6 8a 56 |..f..f....v....V|
00000150 40 8a e8 c0 e4 06 0a cc b8 01 02 cd 13 66 61 0f |@............fa.|
00000160 82 74 ff 81 c3 00 02 66 40 49 75 94 c3 42 4f 4f |.t.....f@Iu..BOO|
00000170 54 4d 47 52 20 20 20 20 00 00 00 00 00 00 00 00 |TMGR ........|
00000180 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001a0 00 00 00 00 00 00 00 00 00 00 00 00 0d 0a 44 69 |..............Di|
000001b0 73 6b 20 65 72 72 6f 72 ff 0d 0a 50 72 65 73 73 |sk error...Press|
000001c0 20 61 6e 79 20 6b 65 79 20 74 6f 20 72 65 73 74 | any key to rest|
000001d0 61 72 74 0d 0a 00 00 00 00 00 00 00 00 00 00 00 |art.............|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 ac 01 b9 01 00 00 55 aa |..............U.|
00000200


=============================== StdErr Messages: ===============================

xz: (stdin): Compressed data is corrupt
cat: /tmp/BootInfo-pbp0lY10/Tmp_Log: No such file or directory
cat: /tmp/BootInfo-pbp0lY10/Tmp_Log: No such file or directory
No volume groups found
Thanks for all the help so far!

manu-tm 02-06-2015 06:51 AM

If you use Kali Linux (installed on /dev/sda6) only from live CD, you could just replace it with Ubuntu (option #2). This way, you won't have to mess with windows partitions. But of course it's up to you.

sNiPiCk 02-06-2015 07:06 AM

If I may ask, I'm not sure about this different partitions. I only have one Hard Drive and only one is shown in "My Computer" - as I understand that is the sda5 partition. What is the reason for sda1, sda2, sda3 and sda4? I know now that Kali is installed on partition sda6 and windows on partition sda5, but can i delete partition sda1 to sda4? Or is this risky in any way?

manu-tm 02-06-2015 07:25 AM

Quote:

Originally Posted by sNiPiCk (Post 5312972)
... can i delete partition sda1 to sda4? Or is this risky in any way?

These are NTFS *windows* partitions so I wouldn't do that now. Or at least until you've made sure that you can delete them without breaking your windows installation.

So, I think it would be safer to install Ubuntu on /dev/sda6 first. After that, all your disk partitions will be visible from Ubuntu and you'll still be able to modify them as you want with GParted or something similar.

Edit:
In case of boot problems, one great resource is 'boot-repair-disk' iso, so it's worth burning it on a disk.

One trick to make sure you can delete a ntfs partition safely is to create some temporary dir on this partition and move all the other content inside it, then start windows and see if everything is OK. (In case of problems, the move is reversible.)

yancek 02-06-2015 03:04 PM

It looks like you are using UEFI/GPT since you have an EFI partition. Actually, you have 2 which is a little weird. Not sure what all you have on this system or why you would have three window recovery partitions. That' odd. The only option which will give you the control you need is the Something Else option. Are you able to boot windows now. The other operating systems?

sNiPiCk 02-07-2015 02:23 AM

At this stage I'm only able to boot windows, not any other operating systems. The result I would like to have is to be able to boot Ubuntu or Windows, till I'm comfortable enough to remove windows entirely and boot Linux alone.

manu-tm 02-07-2015 02:25 AM

Just for clarification, have you installed Ubuntu already?

sNiPiCk 02-07-2015 02:29 AM

I didn't install Ubuntu yet, was afraid of the possibility to replace windows already and lose all my data. I recall trying to install Linux Kali last year, but I didn't get a boot option so I thought it failed. But as I understand it now, Kali is insalled but I never used it. I think I only should replace all the partitions of Linux Kali with Linux Ubuntu for now?


All times are GMT -5. The time now is 08:12 AM.