I'm probably missing something in your post but what I usually do to chroot into a drive is:
as root:
mkdir /mnt/hdx
mount /dev/hdx /mnt/hdx # with whatever options
chroot /mnt/hdx
then navigate the filesystem.
HTH
Hi everyone!
I'm attempting to create my own distro for corporate use. I'm following the directions in last months Linux Format mag. I had some issues getting the required files copied over, but managed to circumvent that. I'm now at a point where I need to run the chroot command, to make changes to my distro - add/remove programs, etc...
I'm running the command, but it keeps telling me that there is no such file or directory.
The image drive is hdb1 (2nd hard drive), and I'm running in the root shell. Below is the command I'm attempting to run from the mnt directory:
chroot hdb1/mnt/drive/knoppix-tmp/source/KNOPPIX
I've also tried chroot /hdb1/mnt/drive/knoppix-tmp/source/KNOPPIX with no success.
I'm not sure why the system tells me that there is no such file or directory. Prior to running this command, I've mounted hdb1 with read/write access, and I am able to copy files over. The pc has Mandriva installed on hda1, but I'm actually running the chroot command from the cd.
Thanks alot for your suggestions!
I'm probably missing something in your post but what I usually do to chroot into a drive is:
as root:
mkdir /mnt/hdx
mount /dev/hdx /mnt/hdx # with whatever options
chroot /mnt/hdx
then navigate the filesystem.
HTH
Juniper Networks EX3300 EX3300-48P 48-Port Gigabit PoE+ Switch
$37.31
JUNIPER EX3400-48P 48x 1GB PoE+ RJ-45 4x 10GB SFP+ 2x 40GB QSFP+, DUAL AC POWER
$210.00
Juniper EX3300-48P 48-Port 10/100/1000BASE-T 48 PoE+ 4 SFP+ 750-034250
$50.00
Juniper Ethernet Switch EX2200-C - 12 Port Switch
$89.99
Juniper Networks EX3300-24P | 24 Port Gigabit Network Switch w/ Power cord
$53.99
Juniper EX3300-48T EX3300 Series 48-Port 10/100/1000BASE-T no power cord
$40.00
Juniper EX3300-48P 48-Port 10/100/1000BASE-T (48 PoE+ ports) with 4 SFP+
$74.00
Juniper Networks EX3300 EX3300-48P 48-Port Gigabit PoE+ Switch
$59.95
Juniper Networks SRX345 Service Gateway 8 Port Gigabit 8 SFP 1G
$229.00
Juniper EX4500 40-Port 10GB SFP Managed Ethernet Switch P/N: EX4500-40F-VC1-FB
$199.99