LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 08-17-2006, 06:28 AM   #31
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895

Typically USB external drives are preformated as FAT32. When you installed Fedora did you select auto partitioning?
The full command is:
/usr/bin/chroot < your / directory >
 
Old 08-18-2006, 09:18 PM   #32
gntx21
LQ Newbie
 
Registered: Aug 2006
Posts: 24

Original Poster
Rep: Reputation: 15
no i didn't select auto partition but i did partition it with magic. so now i try to chroot its still not working all that well. check it out.

the command:
/usr/sbin/chroot </dev/sda1> but thats not working. what should i do now?
 
Old 08-18-2006, 09:20 PM   #33
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
/usr/sbin/chroot /dev/sda1

My fault... Do not include the <>
 
Old 09-05-2006, 12:44 PM   #34
gntx21
LQ Newbie
 
Registered: Aug 2006
Posts: 24

Original Poster
Rep: Reputation: 15
its still not working mike. I wanna give up but I really want to get to learn how to use linux, as much help as possible would be appreciated. lol

Last edited by gntx21; 09-05-2006 at 12:55 PM.
 
Old 09-05-2006, 09:58 PM   #35
BittaBrotha
Member
 
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Rep: Reputation: 31
Did you mount the location first?
(mount /dev/sda /mnt/newroot), I'm not quite sure if this correct but should be done similar to this.

Then try chroot like this.

chroot /mnt/newroot /bin/bash

Thnx.
 
Old 09-09-2006, 08:14 PM   #36
gntx21
LQ Newbie
 
Registered: Aug 2006
Posts: 24

Original Poster
Rep: Reputation: 15
ok mike i got the chroot command to work now, what do i do next? i don't know what my initrdname is.

and is this one command?

mkinitrd --preload=ehci-hcd --preload=usb-storage --preload=scsi_mod --preload=sd_mod /boot/[initrdname]-usb.img [kernel-no., as per the kernel you're loading, e.g. 2.6.12-...FC4]

whats my kernel number for fedora 5?

Last edited by gntx21; 09-09-2006 at 08:18 PM.
 
Old 09-09-2006, 09:42 PM   #37
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
The uname command will output the kernel you are running. i.e. uname -r

The image name is not important because you will update the grub.conf that will reference the new one.
 
Old 09-10-2006, 01:11 AM   #38
gntx21
LQ Newbie
 
Registered: Aug 2006
Posts: 24

Original Poster
Rep: Reputation: 15
ok mike, i have everything working except for the edit /boot/grub/grub.conf command. i keep getting this error.

sh: edit: command not found

how do execute this command?
 
Old 09-10-2006, 03:07 AM   #39
gntx21
LQ Newbie
 
Registered: Aug 2006
Posts: 24

Original Poster
Rep: Reputation: 15
at the beginniing of the link you gave me, the guy says:

Install FC4 using the 'linux expert' command line boot option, the USB drive appears as /dev/sda, so partition and install to that drive. When asked, make sure that grub is installed to the boot sector of the USB drive. This is very important.

how do i do this? I never even see a prompt asking me about grub.
 
Old 09-10-2006, 10:51 AM   #40
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Edit is not a command. You can use any text editor to modify the grub.conf file but you must be root.
You can install grub in rescue mode( after issuing the chroot command) via the command:
grub-install /dev/sda
 
Old 09-10-2006, 02:31 PM   #41
gntx21
LQ Newbie
 
Registered: Aug 2006
Posts: 24

Original Poster
Rep: Reputation: 15
when i grub-install /dev/sda i get:

The file /boot/grub/stage1 now read correctly.

what could be the problem?
 
Old 09-20-2006, 08:35 PM   #42
gntx21
LQ Newbie
 
Registered: Aug 2006
Posts: 24

Original Poster
Rep: Reputation: 15
thanks mike!
 
Old 09-20-2006, 09:00 PM   #43
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Quote:
Originally Posted by gntx21
thanks mike!
Is it working?
 
Old 09-20-2006, 11:59 PM   #44
gntx21
LQ Newbie
 
Registered: Aug 2006
Posts: 24

Original Poster
Rep: Reputation: 15
no but we've tried
 
Old 09-21-2006, 06:47 AM   #45
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
try:
grub-install --root-directory=/mnt/where_ever --no-floppy /dev/sda
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Linux on External hard drive connected by USB port omidiora Linux - Newbie 1 04-29-2006 09:51 AM
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
Installing SuSE 9.3 from a USB Hard Drive voxel SUSE / openSUSE 2 08-19-2005 07:09 PM
Installing on a usb hard drive? freddurgan Linux - Hardware 2 01-22-2004 10:18 AM
Installing USB hard drive shaydwyrm Linux - Hardware 0 07-24-2003 12:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 11:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration