LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   *BSD (https://www.linuxquestions.org/questions/%2Absd-17/)
-   -   Dual Boot ( Win XP and freeBSD) (https://www.linuxquestions.org/questions/%2Absd-17/dual-boot-win-xp-and-freebsd-320814/)

nubier 05-06-2005 02:42 PM

Dual Boot ( Win XP and freeBSD)
 
hey all i'm new here ! i need your help ........

i have 60 GB harddisk with 4 partitions are C,D,E,F (Windows XP Pro with NTFS). and i've leaved 6 GB (unallocated) in my harddisk for freeBSD 5.3 after that, i created it with partition magic.

The instalation proccess was prompt me to create partition but i fear to take a speculation to create the partition(s) because i want the freeBSD 5.3 installing in 6 GB that was i created previously, so my harddisk partitions as follow :


C : NTFS (Windows XP) as Primary
Extended
D : NTFS
E : NTFS
F : NTFS
unallocated (6 GB)

and in the freeBSD installation proccess to created partition look like this :

Code:

Disk name : ad0
Disk Geometry : 7476 cyls/255 head/63 sectors = 120101940 sectors (58643 MB)

  Offset      Size(ST)          End          Name    Ptype      Desc              Flags

      0      63                62            -        12      Unused           
      63      16948512      16948574        ad0s1      4      NTFS/HPFS/QNY 
16948575      103153363      120101939        ad0s2      4      extended DOS, LBA
120101940      1260          120103199        -        12      Unused

so, which's the 6 GB that was i created previously ?

btw, sorry for my poor english :(

btmiller 05-06-2005 02:50 PM

AFAIK the BSDs can only be installed on a primary partition (not an extended partition) so you'll need to redo your partitioning scheme so that there's a primary partition to install FreeBSD on.

nubier 05-06-2005 02:54 PM

oh guys thanks very much for your quick reply but caouse i still newbie so can you give an example about that ( list of the partitions on my harddisk and still 6 GB for freeBSD 5.3)

nubier 05-06-2005 03:16 PM

oh sorry, can i create the freeBSD partitions, include the freeBSD filesystems in my windows xp, if can what the tool i must used ?

btmiller 05-06-2005 11:55 PM

You can't make FreeBSD filesystems in Windows because FreeBSD uses its own custom partitioning scheme. You can read more about it in the FreeBSD Handbook (on www.freebsd.org natch). But basically, what you want to do is use fdisk to create another primary partition and then let the FreeBSD installer do what it needs to do with this partition. You can also just create free space and then run fdisk from inside the FreeBSD install program (that's what I recall at least, it's been awhile since I've installed FreeBSD).

nubier 05-08-2005 08:29 AM

okay thanks guys. i've succesfully installing FreeBSD 5.3 dual boot with windows xp on my machine now. but after installation finished, i can't get the GUI desktop. i want use GDM and Gnome, so what must i do.

oh yeah, i installed all FeeBSD 5.3 Packages !

Atrocity 05-09-2005 01:13 PM

You need to create a text file in your home directory called .xinitrc
and in this file you just want it to say "gnome-session"
I belive that is what has to be in it, anyone can feel free to correct me if thats not the exact syntax or if I missed something


Did you install gnome in your bsd install? if you didnt you will need to type sysinstall into the prompt and then go to post install and find where you install Xwindows stuff and install gnome!

nubier 05-09-2005 01:55 PM

Quote:

Originally posted by Atrocity
You need to create a text file in your home directory called .xinitrc
and in this file you just want it to say "gnome-session"
I belive that is what has to be in it, anyone can feel free to correct me if thats not the exact syntax or if I missed something


Did you install gnome in your bsd install? if you didnt you will need to type sysinstall into the prompt and then go to post install and find where you install Xwindows stuff and install gnome!

okay thanks. i've choose all packages when installing FreeBSD 5.3
so must i install it again with sysinstall ?

Atrocity 05-09-2005 02:18 PM

well if you installed all packages you should have Gnome already installed then

so what you have to do is put that file in your home directory


try this at your comand prompt


type "ee"
when that opens up type in "exec gnome-session"
I think you then hit ctrl and L to exit if not read the top i think it says the comands its ctrl and something
then save it as ".xinitrc" (note there is a dot before the name)


If you dont already have it installed then you have to go into sysinstall then post install(but if you installed everything then you should have it I belive) you will find out when it lets you into gnome or denies you!!

nubier 05-09-2005 05:36 PM

this's tye steps was i did to run gnome in my FreeBSD 5.3

#Xorg -configure
#cp xorg.conf.new /usr/X11/xorg.conf
#whereis .xinitrc

and the result is .xinitrc not found in my machine, so i created .xinitrc with vi editor, after that

#echo "exec gnome-session" > ~/.xinitrc
#startx

and i the gnome can run but i found error about /etc/host and i don't know how to resolve it !

and i've read a comment in a site about starting graphical automatically when we start computer. the comment like this
Quote:

to start X-windows automatically u might need to edit the /etc/ttys file. see if it contains a line like:

ttyv8 "/usr/X11R6/bin/xdm -nodaemon" xterm off secure

if its off as in above, replace off with on then u can edit the .xsession file in ur home directory to start the window manager u want
then i replace off with on but the .xsession file does not exist in my home directory, include in the root directory i've searched it with whereis command in the console. so what must i do to get .xsession file, how to create it ? please tell me, include the command to activated it ? and can you give an example of your .xsession file ?

and i want use gdm as the login manager, cause i dislike xdm but the gdm is not found in my FreeBSD machine, i've searched it with whereis command, i don't know why, so ?

nubier 05-10-2005 03:37 AM

okay i've succesfully make gnome started after starttx command but with this error :
Code:

Could not look up internet address for home.This will prevent GNOME from operating correctly.
It may be possible to correct the problem by adding home to the file /etc/hosts

and this's my /etc/hosts

Code:

#
::1              localhost my.domain
127.0.0.1        localhost my.domain

#
#Imaginary network
#10.0.0.2 myname.home      myname
#10.0.0.2 myfriend.home    myfriend

i've replace my.domain with home but still receive the same error :(

my another problem

i want gnome start automaticall every time machine boot ups, so i've edited the /etc/ttys line :

Code:

ttyv8 "/usr/X11R6/bin/xdm -nodaemon" xterm off secure
to
Code:

ttyv8 "/usr/X11R6/bin/xdm -nodaemon" xterm on secure
after that, i've edited .xsession file in the /root directory looks like :
Code:

xsetroot -solid black &
xset m 4 &
fvwm2

the i restarted my machine .............

then xdm succesfully displayed, so i enter root in box name and enter "root password" in password box, then i press enter, BUT the xdm login prompt appear again, i can't entering my gnome desktop, so i try again to enter the root and the passwd in the box but i got the same problem

so, i want edit the /etc/ttys (xdm) again to the default setting (off), but i don't know how to do it, cause i can't entering to console or gnome desktop, so what must i do ?

and what is the right value/setting in .xsession and /etc/ttys file, so that
the gnome can be run automatically when every time my machine boot ups ?

oh yeah, i dislike xdm, so i wanna use gdm but i gdm does not exist in my FreeBSD 5.3 machine, i know it after find it with whereis command, though i've chosen all FreeBSD 5.3 packages in the installation proccess. i've searched gdm in /usr/local/bin but not found, also ini /usr/X11R6/share/gnome and not found too, also in /usr/X11R6/bin/gdm and still not found. so i try to install it :
Code:

#cd /usr/ports/x11/gdm2
#make install

but i've received some error messages like this :
Code:

>> attempting to fetch ftp://ftp.freebsd.org/pub/FreeBSD/po...atest/gdm.tbz:
fetch : ftp://ftp.freebsd.org/pub/FreeBSD/po...Latest/gdm.tbz' : no address record
>> couldn't fetch it - please try to retrive this

bla..bla...bla....

oh yeah, so, my questions are :
  • how to resolve the /etc/hosts problem ?
  • what's the right .xsession setting ? and how to activation it after edited it and please give me an example of your .xsession working file !!
  • how to re-edit the /etc/ttys file to default setting after login failed really likes in my case ? (from on to off)
  • where is my gdm, though i've chosen all packages in installation proccess ?
  • why i got error messages when installing gdm like above ?
  • please Stop laughing

and sorry for my poor english

Atrocity 05-10-2005 09:48 AM

The etc hosts problem might be that

#
::1 localhost my.domain
127.0.0.1 localhost my.domain


needs to have the part that says my.domain on those 2 lines changed to whatever it says at your comand prompt, sounds like yours says "home" ???? if so change that to

#
::1 localhost home
127.0.0.1 localhost home

That might be the problem, but I am not sure...

reddazz 05-10-2005 02:08 PM

The freebsd handbook has most of the answers to your questions. if you want to start gdm, take a look at this article.

nubier 05-11-2005 06:12 AM

all my problems above has been resolved but now i want to start GDM and in FreeBSD Handbook there's NO explanation about that. i confused because in my machine there's NO gdm file, i've searched it with whereis command. and i've tried to install gdm :

#cd /usr/ports/x11/gdm2
#make install clean

but i receive error like this :
Code:

>> attempting to fetch from http://www.t.ring.gr.jp/archives/X/g...urces/gdm/2.6.
fetch : http://www.t.ring.gr.jp/pub/X/gnome/....6.0.4.tar.bz2 : No address record
>> couldn't fetch it - please try to retrive this
>> port manually into /usr/ports/distfiles/gnome2  and try again

*** Error code 1
stop in /usr/ports/x11/gdm2

so, can you give me a guidance to make gdm exist in my machine ?

thanks


All times are GMT -5. The time now is 03:37 PM.