LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-08-2008, 01:08 AM   #1
browser
Member
 
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, Voyager, Bayanihan Linux
Posts: 265

Rep: Reputation: 30
Must Be Wrong chroot or CD command


Im having big trouble chrooting or to cd to a directory on another harddrive from a live cd.
I messed up somewhere on my Gentoo Based distro & want to see if I can fix it.
When I open Konqueror it comes up as " media:/sdc1/root " for example & when I try to " chroot media:/sdc1/root " or " cd media:/sdc1/root " I get this error

~# chroot media:/sdc1/root
chroot: cannot change root directory to media:/sdc1/root: No such file or directory

or

# chroot /media/dev/sdc1/home
chroot: cannot change root directory to /media/dev/sdc1/home: No such file or directory

or Even Just

chroot media:/sdc1
chroot: cannot change root directory to media:/sdc1: No such file or directory


Should it be different ,can anyone tell what it should be to get into another harddrive or distro.
Thanks

Last edited by browser; 02-08-2008 at 01:10 AM.
 
Old 02-08-2008, 01:15 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Have you mounted the partition(s) first? Here's a snippet from the Gentoo install

Code:
livecd ~ # mount /dev/sda3 /mnt/gentoo
livecd ~ # mkdir /mnt/gentoo/boot
livecd ~ # mount /dev/sda1 /mnt/gentoo/boot
livecd ~ # cd /mnt/gentoo
...
livecd usr # cd /
livecd / # mount -t proc proc /mnt/gentoo/proc
livecd / # cp -L /etc/resolv.conf /mnt/gentoo/etc/
livecd / # chroot /mnt/gentoo /bin/bash
livecd / # env-update && source /etc/profile
>>> Regenerating /etc/ld.so.cache...
 
Old 02-08-2008, 01:27 AM   #3
browser
Member
 
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, Voyager, Bayanihan Linux
Posts: 265

Original Poster
Rep: Reputation: 30
Yep, I was able to go to folders on that harddrive etc Through Konqueror but couldnt cd or chroot using those commands.
in other words when I opened up /sdc1 in konqueror it would say at top of page that its media:/sdc1.
Anyway I will work on your tips & examples , much appreciated.
 
Old 02-08-2008, 07:28 AM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 123Reputation: 123
media: Is the use of a special KDE "kio slave". This sort of URL is only understood by KDE-based applications (though gnome has a similar function.)

Generally, a "media:/device" URL translates to "/media/device".
 
Old 02-10-2008, 07:45 AM   #5
browser
Member
 
Registered: Aug 2004
Location: Australia,NSW
Distribution: CalculateLinux, FreeBSD, Makulu, Voyager, Bayanihan Linux
Posts: 265

Original Poster
Rep: Reputation: 30
Thanks 4 That, Makes it a bit clearer
 
  


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
bash: chroot: command not found satimis Linux From Scratch 9 03-15-2010 08:38 AM
What is so wrong with chroot as extra security?? helptonewbie Linux - Networking 8 12-13-2007 05:21 PM
mount command not working in chroot. and now chroot not working mohit.jain Linux From Scratch 5 07-14-2006 03:57 AM
Fedora bind-chroot permissions wrong rhoekstra Linux - Networking 1 08-07-2005 09:47 PM
wu-ftp help with chroot - ls command does not execute bock Linux - Software 2 09-18-2002 01:47 PM


All times are GMT -5. The time now is 03:16 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