paritioning mac harddrive during arch install


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers paritioning mac harddrive during arch install
# 1  
Old 12-23-2010
paritioning mac harddrive during arch install

hi

so i am a noob to linux but not computers in general and have decided i want to give linux a go. because i like to make things hard for myself and because someone told me i wouldnt be able to figure it out iv decided to try arch

so iinstalled it last night and it installed fine and i got it working up ntil the point were i would have installed gnome or kde. i stooped shy of htis because i was not able to install it without partitioning my entire drive and erasing my osx install so i knew i would have to go back and start again anyway.

so osx is back installed and updated and everything back to how it was. now i want to install arch so it dosnt erase my osx install and i can choose on startup which os to use(refit is installed already)

so here are the steps to do this according to the arch wiki, the steps assume that you have already put a fresh install of osx one the machine(i have) and that you have partitioned your hardrive (i have 32gb for linux)


so the next step is described here

Quote:
Boot the Arch install CD and run parted
# parted
Delete the empty space partition and partition the space as you would for any other installation.
Note that MBR is limited to 4 primary partitions (including the efi partition).

That leaves 2 primary partitions for arch. One strategy is to have a system and home partition, and use a swap file (I haven't tried to use logical partitions).

Another is to dedicate one partition to a shared partition (see below).

At this point, if you are dual booting, you should reboot your computer and have rEFIt fix the partition tables on your hard drive. (If you don't do this, you may have to reinstall GRUB later on in order to have your Mac recognize the Linux partition.) When you are into the rEFIt menu, select update partition table, then press Y
now i dont know how to use parted, i tried, it seems fairly straightforward but i really dont know what im doing so my first question is how do i create the necessary partitions using parted without affecting the partition that osx is on?

once that is done the next step is to begin the installation and everything is fine until i get to the prepare harddrives section. in the original installation i did i used the first automatic option which worked fine but it deletes the entire drive

so according to the wiki to prevent this i need to use the ]set filesystems and mount points step but i dont understand what i have to do here or how to do it and the wiki isnt very straightforward

Quote:
Manually configure block devices, filesystems and mountpoints
In this menu all recognized partitions are listed. On top of these you can create new filesystems. You should be aware of three things:
All of this is just a model, everything will only be set up after you confirm.
Not all blockdevices support all filesystems (Eg you cannot put an LVM volumegroup on something other then a LVM physical volume). The installer will automatically filter the list of possible filesystems and even select the one automatically for you if there's only one option.
Some filesystems will cause new blockdevices to be created. This is the case for dm_crypt and lvm volumes. You will see them appear in the model and you can use them to put another filesystem on top of it.
When asked for (optional) options to mkfs tools, pass arguments which will literally be added when calling mkfs. For example, to disable the journal on ext filesystems:
don't do: ^has_journal
but rather: -O ^has_journal
When filesystems setup is complete, you can select 'Done'. At this point a check will be run which will tell you any critical errors (such as no root filesystem) and/or give you some warnings which you may ignore (like no swap). If anything is found, you can go back to fix these issues, or continue at which point everything will be setup the way you asked.
For example, if you want a setup that uses LVM on top of dm_crypt, you would:
make sure that you have a 2 partitions: a small one for the unencrypted boot (about 100M) and one for the rest of the (encrypted) system. (do this in "Manually partition hard drives")
on your /dev/sdX1, make an ext2 filesystem with mountpoint /boot
on your /dev/sdX2, make a dm_crypt volume, with label sdX2crypt (or whatever you want)
/dev/mapper/sdX2crypt will appear. Put a LVM physical volume on this
/dev/mapper/sdX2crypt+ appears. This is the representation of the physical volume. Put a volumegroup on this, with label cryptpool (or whatever you want)
/dev/mapper/cryptpool appears. On this volumegroup you are able to put multiple logical volumes. Make 2:
one with size 5G: label this cryptroot
one with size 10G: label this crypthome
2 new volumes appear:
/dev/mapper/cryptpool-cryptroot: on this blockdevice, you can put your root filesystem, with mountpoint /.
/dev/mapper/cryptpool-crypthome is the blockdevice on which you can put the filesystem with mountpoint /home.
If you want swapspace, make a logical volume for swap and put a swap volume on it.
That's it! If you select 'done' it should process the model and create your disk setup the way you specified. The cool part is that you can pick relatively small values for your volumes to start with, and if you need more space later you can grow the logical volume and the filesystem on top of it.
if someone is able to explain those two steps to me i would be eternally gratefull, stuff with commands and terminal i can ussually figure out but when it comes to the workings of the hard drive at that level i just dont have the knowledge to figure it out for myself

thanks, i know arch isnt for beginners but i want to give it a shot and learn as much as i can

mark
 
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Fedora

Disk Paritioning Scheme--GPT or MBR

Hi, I just built myself a new machine which has an ASUS motherboard with is UEFI based. I noticed after I installed Fedora 17 that my sda is MBR and my sdb is GPT: sda is a ssd drive. Should the ssd drive be GPT or is MBR okay? sda is 60Gb drive. (3 Replies)
Discussion started by: mojoman
3 Replies

2. Solaris

Sun Blade 150 will not boot off harddrive after install of solaris 10

Hello, I cant get my blade box to boot off the harddrive after installing solaris 10.I can get to a root prompt after issuing "boot cdrom -s".I tried booting off disk0 and disk1,but I get "the file just loaded does not seem to be executable".Thanks for any help.:wall: (4 Replies)
Discussion started by: chucky
4 Replies

3. OS X (Apple)

You cannot install Mac OS X on this volume.

I lost the firmware password for my MacBook Pro 13" I pulled one of the two DIMMs and did a PRAM reset but the password is intact. How do I reset the password. (1 Reply)
Discussion started by: JustOne
1 Replies

4. OS X (Apple)

install windows on mac

Hello all, i want to install windows on mac and when i search i found that there is a program called Parallels Desktop to install windows on mac but i want it on the laptop not on the program does it work? or there is another anyway to install it on mac..?? Thanks in advanced (8 Replies)
Discussion started by: Reham$
8 Replies

5. UNIX for Dummies Questions & Answers

How to copy MBR from old harddrive to new harddrive?

How do I copy the master boot record from one harddrive to another or how to install just the MBR? (7 Replies)
Discussion started by: shorty
7 Replies

6. UNIX for Dummies Questions & Answers

Looking to install Unix on my Mac

I know how to install Unix or Linux on my Mac using bootcamp, I installed the Ubuntu distribution of Linux on my Mac. Basically I'm looking for advice on what OS I should learn with. I am fiercely interested in programming, and am learning C++ and Python at the moment. Anyways, everyone has... (5 Replies)
Discussion started by: Micolejr2
5 Replies

7. UNIX for Dummies Questions & Answers

The what and how to install UNIX on a new mac

Firstly, Happy New Year to all. Secondly, my earnest request... I am an absolute novice in UNIX. Have work around alittle with the mac os Terminal which encourage me to get myself a used G3 powerbook. I would like to work full fledge installing a unix shell onto it (without GUI). Could... (4 Replies)
Discussion started by: pharme
4 Replies
Login or Register to Ask a Question