LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux Partition Question (https://www.linuxquestions.org/questions/linux-newbie-8/linux-partition-question-623955/)

new2lx 02-26-2008 08:58 AM

Linux Partition Question
 
Hello,

I'm one week into learning Linux and have built a multi boot system with Slackware, OpenSuse, Debian, Mandriva, and Ubuntu. I moved around some partitions to get rid of a second partition OpenSuse made, and in the process my partitions became numbered incorrectly. For example, sda9 became sda8 and so on. Since this is all about learning I'm all for figuring a way out of this. I knew all along I was going to reload the OpenSuse partition, so I used that partition to load Debian and access the other partitions for the sake of getting a good menu.lst rather than figuring out the subtleties in getting it right again.

My question is this, if I build a system, say slackware, on sda8 - does this location get recorded in some configuration files in any way? I'm not talking about anything pointing to sda8 for boot up. Another way of looking at it, rather that being distracted with my system, if I copy sda8 to sda7, will I effectively have a fully functional distro on sda7, or will some things need to be modified?

Thank you,

truthfatal 02-26-2008 09:27 AM

Code:

It was a book to kill time for those who liked it better dead.

nelson@slaptop:~$ cat /etc/fstab
/dev/sda4        swap            swap        defaults        0  0
/dev/sda1        /                ext3        defaults        1  1
/dev/sda2        /usr            ext3        defaults        1  2
/dev/sda3        /home            ext3        defaults        1  2
#/dev/cdrom      /mnt/cdrom      auto        noauto,owner,ro  0  0
/dev/fd0        /mnt/floppy      auto        noauto,owner    0  0
devpts          /dev/pts        devpts      gid=5,mode=620  0  0
proc            /proc            proc        defaults        0  0
# Next line added for kqemu - it will not harm your system
none                    /dev/shm                tmpfs  defaults,size=796m        0 0
nelson@slaptop:~$

As you can see, /etc/fstab contains references to your partitions. if I were to copy (from my fstab) sda2 into a new partition called sda5 I would have to adjust my fstab to reflect that change.

As would you.
Other than GRUB or LiLo which would be "pointing to sda8 for boot up" that's all I can think of.

johnsfine 02-26-2008 09:59 AM

When I did something that changed partition naming on one of my Mepis installs I only needed to fix /boot/grub/menu.lst and /etc/fstab then everything worked again.

I can't be certain you don't have partition names elsewhere, just that I didn't.

louieb 02-26-2008 08:26 PM

In addition to the places others have pointed out:
If its a PC that you want to hibernate you need to check
/etc/initramfs-tools/conf.d

to make sure its pointing to your swap partition. then run
Code:

sudo dpkg-reconfigure initramfs-tools
Thats the way it is in Ubuntu not sure about the other distributions.


All times are GMT -5. The time now is 07:32 PM.