LinuxQuestions.org
Help answer threads with 0 replies.
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


Closed Thread
  Search this Thread
Old 03-31-2006, 09:17 AM   #1
Casanogab
LQ Newbie
 
Registered: Mar 2006
Posts: 4

Rep: Reputation: 0
i move my /etc folder in my /home folder


Hi all

i have 1200 users...
i do a real stoopid thing

i move my /etc into my /home folder ....

so now how do i move back to is original place ... im able to log in single mode but my drive is read-only ... icant mount with the command

mount -a
or
mount -uw
or
mount -o remount,rw
or
mount --move /home/etc /

i try to boot with knoopix and simply mepis CD
both of them dont see the content of my drive cause my /etc/fstab and my /etc/mtab are not at the good place....

how do i move back my /etc to return to the /

Thx
 
Old 03-31-2006, 09:21 AM   #2
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
If you boot into a livecd, they should be able to mount the partition. If you're trying to boot your existing system with them, it won't work. Boot into the livecd system, then mount and edit the partition putting your /etc back where it belongs.

And yes, that was a dumb thing to do. LOL
 
Old 03-31-2006, 09:36 AM   #3
nilleso
Member
 
Registered: Nov 2004
Location: ON, CANADA
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372

Rep: Reputation: 31
fstab on the liveCD doesn't know those partitions have been defined... you need the be more explicit when you mount

mount /dev/xxx /mnt/something

changing /dev/xxx to the actual device and partition# ie sda3 hda2 sdb1
the directory you mount to will have to exist as well. you can `mkdir -p /mnt/bkuproot`
then
mount /dev/xxx /mnt/bkuproot
cp -R /mnt/bkuproot/home/etc /mnt/bkuproot
then umount /dev/xxx
and probably restart the machine

you can remove your 2nd copy of etc from the home dir if all is okay

good luck - we all do stupid things !!!
cheers
 
Old 03-31-2006, 09:45 AM   #4
Casanogab
LQ Newbie
 
Registered: Mar 2006
Posts: 4

Original Poster
Rep: Reputation: 0
ok i boot with knoppix again

i see on desktop 4 drive ...
sda1 = ramdisk (knoppix stuff)
sda2
sdb1
sdc1

normally i must have one drive not 3 im on linux server with raid but the 3 disk of 80 gig are configure to give me a big 320 gig of space....

so what can i do to see my data now ?
 
Old 03-31-2006, 09:54 AM   #5
nilleso
Member
 
Registered: Nov 2004
Location: ON, CANADA
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372

Rep: Reputation: 31
you need to know your raid/lvm setup.

however, you should be okay... just go ahead and mount all three.

Locate the /home directory in (hopefully) just one of them. Make the changes as described.
 
Old 03-31-2006, 10:03 AM   #6
Casanogab
LQ Newbie
 
Registered: Mar 2006
Posts: 4

Original Poster
Rep: Reputation: 0
where do i check my raid/lvm ?

I cant mount my drive ...
nilleso say to create a folder...
i create the folder /mnt/drive1

mount /dev/sdb1 /mnt/drive1
>>>> give me this error >>>
mount: you must specify the filesystem type

even if i try with /dev/sda2 or sdc1 its the same thing

THX a lot for your help !!!
 
Old 03-31-2006, 10:33 AM   #7
Dtsazza
Member
 
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 31
Did you google the error?
Code:
mount: you must specify the filesystem type
means exactly that. Read the man page for mount, then add the corresponding filesystem option to the mount command.
 
Old 03-31-2006, 10:46 AM   #8
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
Code:
mount -t <filesystem_type> /device /mount point
Give that a shot

As the error says, give it a filesystem type. vfat for fat32, ext3, ext2, xfs, whatever
 
Old 03-31-2006, 01:21 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

http://www.linuxquestions.org/questi...d.php?t=430297
 
  


Closed Thread



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
how can i move this folder of music from /root/Shared to /home/coffee/Shared ? thx mr_coffee Linux - Newbie 9 01-23-2006 06:50 AM
Folder Max Size and Limiting SSH access to home folder. Mefistofeles Linux - General 4 11-26-2005 02:09 PM
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 05:23 PM
Cant move a folder to another path? dwarf007 Linux - Newbie 2 09-19-2004 02:28 AM
gnome home folder and trash folder ambelos Linux - Software 2 02-24-2004 06:44 AM

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

All times are GMT -5. The time now is 02:13 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