Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Host name, read only, network hd install< Next Oldest | Next Newest >
Audioice Offline





Group: Members
Posts: 9
Joined: Jan. 2007
Posted: Feb. 23 2007,14:30 QUOTE

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
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Feb. 23 2007,15:20 QUOTE

they are writable by root, try sudo vi

--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Feb. 23 2007,16:14 QUOTE

For frugal install using the host=myhostname is easy
Edit appropriate append section of lilo, grub, linld, loadlin, etc.
Back to top
Profile PM WEB 
Audioice Offline





Group: Members
Posts: 9
Joined: Jan. 2007
Posted: Feb. 24 2007,17:26 QUOTE

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
Back to top
Profile PM 
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Feb. 25 2007,11:08 QUOTE

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...


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
5 replies since Feb. 23 2007,14:30 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Host name, read only

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code