View previous topic :: View next topic |
Author |
Message |
NiwatiX n00b
Joined: 09 Dec 2007 Posts: 21
|
Posted: Sat May 24, 2008 6:08 pm Post subject: External HardDrive... |
|
|
Alright , I used the live-cd of Kubuntu 64 ( because I have a QX6700 CPU ) , I used Gparted to mod my External HardDrive ( its new stuff , and I will use the whole Drive for Gentoo because I have my normal hard drive with windows + Kubuntu ... ) ...
I copied my kernel in the Grub folder ( my Kubuntu kernel are there too ) then I open my menu.lst with nano or kate depend of my feeling ( lol ... )
this is my menu.lst :
Code: |
title Gentoo Linux
root (hd0,2)
kernel /boot/kernel-2.6.25-gentoo-r4 root=/dev/sda3
quiet
|
( I have some other line for Kubuntu and windows but this is not very important.. )
So because I copied the kernel ( the 2.7 mb thing ) in the grub's folder ( where my Kubuntu kernel are.. ) I used almost the same line from Kubuntu in the grub menu.lst ( I used the root (hd0,2) ) ...
My external Hard Drive is connected by Usb2 ... my main Hard Drive is sdb and my external hard drive is sda ( sda1 is 32 mo I only have the kernel thing in it ( the 2.7 mg thing ) , sda2 is the Linux-Swap .... and sda3 is the 468gb ext3 ( where my gentoo folder are... ) ...
Why ... god ... when I boot my computer ( I see kubuntu , windows and Gentoo ) , I press on gentoo ... it load during like 45 secs ... then I have a problem with the "root = " ...
I need some help on this ... thanks ... |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54810 Location: 56N 3W
|
Posted: Sat May 24, 2008 6:26 pm Post subject: |
|
|
NiwatiX,
Because your root is on a USB hard drive you need usb-storage support built into your kernel (not a module) and your need the kernel paramater
Normally, root is mounted before USB is started. Thats a very bad thing if your root is on a USB drive.
The above parameter allows 15 seconds for USB to start before the kernel tries to use it to mount root.
Values between 7 and 30 are reported to work.
Code: | kernel /boot/kernel-2.6.25-gentoo-r4 rootdelay=15 root=/dev/sda3 | is a good place to start _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
NiwatiX n00b
Joined: 09 Dec 2007 Posts: 21
|
Posted: Sat May 24, 2008 6:31 pm Post subject: |
|
|
NeddySeagoon wrote: | NiwatiX,
Because your root is on a USB hard drive you need usb-storage support built into your kernel (not a module) and your need the kernel paramater
Normally, root is mounted before USB is started. Thats a very bad thing if your root is on a USB drive.
The above parameter allows 15 seconds for USB to start before the kernel tries to use it to mount root.
Values between 7 and 30 are reported to work.
Code: | kernel /boot/kernel-2.6.25-gentoo-r4 rootdelay=15 root=/dev/sda3 | is a good place to start |
Geez ... thanks a lot I will try this
AND , thanks god I though maybe to have a probleme with the usb hard drive , so when I made my kernel I added the usb storage |
|
Back to top |
|
|
NiwatiX n00b
Joined: 09 Dec 2007 Posts: 21
|
Posted: Sat May 24, 2008 7:16 pm Post subject: |
|
|
Alright , thanks for the tip ... its work fine at the moment.
But I have another problem ...
Gentoo Load almost perfectly , you know the loading file are in green color and everything is almost good ...
But when he try to load : filesystem ... there is (!!!) in red ... and he can't load filesystem , he ask me to write my password for a maintenance ... or to press CTRL + D to continue , when I write my pass Im in chroot ( I dont know why my name is (none) its stupid because I wrote my name in the config file like in the handbook say to do it lol ... ) and I tryed to write basic command like : " shutdown" ... gentoo explain me how to use the command "shutdown" ... then I wrote : "shutdown -r now " .... he say : " no such file or directory" ... so Its pretty strange , maybe its because of the filesystem missing ... I reboot my computer with the reboot button on my case ... and I tryed to not write my password and press ctrl+D to continue ... gentoo load 2 other file succesfully , but my computer restart by himself ...
this is pretty strange ... first time I see this problem ... do you know what I can do to fix this ?
EDIT ... I think I found the problem ... I think I wrote dev/ROOT for my root in my fstab ... but I have to write dev/sda3/root right?
EDIT2: This is the error message : Checking ROOT filesystem , ext3 fs_check_if_mount No such file or directory while determining wheter /dev/root is mounted....
so probably my fstab is fcked up .... |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54810 Location: 56N 3W
|
Posted: Sat May 24, 2008 8:03 pm Post subject: |
|
|
NiwatiX,
That error on boot means that the root filesystem mounted, it uses the root=/dev/sda3 in grub.conf. So far so good.
During the course of booting, the system reads your /etc/fstab to discover the filesystem used on sda3 so it can check it.
You have an error in the file. Some examples are:-
It still says /dev/ROOT, where it should have the real device name, like /dev/sda3
You have the wrong filesystem listed, so the boot scripts are trying to run e2fsck on your riesefs root.
Lastly, the two numbers at the end of each line should be zero.
Proceed as follows.
Boot to the error message and give your root password.
You are logged in almost normally but root is read only. Do Code: | mount -o remount,rw / | to get read write access.
Now edit /etc/fstab thats and fix it.
Look for the problems I pointed out above.
======= edit ========
It will still have /devSWAP and /dev/BOOT too. Fix them. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
NiwatiX n00b
Joined: 09 Dec 2007 Posts: 21
|
Posted: Sat May 24, 2008 9:14 pm Post subject: |
|
|
Fixed.
Gentoo Work well .. I have LOT of problem with the circular dependencies... but now my gentoo works fine!
Thanks a lot for your help guys ! |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54810 Location: 56N 3W
|
Posted: Sat May 24, 2008 9:24 pm Post subject: |
|
|
NiwatiX,
Turn off USE="doc" and maybe USE="X" to sort out the initial circular dependancies issues.
After your emerge, turn them on and do to rebuild the affected packages. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
NiwatiX n00b
Joined: 09 Dec 2007 Posts: 21
|
Posted: Sat May 24, 2008 10:55 pm Post subject: |
|
|
This is my Make.conf
Code: |
#----------------------optimisation
ARCH="nonocona"
COREFLAGS="-pipe"
CFLAGS="-O2 -march=${ARCH} ${CPUFLAGS} ${COREFLAGS}"
CXXFLAGS="${CFLAGS}"
CHOST="x86_64-pc-linux-gnu"
CPUFLAGS="-msse3 -msse2 -msse -mmmx -mno-3dnow"
#---------------------Periferal and language
Linguas="fr fr_CA"
Input_Devices="keyboard mouse evdev"
Video_Cards="nvidia"
#---------------------Level of stability
ACCEPT_KEYWORDS="~amd64"
#---------------------Support
MAKEOPTS="-j5"
#---------------------Niceness and features
HARDWARE_USE="dvd cd-r aiglx opengl alsa g15 usb optimisememory jack dvdread unicode hashstyle fr ipod logitech-mouse"
AUDIO_USE="mp3 nls aaa a52 ogg flac theora oggvorbis mp3 aac"
VIDEO_USE="ffmpeg mpeg mplayer win32codecs divx wmp quicktime
real wmf avi xvid dvdnav mp2 realmedia encode
m4a stream"
IMAGE_USE="svga svg jpeg png gif"
DEV_USE="css c cpp html cg doc double-precision examples freeimage threads server
blender-game povray"
COMP_USE="rar bzip2 7Zip szip 7z fat hfs ntfs"
INTERNET_USE="firefox icq java mozilla flash ftp samba mysql httpd irc mdnsresponder-compat
mdnsresponder"
LIBS_USE="X qt4 qt3 gtk wxwindows pam pam-console spell dbus dcop freetype bidi gnutls
truetype aalib avahi arts -gstreamer sdl -esd oss kde -gnome"
USE="${HARDWARE_USE} ${AUDIO_USE} ${VIDEO_USE} ${IMAGE_USE} ${DEV_USE}
${COMP_USE} ${INTERNET_USE} ${LIBS_USE}"
#--------------------Other options
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
#GENTOO_MIRRORS=""
CLEAN_DELAY="3"
|
And I tryed to : emerge fluxbox
but actually my eth0 isnt connected to internet ... and I dont know why , this is a modem cable.... no rooter ... with my other gentoo I use the SAME modem and it connect to internet without any setup... but this time I dont know why it dont work ... |
|
Back to top |
|
|
|