You are not logged in.

#1 2010-05-25 01:46:23

splippity
Member
Registered: 2010-05-25
Posts: 144

[Solved] Installing on a hd that already has windows 7 and sabayon

currently it looks like this:

/dev/sda1 ntfs systerm reserved 100mb
/dev/sda2 ntfs                             40gb (windows 7 installed)
/dev/sda3 ext4     /            /         40gb (sabayon)
/dev/sda4 extended                     218.93gb
/dev/sda5 linuxswap                     2gb
/dev/sda6 ntfs                storage  216.93gb

I tired to install archlinux with just a / partition and tried to reuse my swap....... failed miserably
after that I recreated my ntfs partition and tinkered with arch in virtual box till I got a little comfortable working with it.
Now I want to delete my sda6 partition and repartition for arch.

would I need to make like:

 sda6: /boot  (bootable)
 then sda7 /root
and sda8 /home ????

Im not sure what I need to do...... because I should be able to use my grub I already have and just re autodetect........ should see arch after its installed I would think
in sabayon I would use:

grub-mkconfig -o /boot/grub/grub.cfg
grub2-install /dev/sda

would love to get it running on its own instead of having to use virtual box.
I tried to look around and didnt find much info on what I was looking for.

thanks.

Last edited by splippity (2010-05-28 01:39:03)

Offline

#2 2010-05-25 06:16:23

toffyrn
Member
Registered: 2008-10-07
Posts: 221

Re: [Solved] Installing on a hd that already has windows 7 and sabayon

Welcome to the forums smile

you can have as many partitions as you like mounted, but there is no need for more than one (root).
You would also need a swap partition. There should be no problem sharing swap space with sabayon, BUT you will meet problems if you try to hibernate to swap.

Have a look at http://wiki.archlinux.org/index.php/Beginners%27_Guide for how to install,
and skip the bootloader part if you like to use sabayon's.

Come back if you meet any problems smile

Last edited by toffyrn (2010-05-25 06:17:34)

Offline

#3 2010-05-25 06:24:39

splippity
Member
Registered: 2010-05-25
Posts: 144

Re: [Solved] Installing on a hd that already has windows 7 and sabayon

well I did have problems installing arch when I originally made partitions for it.......
though since tinkering with virtual box I think I have a better idea of what I should do so I will give it another go and post back here.
after re-reading....... I dont really need a var partition either....... should only need root and home and a swap.......
I dont understand making a partition bootable....... would I have to make root bootable as it will have /boot??? or will my grub just config for it since there will be a /boot folder with imgs in it?


thanks.

Last edited by splippity (2010-05-25 06:32:50)

Offline

#4 2010-05-25 07:09:20

toffyrn
Member
Registered: 2008-10-07
Posts: 221

Re: [Solved] Installing on a hd that already has windows 7 and sabayon

[1] Nothing more than root and swap needed. Ie. one of my configurations:

 $ cat /etc/fstab
# <file system>        <dir>         <type>    <options>          <dump> <pass>
devpts                 /dev/pts      devpts    defaults            0      0
shm                    /dev/shm      tmpfs     nodev,nosuid        0      0

/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
/dev/fd0               /media/fl   auto    user,noauto             0      0

UUID=1a95fd7b-ca3d-4c2a-8a39-5c70b564a3ed / ext4 defaults 0 1
UUID=b1987f70-28bc-403f-8451-b24b18e8d85c swap swap defaults 0 0

[2] I think you can only mark one partition on a harddrive as "bootable", this should be the one which contains grub.
Since grub is already installed there should be no need to alter bootable flags and such...

Last edited by toffyrn (2010-05-25 07:09:55)

Offline

#5 2010-05-26 16:43:35

splippity
Member
Registered: 2010-05-25
Posts: 144

Re: [Solved] Installing on a hd that already has windows 7 and sabayon

the problem Im running into is grub doesnt config for arch........ no option for rollback or regular.........
It just auto detects the label for the partition that I named "arch" so when I try to boot it gets no where and has a kernel panic.

any help would be appreciated...... really trying to get this bad boy up and running.

shouldnt have to reinstall grub as I already have it.

this is my fdisk

fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000570f0

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          13      102400    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2              13        5235    41940845    7  HPFS/NTFS
/dev/sda3            5236       10333    40949685   83  Linux
/dev/sda4           10334       38913   229568850    f  W95 Ext'd (LBA)
/dev/sda5           10334       10594     2096451   82  Linux swap / Solaris
/dev/sda6           10595       15748    41399473+  83  Linux
/dev/sda7           15749       38913   186072831    7  HPFS/NTFS

sda3 is sabayon
sda6 is arch


ps I would ask in the chat but for some reason I cannot speak......... I can speak in any other chan.
using xchat

Last edited by splippity (2010-05-26 16:56:27)

Offline

#6 2010-05-26 18:11:26

splippity
Member
Registered: 2010-05-25
Posts: 144

Re: [Solved] Installing on a hd that already has windows 7 and sabayon

more info heres what my current grub looks like:

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

### BEGIN /etc/grub.d/00_fonts ###
### END /etc/grub.d/00_fonts ###

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="${saved_entry}"
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
}
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 18225dbe-c9d5-48df-b53d-f263f4b78c5c
if loadfont /usr/share/grub/unicode.pf2 ; then
 set gfxmode=1024x768
  # vga= is deprecated, grub2 handles this just fine
  # making grub2 res == linux fb res
  set gfxpayload=keep
  insmod gfxterm
  insmod vbe
  if terminal_output gfxterm ; then true ; else
    # For backward compatibility with versions of terminal.mod that don't
    # understand terminal_output
    terminal gfxterm
  fi
fi
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 18225dbe-c9d5-48df-b53d-f263f4b78c5c
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if sleep --interruptible 0 ; then
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_distro_theme ###
insmod ext2
set root='(hd0,3)'
search --no-floppy --fs-uuid --set 18225dbe-c9d5-48df-b53d-f263f4b78c5c
insmod png
if background_image /usr/share/grub/default-splash.png ; then
  set color_normal=white/black
  set color_highlight=magenta/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_distro_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Sabayon GNU/Linux, with Linux x86-2.6.33-sabayon" --class sabayon --class gnu-linux --class gnu --class os {
        insmod ext2
        set root='(hd0,3)'
        search --no-floppy --fs-uuid --set 18225dbe-c9d5-48df-b53d-f263f4b78c5c
        echo    Loading Linux x86-2.6.33-sabayon ...
        linux   /boot/kernel-genkernel-x86-2.6.33-sabayon ro BOOT_IMAGE=/boot/kernel-genkernel-x86-2.6.33-sabayon ro BOOT_IMAGE=/boo$
        echo    Loading initial ramdisk ...
        initrd  /boot/initramfs-genkernel-x86-2.6.33-sabayon
}
menuentry "Sabayon GNU/Linux, with Linux x86-2.6.33-sabayon (recovery mode)" --class sabayon --class gnu-linux --class gnu --class o$
        insmod ext2
        set root='(hd0,3)'
        search --no-floppy --fs-uuid --set 18225dbe-c9d5-48df-b53d-f263f4b78c5c
        echo    Loading Linux x86-2.6.33-sabayon ...
        linux   /boot/kernel-genkernel-x86-2.6.33-sabayon ro single BOOT_IMAGE=/boot/kernel-genkernel-x86-2.6.33-sabayon ro BOOT_IMA$
        echo    Loading initial ramdisk ...
        initrd  /boot/initramfs-genkernel-x86-2.6.33-sabayon
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
        insmod ntfs
        set root='(hd0,1)'
        search --no-floppy --fs-uuid --set b256dd6956dd2ebb
        chainloader +1
}
menuentry "Arch (on /dev/sda6)" {
        insmod ext2
        set root='(hd0,6)'
        search --no-floppy --fs-uuid --set ccba04ad-f2d4-41f9-add6-2818579dfe55
        linux /boot/vmlinuz26 root=/dev/sda6
}
### 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 ###

what would I need to modify it to, to make it work?
thanks.

Offline

#7 2010-05-26 20:18:39

toffyrn
Member
Registered: 2008-10-07
Posts: 221

Re: [Solved] Installing on a hd that already has windows 7 and sabayon

Don't you need to tell grub where to find the initrd?

menuentry "Arch (on /dev/sda6)" {
        insmod ext2
        set root='(hd0,6)'
        search --no-floppy --fs-uuid --set ccba04ad-f2d4-41f9-add6-2818579dfe55
        linux /boot/vmlinuz26 root=/dev/sda6
        ###Perhaps add this line...
        initrd /boot/kernel26.img
}

have a look at http://wiki.archlinux.org/index.php/GRUB2
(i have no experience with grub2 though)

Last edited by toffyrn (2010-05-26 20:23:31)

Offline

#8 2010-05-26 22:14:55

splippity
Member
Registered: 2010-05-25
Posts: 144

Re: [Solved] Installing on a hd that already has windows 7 and sabayon

thanks for the reply.......... did the trick...... modified it again for the "fallback"

man that grub wiki is the worst ever ........ I had tried to read it already before asking.

 grub-mkconfig -o /boot/grub/grub.cfg

did what you saw nothing special like figuring out proper boot for arch


but thanks.

Offline

#9 2010-05-27 08:12:01

toffyrn
Member
Registered: 2008-10-07
Posts: 221

Re: [Solved] Installing on a hd that already has windows 7 and sabayon

So. is it working?

(feel free to make a wiki account and make the wiki better smile however grub2 is not yet considered stable)

Offline

#10 2010-05-27 18:34:07

splippity
Member
Registered: 2010-05-25
Posts: 144

Re: [Solved] Installing on a hd that already has windows 7 and sabayon

yeah its good to thanks.
Ive been trying to setup kde the way I like it.........
not going so well but making progress......

this device notifier is irratating me to no end........ in sabayon it just mounts and opens with dolphin in arch it gives me multiple options...... that I have no use for like import pics.
cannot disable it and cannot figure out the options menu

also getting apps like deluge and stuff to look right in kde isnt working out for me.

Offline

#11 2010-05-27 20:10:15

toffyrn
Member
Registered: 2008-10-07
Posts: 221

Re: [Solved] Installing on a hd that already has windows 7 and sabayon

ok... i am using gnome...

Perhaps you should try to mark this as solved, and start a new thread in the Desktop Environment section smile

Offline

Board footer

Powered by FluxBB