Start Of The Semester

I just wanted to document a little more on what is pointing to what on our builder file systems. I put the commands and output below so hopefully one (or I) can follow it in the future in case file permissions or links get messed up.

# cat /etc/fstab

/dev/sdb1               /                       ext3    defaults             1 1
devpts                  /dev/pts                devpts  gid=5,mode=620       0 0
tmpfs                   /dev/shm                tmpfs   defaults             0 0
proc                    /proc                   proc    defaults             0 0
sysfs                   /sys                    sysfs   defaults             0 0
/hkexport/fs0.ext3      /fs0                    ext3    defaults,noauto,loop 0 0
/hkexport/swap0.ext3	/swap0                  ext3    defaults,noauto,loop 0 0
hongkong:/mnt/koji      /mnt/koji               nfs     defaults,noauto      0 0

# mount

/dev/sdb1 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
australia:/var/export/cdot-guru-1-2 on /hkexport type nfs (rw,addr=192.168.1.196)
/dev/loop0 on /fs0 type ext3 (rw)
/dev/loop1 on /swap0 type ext3 (rw)
hongkong:/mnt/koji on /mnt/koji type nfs (rw,addr=192.168.1.254)

# ls -l /redirect

lrwxrwxrwx 1 root root 4 2010-11-05 13:34 /redirect -> /fs0

# for foldname in bin dev etc lib opt sys tmp usr var ; do find /${foldname} -type l -exec ls -l {} \; 2> /dev/null | grep -Ei ‘\-> /(fs0|redirect|hkexport|mnt/koji)’ ; done

lrwxrwxrwx 1 root root 23 2010-11-05 13:34 /var/lib/mock -> /redirect/mock/lib/mock
lrwxrwxrwx 1 root root 4 2010-11-05 13:34 /var/redirect -> /fs0
lrwxrwxrwx 1 root root 25 2010-11-05 13:34 /var/cache/mock -> /redirect/mock/cache/mock
Advertisements
Start Of The Semester

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s