LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-19-2005, 04:40 AM   #1
rossbob
LQ Newbie
 
Registered: Apr 2005
Location: Adelaide, Australia
Posts: 6

Rep: Reputation: 0
chroot from CD to HD


anyone know what steps I need to take to change root from CD to HD when booting from CD ?

I am using mandrake 10.1 on CD. I have worked out how to do it for Fedora Core 3 but slightly different structure for mandrake.

the HD is a USB drive so am trying to mount /dev/sda1 (boot) /dev/sda3 (root)

Thanks
 
Old 04-19-2005, 05:44 AM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Ok.. if /dev/sda1 is boot and /dev/sda3 is root do this:

mkdir /mnt/system
mount /dev/sda3 /mnt/system
mkdir /mnt/system/boot (only if it doesn't already exist)
mount /dev/sda1 /mnt/system/boot
mkdir /mnt/system/proc (only if it doesn't already exist)
mount -t proc none /mnt/system/proc
chroot /mnt/system /bin/bash
source /etc/profile

That should get you in....
 
  


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
chroot help Smokey Slackware 15 02-24-2013 11:32 PM
sudo /usr/bin/chroot /home/chroot /bin/su - xxx| /bin/su: user xxx does not exist saavik Linux - General 3 07-04-2007 10:30 AM
chRoot SpaceCadet Linux - Networking 3 08-14-2003 05:29 AM
Chroot chamkila Linux - General 1 06-13-2003 05:46 AM
Better than chroot? radnix Linux - Security 5 12-20-2002 06:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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