by T J Tulley on Thu Oct 18, 2007 9:44 am
Thanks yet again, Boo.
I thought of using 644 in chmod - here is the terminal log after starting this session (i.e. a copy of the terminal screen):
theo@TJT4Celena:~$ ls -a
. .gtk-bookmarks Pictures
.. .gtkrc-1.2-gnome2 .profile
.bash_history .gtkrc.mine Projects
Desktop .ICEauthority .recently-used
.dmrc .lesshst .recently-used.xbel
Documents .linuxmint .smb
Downloads .macromedia .sudo_as_admin_successful
.esd_auth .metacity Templates
.gconf .mozilla .thumbnails
.gconfd .mozilla-thunderbird .tomboy
.gksu.lock Music .tomboy.log
.gnome .nautilus Videos
.gnome2 nautilus-debug-log.txt .wapi
.gnome2_private Network .xsession-errors
.gstreamer-0.10 .openoffice.org2
theo@TJT4Celena:~$ sudo chmod 644 /.dmrc
Password:
chmod: cannot access `/.dmrc': No such file or directory
theo@TJT4Celena:~$ sudo chmod 644 /home/.dmrc
chmod: cannot access `/home/.dmrc': No such file or directory
theo@TJT4Celena:~$ locate /.dmrc
/home/home/theo/.dmrc
theo@TJT4Celena:~$ sudo chmod 644 /home/home/theo/.dmrc
theo@TJT4Celena:~$
What puzzles me is that /.dmrc was not found when it was in the ls -a of the opening prompt. locate didn't find it there either.
Here are the 2 results you requested:
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda5
UUID=fd440b73-47a9-40b4-a381-392eba4b0f47 / ext3 defaults,errors=remount-ro 0 1
# /dev/sda1
# /dev/sdb1
UUID=77f4c4f4-5fc1-4145-b303-7e2b1c4986c6 /media/sdb1 ext3 defaults 0 2
# /dev/sdb2
# /dev/sdb3
# /dev/sdc1
# /dev/sdc3
UUID=77f4c4f4-5fc1-4145-b303-7e2b1c4986c6 /media/sdc3 ext3 defaults 0 2
# /dev/sda6
UUID=93448e5e-0816-4132-bf73-9173680d2d30 /storage ext3 defaults 0 2
# /dev/sda7
UUID=2eabed6e-7176-4e50-8c82-47432f62e0d9 /home ext3 defaults 0 2
# /dev/sda8
UUID=dde25846-c904-479d-8fc4-2a5b12afe49b none swap sw 0 0
# /dev/sdb5
UUID=d0922872-1e6b-4193-9415-2274f8e4a247 none swap sw 0 0
/dev/scd1 /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/scd0 /media/cdrom1 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
theo@TJT4Celena:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda5 3.9G 2.2G 1.6G 59% /
varrun 502M 112K 502M 1% /var/run
varlock 502M 0 502M 0% /var/lock
procbususb 502M 560K 501M 1% /proc/bus/usb
udev 502M 560K 501M 1% /dev
devshm 502M 0 502M 0% /dev/shm
lrm 502M 33M 469M 7% /lib/modules/2.6.20-15-generic/volatile
/dev/sdb1 40G 22G 17G 57% /media/sdb1
/dev/sdb1 40G 22G 17G 57% /media/sdc3
/dev/sda6 14G 181M 13G 2% /storage
/dev/sda7 17G 2.1G 14G 14% /home
fusesmb 3.9G 2.2G 1.6G 59% /home/theo/Network
/dev/sda1 41G 21G 20G 53% /media/sda1
/dev/sdb2 41G 20G 21G 48% /media/sdb2
/dev/sdb3 41G 22G 19G 55% /media/sdb3
theo@TJT4Celena:~$
The / - File Browser screen for /home looks like this:
home
> home
>> theo
> lost+found
> theo
The first /theo in /home/home came from Cassandra; I have copied what I want from it and it should be removed. I want therefor to delete the "inner" /home and its contents, but the terminal log reads:
theo@TJT4Celena:~$ sudo rm /home/home
Password:
rm: cannot remove `/home/home': Is a directory
theo@TJT4Celena:~$
Finally, /boot/grub/menu.lst is an 8.7 kB plain text document - I am printing it for ease of editing - 6 pages!
I would normally send such an item as an attachment. However - here it is: (with my comments in red):
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
default 0
gfxmenu=/etc/grub/message.mint
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10
# Pretty colours
color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/sda5 ro
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,4)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery mode) single
# altoptions=(recovery mode) single
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## ## End Default Options ##
title Linux Mint, kernel 2.6.20-15-generic Was Bianca, now Celena
root (hd0,4)
kernel /boot/vmlinuz-2.6.20-15-generic root=/dev/sda5 ro quiet splash
initrd /boot/initrd.img-2.6.20-15-generic
boot
title Linux Mint, kernel 2.6.20-15-generic (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.20-15-generic root=/dev/sda5 ro single
initrd /boot/initrd.img-2.6.20-15-generic
boot
title Linux Mint, kernel memtest86+
root (hd0,4)
kernel /boot/memtest86+.bin
boot
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Microsoft Windows XP Professional Boots but fails to complete start process
root (hd0,0)
savedefault
makeactive
chainloader +1
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdb1.
title Linux Mint, kernel 2.6.20-16-generic (on /dev/sdb1) Cassandra
root (hd1,0)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=77f4c4f4-5fc1-4145-b303-7e2b1c4986c6 ro quiet splash
initrd /boot/initrd.img-2.6.20-16-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdb1.
title Linux Mint, kernel 2.6.20-16-generic (recovery mode) (on /dev/sdb1)
root (hd1,0)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=77f4c4f4-5fc1-4145-b303-7e2b1c4986c6 ro single
initrd /boot/initrd.img-2.6.20-16-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdb1.
title Linux Mint, kernel 2.6.20-15-generic (on /dev/sdb1)
root (hd1,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=77f4c4f4-5fc1-4145-b303-7e2b1c4986c6 ro quiet splash
initrd /boot/initrd.img-2.6.20-15-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdb1.
title Linux Mint, kernel 2.6.20-15-generic (recovery mode) (on /dev/sdb1)
root (hd1,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=77f4c4f4-5fc1-4145-b303-7e2b1c4986c6 ro single
initrd /boot/initrd.img-2.6.20-15-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdb1.
title Linux Mint, memtest86+ (on /dev/sdb1)
root (hd1,0)
kernel /boot/memtest86+.bin
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdb1.
title Linux Mint, memtest86+ (on /dev/sdb2) (on /dev/sdb1)
root (hd1,0)
kernel /boot/memtest86+.bin
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdb1.
title Ubuntu 7.04 (7.04) (on /dev/sdd6) (on /dev/sdb1)
root (hd1,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=/dev/sdd6
initrd /boot/initrd.img-2.6.20-15-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdb1.
title Ubuntu 7.04 (7.04) (on /dev/sdd8) (on /dev/sdb1)
root (hd1,0)
kernel /boot/vmlinuz-2.6.20-15-generic root=/dev/sdd8
initrd /boot/initrd.img-2.6.20-15-generic
savedefault
boot
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdb2
title Microsoft Windows XP Professional Earliest remaining image - fails to boot
root (hd1,1)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdb3
title Microsoft Windows XP Professional Latest image - fails to boot
root (hd1,2)
savedefault
makeactive
map (hd0) (hd1) I don't understand this
map (hd1) (hd0)
chainloader +1
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdc3. This should be sdd3
title Linux Mint, kernel 2.6.20-16-generic (on /dev/sdc3) Copy of sdb1 with errors - unreadable
root (hd2,2) The real hd2 must have been unrecognised when this was compiled. It contains no systems, only data backups.
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=77f4c4f4-5fc1-4145-b303-7e2b1c4986c6 ro quiet splash
initrd /boot/initrd.img-2.6.20-16-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdc3.
title Linux Mint, kernel 2.6.20-16-generic (recovery mode) (on /dev/sdc3)
root (hd2,2)
kernel /boot/vmlinuz-2.6.20-16-generic root=UUID=77f4c4f4-5fc1-4145-b303-7e2b1c4986c6 ro single
initrd /boot/initrd.img-2.6.20-16-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdc3.
title Linux Mint, kernel 2.6.20-15-generic (on /dev/sdc3)
root (hd2,2)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=77f4c4f4-5fc1-4145-b303-7e2b1c4986c6 ro quiet splash
initrd /boot/initrd.img-2.6.20-15-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdc3.
title Linux Mint, kernel 2.6.20-15-generic (recovery mode) (on /dev/sdc3)
root (hd2,2)
kernel /boot/vmlinuz-2.6.20-15-generic root=UUID=77f4c4f4-5fc1-4145-b303-7e2b1c4986c6 ro single
initrd /boot/initrd.img-2.6.20-15-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdc3.
title Linux Mint, memtest86+ (on /dev/sdc3)
root (hd2,2)
kernel /boot/memtest86+.bin
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdc3.
title Linux Mint, memtest86+ (on /dev/sdb2) (on /dev/sdc3)
root (hd2,2)
kernel /boot/memtest86+.bin
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdc3.
title Ubuntu 7.04 (7.04) (on /dev/sdd6) (on /dev/sdc3)
root (hd2,2)
kernel /boot/vmlinuz-2.6.20-15-generic root=/dev/sdd6
initrd /boot/initrd.img-2.6.20-15-generic
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdc3.
title Ubuntu 7.04 (7.04) (on /dev/sdd8) (on /dev/sdc3)
root (hd2,2)
kernel /boot/vmlinuz-2.6.20-15-generic root=/dev/sdd8
initrd /boot/initrd.img-2.6.20-15-generic
savedefault
boot
Yours hopefully -
Theo Tulley.
Using a PC with 2GB RAM, 3 hdds and a 1.7 GHz Celeron cpu.