LinuxQuestions.org
Visit Jeremy's Blog.
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-09-2006, 07:37 PM   #16
gntx21
LQ Newbie
 
Registered: Aug 2006
Posts: 24

Original Poster
Rep: Reputation: 15

when i checked to see what was in the mnt directory i didn't see sysimage. all that was in the mnt directory was runtime and source. when i chroot /mnt/sysimage i get an error message:

chroot cannot change root directory to /mnt/sysimage: no such file or directory

whats up with that?

Last edited by gntx21; 08-09-2006 at 07:52 PM.
 
Old 08-09-2006, 07:50 PM   #17
michaelk
Moderator
 
Registered: Aug 2002
Posts: 17,076

Rep: Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181
Are any partitions mounted?
 
Old 08-09-2006, 10:31 PM   #18
gntx21
LQ Newbie
 
Registered: Aug 2006
Posts: 24

Original Poster
Rep: Reputation: 15
no not any partitions. a full 300 g usb hd
 
Old 08-10-2006, 08:18 AM   #19
michaelk
Moderator
 
Registered: Aug 2002
Posts: 17,076

Rep: Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181
Your going to have to manually mount the USB drive then use the chroot command.
 
Old 08-10-2006, 06:28 PM   #20
gntx21
LQ Newbie
 
Registered: Aug 2006
Posts: 24

Original Poster
Rep: Reputation: 15
I booted off the first installation cd in rescue mode and when i manually mount the usb drive like this:
mount /dev/sda1 /mnt

after that i enter the command you told me to enter:
chroot /mnt/sysimage

and this is the error message:
sh: chroot: command not found

what does that mean? and what do i have to do to make this work?

Last edited by gntx21; 08-10-2006 at 06:30 PM.
 
Old 08-10-2006, 06:52 PM   #21
michaelk
Moderator
 
Registered: Aug 2002
Posts: 17,076

Rep: Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181
Chroot should be located in /usr/sbin/ directory. Might have to include the full path.
Make sure the chroot directory and the actual mounted directory match.
 
Old 08-10-2006, 07:19 PM   #22
gntx21
LQ Newbie
 
Registered: Aug 2006
Posts: 24

Original Poster
Rep: Reputation: 15
what command should i use to do that? i've been trying to change directories using cd but i can't. i can't tell which directory i'm in, i can't even use the ls command. somehow i think i found out i'm in / or i mean thats the only directory there is.

Last edited by gntx21; 08-10-2006 at 07:23 PM.
 
Old 08-10-2006, 08:47 PM   #23
michaelk
Moderator
 
Registered: Aug 2002
Posts: 17,076

Rep: Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181
Maybe best to start over fresh and reboot back to rescue mode.
First create the directory sysimage directory
mkdir /mnt/sysimage
then mount your / partition
then try using the chroot command
chroot /mnt/sysimage
 
Old 08-11-2006, 01:10 PM   #24
gntx21
LQ Newbie
 
Registered: Aug 2006
Posts: 24

Original Poster
Rep: Reputation: 15
is this the right command to manually mount?
mount /dev/sda1 /mnt

and after i make the sysimage directory and use the above mount command, i can no longer see the where i am? is that suppose to happen?

Last edited by gntx21; 08-11-2006 at 01:39 PM.
 
Old 08-11-2006, 02:50 PM   #25
michaelk
Moderator
 
Registered: Aug 2002
Posts: 17,076

Rep: Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181
mount -t fstype /dev/sdx /mnt/sysimage (where sdx is the / partition and fstype is the file system type of your / partition?
No. but if you did not specify the correct directory with the chroot command then it possibly.
The chroot command changes / to be the partition on the hard drive.
 
Old 08-12-2006, 12:10 AM   #26
gntx21
LQ Newbie
 
Registered: Aug 2006
Posts: 24

Original Poster
Rep: Reputation: 15
now for the fstype i have to know if the hard drive is fat16, fat32 or ntfs right?
i think i read that it has fat32.
 
Old 08-12-2006, 08:22 AM   #27
michaelk
Moderator
 
Registered: Aug 2002
Posts: 17,076

Rep: Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181
A USB drive is typically formated FAT32 from the store. When you installed FC5 you should of created a several linux partitions and would of typically been ext3.
 
Old 08-16-2006, 07:49 PM   #28
gntx21
LQ Newbie
 
Registered: Aug 2006
Posts: 24

Original Poster
Rep: Reputation: 15
am i suppose to mount the chroot command? i'm just not getting it! for the fstype since its fat32 what is the correct option that i should perform for mounting?

Last edited by gntx21; 08-16-2006 at 10:11 PM.
 
Old 08-16-2006, 11:21 PM   #29
gummybearx
Member
 
Registered: Jul 2006
Location: missouri, usa
Distribution: openSuSE 10.2, debian etch
Posts: 43

Rep: Reputation: 15
if you are trying to mount fat32, use vfat as fstype

but why you didnt format as ext3, i dont know
 
Old 08-16-2006, 11:32 PM   #30
gntx21
LQ Newbie
 
Registered: Aug 2006
Posts: 24

Original Poster
Rep: Reputation: 15
what is the full command for chroot? i did the chroot /mnt/sysimage and it didn't work, and mike said

"Chroot should be located in /usr/sbin/ directory. Might have to include the full path.
Make sure the chroot directory and the actual mounted directory match."

so what would the full command be?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 06:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration