You are not logged in.
Dauphin:
Result of ls-v
arch
bin
dev
etc
lib
linuxrc
mnt
proc
root
sbin
src
tmp
usr
var
Then I did:
#cd /dev
# ls -v |less Result: list including discs
Then:
#cd /dev/discs
#ls -v |less
disc0
disc1
disc2
#q
#reboot
The drive seems to be listed in arch format rather than windows format.
Any suggestions
:?:
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
Hmm, I'm not familiar with the workings of the cd installer; I was just suggesting you investigate whether you can create any new directory on the mounted filesystem. Maybe you can just mount your own Arch filesystem at /mnt. If you try that and then do ls /mnt, you will know if it has worked.
I will jump in again if I feel I can help, but otherwise had better leave further guidance to somebody more knowledgeable than I!
Offline
I forgot AL's CD doesn't use the old device system (hda, hba, sda, etc.)
Try this instead of /dev/hda1:
# mount /dev/discs/disc0/part1 /mnt/tmp
Markku
Offline
Rasat
your listing
mount/dev/discs/disc0/part1 / mnt/mytmp
I think the correct listing:
mount /dev/discs/disc0/part1 /mnt/mytmp:
The space after mount is required...
I have tried this procedure several times but will try again just in case I didn't do it correctly.
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
Latest result:
#mkdir /mnt/mytmp
#mount /dev/discs/disc0/part1 /mnt/tmp
ext3:no journal on file system on ide0(3,1)
EXT2-fs warning: mounting unchecked fs ..running e2fsck is recommended
(proceeded anyhow)
# cd /mnt/mytmp/etc
cd: can't cd to /mnt/mytmp
#rebooted
Do I need to chroot before the cd command?
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
... isn't part1 your /boot partition? I think you may want part3 if that is the / partition.
Offline
Perhaps:
I have a listing of fstab which ID's root as disc0/part1 from previous posts.
At what point do I chroot?
I can try disc 0/part3 but I need to know when to chroot also...
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
Well I got that part3 from your fstab in a previous thread!
If you are going to chroot, do it immediately after mounting the relevant partition. You can cd after that, but remember you will then be within your Arch system so you just want cd /etc
Offline
Ok, my error on the part 3!!!!
I entered the sequence again using part 3 and then entered chroot followed by:
#cd /mnt/mytmp/etc
#ls -v |less
Found rc.conf~~~~~~~ listed
#q
#cd /mnt/my/tmp/etc
# cp /etc/rc.conf~~~~~~~ /etc/rc.conf
cp: /etc/rc,con~~~~~~~ ; no such file or directory
#reboot
I assume from your last that I haven't entered the right command format.
What :?:
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
Just cd /etc !
(Once you have chrooted to /mnt/mytmp, that by definition becomes the root of your filesystem - / - so you define your path from there)
On the basis of the responses to the commands you issued, there is an rc.conf~~~~~~~ in /mnt/mytmp/etc, but not in /etc. So find out what is in /etc and whether there is a suitable file you can rename /etc/rc.conf
Offline
I performed the procedure again using mkdir ....mount part3...chroot..
cd /mnt/mytmp/etc
ls -v |less found rc.conf~~~~~~~
then
cd /etc
ls -v |less ...listed,fstab ,host,conf , hosts , inittab , motd, mtab , nsswitch.conf, pcmcia, protocols, rc, services....END
As you can see, none of the /etc files related to rc.conf are listed as well as many,many other files which show up in /mytmp/etc.
I tried... rename /etc/rc.conf~~~~~~~
result... no such file or directory
I tried makefile /etc/rc.conf (since it does not exist)
No go
I tried mkfile
Nogo
I don't know what is left to do!!
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
I don't think your chroot is taking effect. Once you have chrooted, cd /mnt/mytmp/etc should fail as no such directory exists within the filesystem you have now entered. Are you doing:
#chroot /mnt/mytmp ?
What output do you get from that?
I'm going to have to sign off for the evening now, but hope you manage to get this sorted.
One last idea - do you still have Slackware on your PC; if so why not boot into Slackware, mount the Arch partition and edit the necessary files from within Slackware?
Offline
Do this:
Boot the install cd then type:
mount -t auto /dev/discs/disc0/part1 /mnt
cd /mnt/etc
ls rc.conf*
cp rc.conf~~~~~~~ rc.conf
cd /
umount /mnt
reboot
Then pull out the cd and everything should work fine.
The problem is that you need rc.conf to boot, by removing it you screwed up a lot of stuff. There's no magic to it. As long as you have a valid rc.conf file in your partitions /etc directory then the system will boot.
On the 'cp' line be sure you don't specify /etc/rc.conf, because that won't work. You're already in the right directory. You should be able to type exactly that and it will work. The only difference is the number of ~'s the rc.conf file has at the end of it. I used the number that you specified before, so I assume that's right.
I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal
Offline
Xentac
Thanks for the direction. It seems I need more experience with the system before I am able to do the right things. I haven't used the procedure for the files as you describe.
However, I do have to report that I was successful in repairing the breach by using the command: #chroot /mnt/mytmp .......
This produced: sh-2.05b#
Then I did what you say doesn't work....
sh-2.05b#cp /etc/rc.conf~~~~~~~ /etc/rc.conf
sh-2.05b# ls -v |less
/etc/rc.conf showed up as well as /etc/rc.conf~~~~~~~
I did this before receiving your post and am now up and running again with Arch 0.5 OS.
I need some direction, however, concerning the word EDIT.
To me EDIT means to change the written contents of a file.
It seems in linux it means more than just changing the contents of...
It seems it requires an exchange procedure or a use of the edit command .....save as....
Most references one sees are cavalier...save is stated..but
....save as... is the correct use of save for editing files such as the one I cremated..
Is this observation correct or am I lost again!!!!
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
The reason it wouldn't work was because you hadn't chrooted, but because you got a successful chroot going (needlessly) /etc actually was /mnt/mytmp/etc so it worked.
How are you editing the files? The default configuration for vim is to save a backup file as well as modifying the original. That way if something goes wrong with the original you still have a backup. This also leaves files with ~'s afterwards all over your hard drive. Most people like to turn off this feature.
The reason you have multiple ~'s is if you edited the backup files. Instead of typing 'vim /etc/rc.conf' you typed 'vim /etc/rc.conf~' or 'vim /etc/rc.conf*' might do it too.
Edit means edit in linux, you're just doing it wrong
I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal
Offline
Much obliged for the description and it is probable that you are right about the edit of backup instead of the main file.
However, I am unaware of the.....vim.....you include which I have never utilized.
I seem to miss the implications associated with Edit.
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
What program do you use to edit files? Vim was just an example. It's also installed in the base install.
I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal
Offline
Hi Lilsirecho,
I'm glad you got things working again. As Rasat pointed out previously, you only needed the chroot procedure if you wanted to use nano to edit the file, so we got somewhat hungup unnecessarily on getting chroot to work for you. However, at least it achieved the desired result!
If it is my own use of the word "edit" which is confusing you, then yes I primarily intended to refer to changing the contents of a file (I had thought you were going to use nano) but perhaps more loosely I was also extending it to changing the name of the file itself (eg with the mv command) or even creating a likeness of it as you did with cp. Maybe strictly speaking I was stretching the terminology too far.
Offline
Gentlemen:
Learning is a process which takes many paths and most of all it takes patience and perseverance.
I am indebted to all of you for your aid and comfort and the patient and extended support.
I now have windows, arch and slackware up and running(slackware for this entry). I can utilize all three in arch and slackware.
At present, arch is smaller intoto so it runs faster. As I add to it, it will slow, too.
By no means is the learning over!!!!!
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
I accidentally deleted my rc.sysinit. Could anyone please post rc.sysinit here? I assume all rc.sysinits are the same, since I never edit the file.
Offline
This is my rcsysinit#!/bin/sh
#
# /etc/rc.sysinit
#
echo -n "[ "
echo " ]"
echo -n "[ Booting Arch Linux 0.5 "
echo " ]"
echo -n "[ "
echo " ]"
. /etc/rc.conf
. /etc/rc.d/functions
status "Starting DevFS Daemon" /sbin/devfsd /dev
# /proc is temporarily mounted to check for LVM support - it is re-mounted
# later from /etc/fstab
/bin/mount -n -t proc none /proc
if [ -f /proc/lvm/global -a -x /sbin/vgchange ]; then
stat_busy "Scanning for LVM groups"
/sbin/vgchange -a y
stat_done
fi
umount /proc
status "Activating Swap" /sbin/swapon -a
status "Mounting Root Read-only" /bin/mount -n -o remount,ro /
stat_busy "Checking Filesystems"
/sbin/fsck -A -T -C -a
if [ $? -gt 1 ]; then
stat_fail
echo
echo "***************** FILESYSTEM CHECK FAILED ****************"
echo "* *"
echo "* Please repair manually and reboot. Note that the root *"
echo "* file system is currently mounted read-only. To remount *"
echo "* it read-write type: mount -n -o remount,rw / *"
echo "* When you exit the maintainance shell the system will *"
echo "* reboot automatically. *"
echo "* *"
echo "************************************************************"
echo
/sbin/sulogin -p
echo "Automatic reboot in progress..."
/bin/umount -a
/bin/mount -n -o remount,ro /
/sbin/reboot -f
exit 0
fi
stat_done
stat_busy "Mounting Local Filesystems"
/bin/mount -n -o remount,rw /
/bin/rm -f /etc/mtab*
/bin/mount -a -t nonfs
stat_done
stat_busy "Configuring System Clock"
if [ "$HARDWARECLOCK" = "UTC" ]; then
/sbin/hwclock --utc --hctosys
else
/sbin/hwclock --localtime --hctosys
fi
if [ ! -f /var/lib/hwclock/adjtime ]; then
echo "0.0 0 0.0" > /var/lib/hwclock/adjtime
fi
if [ "$TIMEZONE" != "" ]; then
/bin/ln -sf /usr/share/zoneinfo/$TIMEZONE /etc/localtime
fi
stat_done
stat_busy "Removing Leftover Files"
/bin/rm -f /etc/nologin &> /dev/null
/bin/rm -f /etc/shutdownpid &> /dev/null
/bin/rm -f /var/locks/* &> /dev/null
/bin/rm -f /var/run/*.pid &> /dev/null
/bin/rm -f /var/run/daemons/* &>/dev/null
/bin/rm -rf /tmp/* /tmp/.* &> /dev/null
: > /var/run/utmp
stat_done
status "Updating Shared Library Links" /sbin/ldconfig
if [ "$HOSTNAME" != "" ]; then
status "Setting Hostname: $HOSTNAME" /bin/hostname $HOSTNAME
fi
status "Starting System Logger" /usr/sbin/syslogd -m 0
status "Starting Kernel Logger" /usr/sbin/klogd -c 4
kernel_version=`uname -r`
if [ -e "/lib/modules/$kernel_version/modules.dep" ]; then
new_mods=`/usr/bin/find /lib/modules/$kernel_version -type f -newer /lib/modules/$kernel_version/modules.dep`
if [ ! -z "$new_mods" ]; then
status "Updating Module Dependencies" /sbin/depmod -a
fi
else
status "Updating Module Dependencies" /sbin/depmod -a
fi
if [ -f /var/run/random-seed ]; then
status "Initializing Random Seed" /bin/cat /var/run/random-seed > /dev/urandom
fi
if [ "$KEYMAP" != "" ]; then
status "Loading Keyboard Map: $KEYMAP" /bin/loadkeys -q $KEYMAP
fi
# Load modules from the MODULES array defined in rc.conf
stat_busy "Loading Modules"
for mod in "${MODULES[@]}"; do
if [[ `echo $mod | grep '^[^!]' | wc -l` -eq 1 ]]; then
/sbin/modprobe $mod
fi
done
stat_done
# Screen blanks after 15 minutes idle time
/usr/bin/setterm -blank 15
# End of file
Perhaps this will be of help....
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline