Host name, read only


Forum: HD Install
Topic: Host name, read only
started by: Audioice

Posted by Audioice on Feb. 23 2007,14:30
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

Posted by curaga on Feb. 23 2007,15:20
they are writable by root, try sudo vi
Posted by roberts on Feb. 23 2007,16:14
For frugal install using the host=myhostname is easy
Edit appropriate append section of lilo, grub, linld, loadlin, etc.

Posted by Audioice on Feb. 24 2007,17:26
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

Posted by curaga on Feb. 25 2007,11:08
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...

Posted by Audioice on Feb. 26 2007,02:25
I have added the nofstab option to grub/menu.lst, on the line that starts with kernel /boot/linux24 root =/dev/hda2 quiet vga=normal...
I made the changes in fstab for /dev/hdb1  and deleted changes in bootlocal.

Now every time I reboot, I have to go through DSL X Setup, and from emelFM, the changes I made in fstab are wiped out every time. ???

Audioice

After much surfing, reading and thinkering, I got it! I used chmod 777 hdb1 to get permission to write to the HD. Mounting in in bootlocal was the right thing to do. Thanks all for your help. I will probably drift in the networking section next.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.