Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Simple Question] possible to install without .. [SOLVED]
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Xarik
n00b
n00b


Joined: 01 Jun 2007
Posts: 31

PostPosted: Mon Jul 16, 2012 9:31 pm    Post subject: Reply with quote

fdisk -l show

Code:
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1          25      200781   fd  Linux raid autodetect
/dev/sdb2              26       60735   487653075   fd  Linux raid autodetect
/dev/sdb3           60736       60800      522112+  82  Linux swap / Solaris

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          25      200781   fd  Linux raid autodetect
/dev/sda2              26       60735   487653075   fd  Linux raid autodetect
/dev/sda3           60736       60800      522112+  82  Linux swap / Solaris



So if i understood as well, the commandes are: (?)

Code:
mdadm –manage /dev/md0  –fail /dev/sdb1
mdadm –manage /dev/md1  –fail /dev/sdb2

mdadm -–manage /dev/md0 –-remove /dev/sdb1
mdadm -–manage /dev/md1 –-remove /dev/sdb2


(Is that the remove is necessary in this case ?)

Code:
swapoff /dev/sdb3


After that i delete all partition on /dev/sdb with fdisk

editing /etc/fstab and turn swap back with:

Code:
swapon -a


Is this right ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Mon Jul 16, 2012 10:18 pm    Post subject: Reply with quote

Xarik,

Thats exactly right
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Xarik
n00b
n00b


Joined: 01 Jun 2007
Posts: 31

PostPosted: Mon Jul 16, 2012 10:47 pm    Post subject: Reply with quote

Ok

When i've installed Gentoo on my /dev/sdb partition and configured grub, I'm not sure if I'll have to install it on sda or sdb, i think it's sda but i'm not sure
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Tue Jul 17, 2012 6:43 pm    Post subject: Reply with quote

Xarik

Look at Debians grub.conf or whatever its called on Debian.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Xarik
n00b
n00b


Joined: 01 Jun 2007
Posts: 31

PostPosted: Tue Jul 17, 2012 8:43 pm    Post subject: Reply with quote

cat /boot/grub/grub.cfg:

Code:

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

set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64' --class debian --class gnu-linux --class gnu --class os {
        insmod raid
        insmod mdraid
        insmod part_msdos
        insmod part_msdos
        insmod ext2
        set root='(md0)'
        search --no-floppy --fs-uuid --set 73c79577-8e52-4eaa-93c4-b2553a430adb
        echo    'Loading Linux 2.6.32-5-amd64 ...'
        linux   /vmlinuz-2.6.32-5-amd64 root=UUID=2afa4834-578d-4d79-abda-9c0b5b23a0bd ro  quiet
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.32-5-amd64
}

menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
        insmod raid
        insmod mdraid
        insmod part_msdos
        insmod part_msdos
        insmod ext2
        set root='(md0)'
        search --no-floppy --fs-uuid --set 73c79577-8e52-4eaa-93c4-b2553a430adb
        echo    'Loading Linux 2.6.32-5-amd64 ...'
        linux   /vmlinuz-2.6.32-5-amd64 root=UUID=2afa4834-578d-4d79-abda-9c0b5b23a0bd ro single
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-2.6.32-5-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/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 ###



If I refer to my /proc/mdstat:

Code:
Personalities : [raid1]
md1 : active raid1 sda2[0] sdb2[1]
      487652992 blocks [2/2] [UU]

md0 : active raid1 sda1[0] sdb1[1]
      200704 blocks [2/2] [UU]

unused devices: <none>



I must install grub on /dev/sda ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43178
Location: 56N 3W

PostPosted: Tue Jul 17, 2012 8:48 pm    Post subject: Reply with quote

Xarik,

I cannot tell - thats a config file for Grub2.

I was expecting to see entries like root(hdx,y) pointing to the partition that holds to boot files.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Xarik
n00b
n00b


Joined: 01 Jun 2007
Posts: 31

PostPosted: Thu Jul 19, 2012 7:29 pm    Post subject: Reply with quote

I've successfully replaced the Debian by Gentoo :D

Thansk you NeddySeagoon, Naib and Hypnos
Back to top
View user's profile Send private message
Hypnos
Advocate
Advocate


Joined: 18 Jul 2002
Posts: 2889
Location: Omnipresent

PostPosted: Thu Jul 19, 2012 11:58 pm    Post subject: Reply with quote

Nice! Did you wipe Debian, or are you going to keep it around just in case?

Anyway, please add "[SOLVED]" to the thread title by editing the first post.
_________________
Personal overlay | Simple backup scheme
Back to top
View user's profile Send private message
Xarik
n00b
n00b


Joined: 01 Jun 2007
Posts: 31

PostPosted: Fri Jul 20, 2012 4:13 am    Post subject: Reply with quote

Hypnos wrote:
Nice! Did you wipe Debian, or are you going to keep it around just in case?


I removed Debian I don't want it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum