Linux - GeneralThis 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.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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 =)
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?? ).
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.