LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-21-2004, 08:18 AM   #16
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895

Directory names and volume labels are two different things.
The root volume label is /
The boot volume label is /boot

According to the previous output of fdisk you posted your old / is hda3 so.
tune2fs -L /boot_old /dev/hda3

I'm still trying to figure out what exactly happened in the first place.
 
Old 10-21-2004, 08:29 AM   #17
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,463

Rep: Reputation: 299Reputation: 299Reputation: 299
Quote:
Originally posted by JZL240I-U
Yes, that's what I meant. Make sure of the options, though... .

BUT: cd doesn't rename...

Experts to the fore: Is it possible to cd "above" / ?
Root is supposed to contain everything, so no.
I'm also sure this command didn't cause all his problems(tried it myself).
cd //
cd /
cd ////////
cd /////////////////
they all do the same...
What exactly were you doing when it happened?
 
Old 10-21-2004, 08:36 AM   #18
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
One of the many reasons not to login as root for regular day to day tasks, etc.

Sorry, had to mention it!
 
Old 10-21-2004, 10:25 AM   #19
rioguia
Member
 
Registered: Jun 2002
Posts: 411

Original Poster
Rep: Reputation: 30
n recursive option for MV

what was i doing: it was so long ago but I was updatiing /var/named files (copying them perhaps caused the problem?)

trickykid "I told you so"'s are definitely in order here. i really screwed up

regarding how i actually screwed up, i will gladly post my history for everyone's amusement. if there is anyway to get to the history frm the rescue disk, i'd be glad to identify what i did do we could better diagnoxe the problem.

regarding mv -Rd '*/' *

There is no recursive argument for mv according to the man page.

That's ok thoug if it means i just have to repeat the command s for each of my 19 directoies (I.I repeat this command 19 time for).

bin , dev , home , lib , misc, opt root , selinux , tmp , var ,
boot , etc , initrd, lost+found , mnt , proc ,, sbin , sys , usr

I don't think this is the solution. All the directories look fine. It only when I am in the directories that the trailing / shows on the prompt (it even did it when i mounted the old hard drive has hdb (it was an easy way to keep track of the two parallel file structures in the terminal.

Last edited by rioguia; 10-21-2004 at 11:02 AM.
 
Old 10-21-2004, 10:35 AM   #20
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Re: n recursive option for MV

Quote:
Originally posted by rioguia
...regarding how i actually screwed up, i will gladly post my history for everyone's amusement...
Yes, please do. Now this is definitely something to avoid...


Quote:
Originally posted by rioguia
...There is no recursive argument for mv according to the man page...
Oops, sorry . Then I'm mixing up something ... is there a command like ren(ame)?


Quote:
Originally posted by rioguia
WILL THIS WORK?
Hm. Not sure, since "cd" could not have the effect you described. Please post your history first. Also mount your disk from a rescue system und do a "ls -al" to verify the effect for the 19 directories mentioned and make sure it does not concern subdirectories. Perhaps even better "cd" into some of them and do a "pwd" or use a graphical tool (Konquereor or some such) to view the adresses it displays. If it is just the 19 uppermost ones a simple "mv '*/' *" should do.

Last edited by JZL240I-U; 10-21-2004 at 10:42 AM.
 
Old 10-21-2004, 11:00 AM   #21
Chrax
Member
 
Registered: Apr 2004
Distribution: Dapper
Posts: 167

Rep: Reputation: 31
mv is by definition recursive. If I move a folder, it moves the entire contents, not just the folder.
 
Old 10-21-2004, 02:09 PM   #22
rioguia
Member
 
Registered: Jun 2002
Posts: 411

Original Poster
Rep: Reputation: 30
its fixed.

i have not slept in 48 hours (i'll try and post back when i'm a little more coherent). YUCK. THanks to all for all you help.

the system boote after trying the "mv" commands. The directories now now longer have the trailing / when i display them in the terminal.
For example, [root@testy root]# NOT [root@testy root/]#

what is currious, is that the directories never displayed that way under the rescue prompt.. It only displayed that way when I was working in the directory immediately before the problem started and when the directory was mounted as follows as a slave to a clean install (i wanted to make sure that I had the data back up on the new drive before i messed with the file system): here is how i mounted the newly slaved hard drive.
# mkdir /mnt/hdb2
# mkdir /mnt/hdb3
# mount /dev/hdb2 /mnt/hdb2
# mount /dev/hdb3 /mnt/hdb3

I did a history > screwup.txt and am looking over the file. i don't see anything that could cause a problem sufficient to make the operating system freeze up and refuse to boot.. email me and i'll send you a copy maw ^ substantis.com.

also, it's my udnerstanding that history is terminal specific and i'm always working with a bunch. could someone tell me how to correlate the history by time. is there a log file with time references?

thanks.

PS the rescue disk apparently screwed up some of the drivers (my nic showed up in lspci but not lsmod). i had to modprobe my card after the system rebooted successfully.

I keep getting a cryptic error message.
Quote:
freeConfModules called with NULL pointer. Don't do that.
 
Old 10-25-2004, 02:46 AM   #23
rioguia
Member
 
Registered: Jun 2002
Posts: 411

Original Poster
Rep: Reputation: 30
I did it again

i'm sorry that i haven't gotten back with the promised history. my server started dying immediately after i letf my last report. i was not able to recaputre the history from the various terminals I was using. I f someone can tel me where these files reside, i will make another attempt. the server started generating a lot of innode errors which were fsck was not able to fix. finally its stopped mount hda5 (swap) altogether.

in the process of another all nigher, i unfortunately made the same mistake again and have copied it from the terminal for your review.

[root@testy temp]# cd //
[root@testy //]# ;s
bash: syntax error near unexpected token `;'
[root@testy //]# cd //
[root@testy //]#
 
Old 10-25-2004, 08:19 AM   #24
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
It is just some bug in the way bash handles the display, you are *not* changing your filesytem with the cd command.

darthtux@poseidon ~ $ cd /////////
darthtux@poseidon / $ ls
bin cdrom etc initrd lib media opt root srv tmp var
boot dev home initrd.img lost+found mnt proc sbin sys usr vmlinuz
darthtux@poseidon / $ cd ///
darthtux@poseidon / $ cd //
darthtux@poseidon // $ pwd
//
darthtux@poseidon // $ cd /
darthtux@poseidon / $ ls
bin cdrom etc initrd lib media opt root srv tmp var
boot dev home initrd.img lost+found mnt proc sbin sys usr vmlinuz
darthtux@poseidon / $ cd
darthtux@poseidon ~ $

Last edited by darthtux; 10-25-2004 at 08:29 AM.
 
Old 10-28-2004, 02:47 PM   #25
rioguia
Member
 
Registered: Jun 2002
Posts: 411

Original Poster
Rep: Reputation: 30
i agree that's the most likely interpretation

but my applications stopped working and my hard drive totally failed (as did my back ups). Ouch!

two lessons learned:

don't be a super user unless you have to be

i need to spend more time on backup and recovery planning
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"bad interpreter : no such file or directory" when configure "flex" acer_peri Linux - Software 10 11-10-2010 01:19 AM
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
what is the difference between "/" root directory and "/root" directory? augustus123 Linux - General 4 11-20-2004 05:22 PM
HELP! - root directory "/" 100% CAPACITY JM_Fraser Linux - Software 11 11-28-2003 03:41 PM
"Linux From Scratch" forum renamed? Dark_Helmet LQ Suggestions & Feedback 3 09-03-2003 09:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration