Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-08-2002, 10:14 AM   #1
LQ Newbie
Registered: Jun 2002
Posts: 15

Rep: Reputation: 0
switching mounts in fstab

when i installed debian i accidently set the mounts for /var and / backwords. i had an extra partition so i tried to switch them (not nearly enough room on the partition / is mount to). i did:

cp -ax / /store (partition for backup)

switched the mount points for /store and / in fstab with the idea that then i would cp /var to where / was {now /store} and make the appropriate changes in fstab. the problem is that after i switched / and /store and rebooted, linux tried to mount both the old / partition and the new / partition as root. so i chickened out and switched it back in fstab and rebooted.

now...i am determined to do this. i dont care what happens to it. so can anyone give me any pointer on this little challenge i have so that it might go smoothly?

Old 07-08-2002, 11:58 AM   #2
LQ Newbie
Registered: May 2002
Posts: 20

Rep: Reputation: 0
You have to tell the kernel where the root partition is.

Unfortunately I forgot the name of the command, sorry.

Alternative: Change fstab again and mount with the option
Old 07-08-2002, 06:16 PM   #3
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
isn't the root partition information in the /etc/lilo.conf ?
i would try that, if i were u,
but i can't gaurantee because i 've never done that before =)
Old 07-08-2002, 08:40 PM   #4
LQ Addict
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
You need to edit your fstab file and your boot loader. If you have lilo as your boot loader, then edit your /etc/lilo.conf file. Look for the root= line and make it point to the new root ' / ' partition and then run /sbin/lilo.

If you use grub, it could be a little more complicated. Post a copy of it ( either /boot/grub/menu.lst or /boot/grub/grub.conf ) and also what your new root ' / ' partition is ( hd?? ).

Last edited by linuxcool; 07-08-2002 at 08:41 PM.
Old 07-09-2002, 01:07 AM   #5
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
boot from install cd (ie rh73)
chroot /mnt/sysimage
adjust /etc/fstab and reboot
Old 07-09-2002, 07:09 AM   #6
LQ Newbie
Registered: Jun 2002
Posts: 15

Original Poster
Rep: Reputation: 0
Ahhh. of course. In lilo.conf. i had forgot about that. instead of booting from install cd i prefer to telinit 1 and umount all but the partitions i'm copying. too bad i'm at work. i'd like to work on it right now. time to fire up ssh i guess. thanks all for the help.
Old 07-09-2002, 07:54 PM   #7
LQ Addict
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
You're welcome.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
samba mounts in fstab Zurvan Linux - Networking 5 04-17-2005 10:13 AM
regular user mounts and fstab (again) clawder Slackware 7 12-31-2004 12:37 PM
fstab to define mounts on boot PhiMati Fedora 1 06-18-2004 05:29 PM
smb mounts in fstab failing gw1500se Mandriva 4 05-31-2004 08:51 AM
How to edit mounts - fstab problems... muzicman82 Linux - General 3 01-29-2004 10:06 PM > Forums > Linux Forums > Linux - General

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