[phpBB Debug] PHP Notice: in file /includes/db/dbal.php on line 110: Undefined array key "cached"
[phpBB Debug] PHP Notice: in file /includes/db/dbal.php on line 111: Undefined array key "normal"
[phpBB Debug] PHP Notice: in file /includes/db/dbal.php on line 112: Undefined array key "total"
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3391: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3393: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3394: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3395: Cannot modify header information - headers already sent by (output started at /includes/functions.php:2922)
Cabrillo College Linux Classes • View topic - Test bash on USB file system from lab 1

Test bash on USB file system from lab 1

UNIX/Linux Installation & Configuration

Test bash on USB file system from lab 1

Postby Wil Black on Thu Sep 18, 2008 10:12 am

In class on Tuesday Rich mentioned a command to test if bash was working on our USB file system. Does anyone remeber that cammand? I would like to test mine.
Wil Black
 
Posts: 11
Joined: Mon Sep 08, 2008 7:58 pm

Re: Test bash on USB file system from lab 1

Postby Rich Simms on Thu Sep 18, 2008 1:21 pm

Hi Wil,

You can test it by running your copy of bash and seeing if all the libraries it needs were copied over correctly. You don't want your copy of bash to use the original libraries in /lib. Instead you want it to use the libraries you copied over your lib directory.

To do this you need to change the top of the file tree to be your /mnt directory (when mounted to your pen drive). Use the chroot command for this and it will look like:

[code][root@duke ~]# ls /mnt/bin
bash sh
[root@duke ~]# ls -l /mnt/bin
total 732
-rwxr-xr-x 1 root root 735144 2008-09-18 00:09 bash
lrwxrwxrwx 1 root root 4 2008-09-18 00:10 sh -> bash
[root@duke ~]# chroot /mnt /bin/bash
bash-3.2# echo /bin/*
/bin/bash /bin/sh
bash-3.2# exit
exit
[root@duke ~]#
[/code]

- Rich
User avatar
Rich Simms
Site Admin
 
Posts: 640
Joined: Thu May 15, 2008 2:44 pm

Re: Test bash on USB file system from lab 1

Postby Wil Black on Thu Sep 18, 2008 2:02 pm

Thanks Rich. I'll try it tonight when i get home.
Wil Black
 
Posts: 11
Joined: Mon Sep 08, 2008 7:58 pm


Return to CIS 191A - Fall 2008

Who is online

Users browsing this forum: No registered users and 0 guests

cron