HD Install :: Host name, read only
I've got a Frugal install of DSL on some old piece of hardware.
I tried to change hostname in DAMN SMALL LINUX HD INSTALL (from box to something else)
The instructions I found stated to open ( as root ) the file /etc/init.d/knoppix-autoconfig, open the /etc/hosts and also open the /etc/hostname.
These are read only and vi will not let me edit them. How do I change this?
Is there an easier way to accomplish the host name change?
What about cheat code host=xxxx in Grub's menu.lst?
Audioice
they are writable by root, try sudo vi
For frugal install using the host=myhostname is easy
Edit appropriate append section of lilo, grub, linld, loadlin, etc.
I tried: sudo vi knoppix-autoconfig
I made the change from box to 'myhostname'
When I try to write, I get: E45: readonly option is set (use ! to override)
I try w! I get: E166: cant open linked file for writing. What to do?
Another problem I have: I have a second hard disk. It is hdb1. DSL is on hda2, hda1 is swap. I changed my /opt/bootlocal.sh with:
Sudo mount /dev/hdb1 /mnt/hdb1.
The drive is now mounted according to Mount Tool, and I see it in emelfm. However, after clicking to /hdb1, if I hit the MkDir button, enter a name, I get: Permission denied in the bottom message box. It is paid for, I obtained it legally and I bolted it myself in the box. I sure would like to put data on it. How do give myself permission?
I looked at '/etc/fstab' where I see
'/dev/hdb1 mnt/hdb1 ext2 noauto,users,exec 0 0.
I tried to change it to include umask=000 0 0 in an attempt to give myself permision, but KNOPPIX overwrote me.
Lost newbie,
Audioice
if you add a "nofstab" to boot options, knoppix won't overwrite you.
And if the fstab line is like "/dev/hdb1 /mnt/hdb1 ext2 users,exec,rw 0 0"
then you don't need the mount command in your bootlocal (it gets mounted automagically) and should be writable...
Next Page...
original here.