Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


Closed Thread
  Search this Thread
Old 03-31-2006, 09:17 AM   #1
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
mount -uw
mount -o remount,rw
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 /

Old 03-31-2006, 09:21 AM   #2
Senior Member
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 14.2 Solus
Posts: 2,264

Rep: Reputation: 51
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
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`
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 !!!
Old 03-31-2006, 09:45 AM   #4
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)

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
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
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
Registered: Oct 2005
Location: Oxford, UK
Distribution: Debian Etch (w/ dual-boot XP for gaming)
Posts: 282

Rep: Reputation: 30
Did you google the error?
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
Senior Member
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
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
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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.

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

All times are GMT -5. The time now is 10:34 PM.

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