LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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


Reply
  Search this Thread
Old 02-26-2008, 09:58 AM   #1
new2lx
LQ Newbie
 
Registered: Feb 2008
Posts: 8

Rep: Reputation: 0
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,
 
Old 02-26-2008, 10:27 AM   #2
truthfatal
Member
 
Registered: Mar 2005
Location: Winnipeg, MB
Distribution: Raspbian, Debian, Slackware, OS X
Posts: 443
Blog Entries: 9

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

Last edited by truthfatal; 02-26-2008 at 10:29 AM. Reason: s/you/I
 
Old 02-26-2008, 10:59 AM   #3
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
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.
 
Old 02-26-2008, 09:26 PM   #4
louieb
Member
 
Registered: Jun 2006
Location: Texas
Distribution: Ubuntu 8.04
Posts: 94

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


Reply


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
Best way to Resize Linux partition ? + kernel remove question -=Graz=- Slackware 19 05-25-2008 07:08 PM
Linux partition question sharptech Linux - Software 3 01-05-2007 11:35 AM
n00b question: Problems with linux root permissions and ntfs partition wLancer Linux - General 4 12-06-2004 05:32 PM
Linux NTFS Partition Question migrax Linux - Software 5 05-07-2004 06:02 PM
partition win/linux question frizzo Linux - Newbie 8 03-24-2004 07:43 PM


All times are GMT -5. The time now is 05:41 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration