You are not logged in.

#1 2009-01-31 21:11:53

knob
Member
Registered: 2009-01-30
Posts: 48

Mountpoints and Grub

I have a 250gb hdd and let's say i would like to partition it something like : sda1 25gb, sda2 20gb, sda3 5gb, sda4 200gb.
Now, i would like to use sda1 for windows, sda2 for arch, sda3 for swap and sda4 for data. Is it possible to have a mountpoint like /home/x/ to sda4 even though the user 'x' it's not created?
And about Grub, i would like to use an usb stick to store the bootloader in it and when im booting from usb the bootloader to appear otherwise if the stick it's not in the usb the system would boot the partition with the 'boot' flag. I tried to set /boot/ as a mountpoint for the usb stick and install Grub on it, but it doesn't work, is it possible to do this?

Offline

#2 2009-01-31 21:50:58

ahcaliskan
Member
From: Sweden
Registered: 2008-10-29
Posts: 174

Re: Mountpoints and Grub

absolutely! just mount it whereever you wish to through /etc/fstab. However, I don't think you do have to have a user specific mount point lik /home/xuser, since you can only create users not user partition. You can therefore create a directory at /home and mount it.

Yes it's possible, try experimenting with the arch installer usb image, it has grub by default. If you dd the usb stick, you can remove the files you don't want, or you can change the image and dd it then.

Last edited by ahcaliskan (2009-01-31 22:00:05)

Offline

#3 2009-01-31 22:11:06

knob
Member
Registered: 2009-01-30
Posts: 48

Re: Mountpoints and Grub

Ok tks for the fast reply.
One more thing ,if my hard would be sdb, having a /boot/ folder on sdb2 wouldn't it trigger the bootloader anyway? or it shouldn't if the mbr it's not written with grub? (correct me if im wrong or tell me if you don't understand what i'm asking)

Offline

#4 2009-01-31 22:16:39

ahcaliskan
Member
From: Sweden
Registered: 2008-10-29
Posts: 174

Re: Mountpoints and Grub

I believe you have a clear idea of how to partition your hdd, and as long as you use grub on MBR for the entire hdd(/dev/sdb), you can have your /boot partition in any partition you like. However, windows or need to be primary and installed at the first partition.

Last edited by ahcaliskan (2009-01-31 22:21:49)

Offline

#5 2009-01-31 22:36:46

knob
Member
Registered: 2009-01-30
Posts: 48

Re: Mountpoints and Grub

My bad, I think i didn't explained well.
I was trying to say that if I dd the arch image to the usb stick and I don't install the Grub on the hdd, I will be booting the OS i like only with the image written on the stick (even though there is a /boot/ folder on one of my partitions containing  Grub) , right? Otherwise whenever i start the PC it will boot the OS flagged with 'boot' in cfdisk and Grub will not appear right?

Offline

#6 2009-01-31 22:48:52

ahcaliskan
Member
From: Sweden
Registered: 2008-10-29
Posts: 174

Re: Mountpoints and Grub

well, making a partition bootable or not isn't that much a big deal when using grub, perhaps it's important for other OS with a bootloader installed at MBR, but with linux I think it doesn't matter. As long as grub refers to the boot partition with your usb stick, you'll be able to boot that partition you like. I believe that you need to have the specific partition's vmlinuz26 and kernel26.img on the usb stick. Example:

title  Arch Linux (hdd)
root   (hd1,1)
kernel /boot/vmlinuz26 root=/dev/sdb2 ro
initrd /boot/kernel26.img

It's kind of RAID boot system, you have to have a BIOS settings that detects your usb and hdd.

Last edited by ahcaliskan (2009-01-31 23:01:08)

Offline

#7 2009-01-31 23:01:48

knob
Member
Registered: 2009-01-30
Posts: 48

Re: Mountpoints and Grub

Ok, tks for everything . You cleared some things out.

Offline

Board footer

Powered by FluxBB