Free Hosting Online for WorkStations

< Previous | Contents | Next >

Here is a sample you can modify to suit:


# /etc/fstab: static file system information.

#

# file system mount point type options dump pass

/dev/XXX / ext3 defaults 0 1

/dev/XXX /boot ext3 ro,nosuid,nodev 0 2

/dev/XXX none swap sw 0 0

proc /proc proc defaults 0 0

sys /sys sysfs defaults 0 0

/dev/fd0 /media/floppy auto noauto,rw,sync,user,exec 0 0


/dev/cdrom

/media/cdrom

iso9660

noauto,ro,user,exec

0

0

/dev/XXX

/tmp

ext3

rw,nosuid,nodev

0

2

/dev/XXX

/var

ext3

rw,nosuid,nodev

0

2

/dev/XXX

/usr

ext3

rw,nodev

0

2

/dev/XXX

/home

ext3

rw,nosuid,nodev

0

2

Use mount -a to mount all the file systems you have specified in your /etc/fstab, or, to mount file systems individually, use:


# mount /path # e.g.: mount /usr


Current Ubuntu systems have mountpoints for removable media under /media, but keep compatibil- ity symlinks in /. Create these as as needed, for example:


# cd /media

# mkdir cdrom0

# ln -s cdrom0 cdrom

# cd /

# ln -s media/cdrom


You can mount the proc and sysfs file systems multiple times and to arbitrary locations, though /proc and /sys respectively are customary. If you didn’t use mount -a, be sure to mount proc and sysfs before continuing:


# mount -t proc proc /proc

# mount -t sysfs sysfs /sys


The command ls /proc should now show a non-empty directory. Should this fail, you may be able to mount proc from outside the chroot:


# mount -t proc proc /mnt/ubuntu/proc


D.4.4.5. Setting Timezone

Top OS Cloud Computing at OnWorks: