Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/boot partion (solved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
megaflow
n00b
n00b


Joined: 11 Mar 2005
Posts: 60
Location: Maasmechelen

PostPosted: Sun Dec 04, 2011 2:06 pm    Post subject: /boot partion (solved) Reply with quote

can a set the boot partion on a usbstick ?
My system is a dell xps7 , and already have 3 partions. dell boot - dell backup and windows
I dont want to install a bootmanager on the prime harddisk
so i wonder if a can partion on this way
/dev/sda - is the harddisk
/dev/sdb the usbstick

/boot --> on /dev/sdb1
/var --> on /dev/sdb2 ( not sure if 4g is enoff for compling )
/usr and home on sda

i need to build the usb drivers in the kernel , using lilo for boot
anyting els i need to preform
_________________
----------------------------
Dell System XPS L702X/0XN71K,Intel(R) Core(TM) i7-2720QM


Last edited by megaflow on Sun Dec 04, 2011 9:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
purak
Apprentice
Apprentice


Joined: 21 Jun 2008
Posts: 160
Location: /dev/urandom

PostPosted: Sun Dec 04, 2011 2:16 pm    Post subject: Reply with quote

Yes, you must embed USB drivers to kernel. If not, you must build a consistent initramfs to load USB drivers on the fly. You should install boot manager such as syslinux or grub on the USB key. linuxrc script that located into initramfs will find your system and boot it. The configuration file(grub.cfg/menu.lst or syslinux's conf file) should like this:

Code:
... root=/dev/sda1 ...


You read man pages of genkernel or dracut.
_________________
:)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Dec 04, 2011 4:09 pm    Post subject: Reply with quote

megaflow,

You are not restricted to four partitions.
True, you can only have four primary partitions. However, one of the primary partitins can be an Extended partition. Inside the extended partition you can create at least 11 logical partitions. You can install Gentoo in logical partitions if you like.

Boot on USB works. Put everything else on the HDD. Building Gentoo on a USB stick will kill the FLASH memory, which only has a limited number of writes.
4G is enough for most packages. LibreOffice currently needs 9G if you want to build it yourself.

Do not use a journalled filesystem on USB. Its slow and on such a small filesystem, its not needed.
ext2 is fine, ext4 with the journal off is fine.

Depending on your BIOS, your USB stick may become /dev/sda when you boot from it, even if its not when you install.
_________________
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
megaflow
n00b
n00b


Joined: 11 Mar 2005
Posts: 60
Location: Maasmechelen

PostPosted: Sun Dec 04, 2011 9:43 pm    Post subject: Reply with quote

Hi

ty for the answer
got the base system install. No probs sofar :D

I use the usb disk for boot and swap
Quote:
Building Gentoo on a USB stick will kill the FLASH memory, which only has a limited number of writes

good thing that i dit not set /var on the usbdisk 8O
boot and swap will be fine - i tink (8g ram will prob never use swap)

Oo and the usbdisk still named sdb - even booting with this

I do this 1 so i kill not mbr - solong i still have warranty from dell
i now i can backup mbr - but still
_________________
----------------------------
Dell System XPS L702X/0XN71K,Intel(R) Core(TM) i7-2720QM
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
Page 1 of 1

 
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