Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
changing partition setup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
SanitysEj
n00b
n00b


Joined: 13 Feb 2003
Posts: 29
Location: I think I'm here, not sure.

PostPosted: Thu Feb 20, 2003 6:44 pm    Post subject: changing partition setup Reply with quote

Forgive me if this is a dupe, I searched a bit, but don't really know where to begin.

See, I need to change the way I've got my partitions setup, right now:

hda2 /boot
hda5 /
hda6 /mnt/.init.d
hda7 /tmp
hda8 /var
hda9 /home
hda10 /usr
hda11 /opt
hda12 /dev/shm
hda13 swap

Anyone who knows what they're doing may be able to see the folly of my ways. I keep getting weird errors when I try to put the /mnt/.init.d in fstab. Rather than try to get it to work (if that's possible), i'd rather just add that space to my root partition. Also, I'd like to remove the /dev/shm partition and the swap then move the swap down where /dev/shm was.

Any kind of links or just straight directions, even advice, is welcome.

Thank you in advance
_________________
Universally,
Ej

"Try?! There is no Try!!! There is do, and there is do not!!!!" -YODA
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2390
Location: Wisconsin (USA)

PostPosted: Thu Feb 20, 2003 11:44 pm    Post subject: Reply with quote

/mnt/.init.d is supposed to be mounted on tmpfs or shmfs (or whatever the name is for it, I forget) - you shouldn't mess with it. It doesn't actually get stored on a disk anywhere.

The same goes for /dev/shm - it's supposed to be shared memory, and therefore should stay in RAM for performance reasons.
Back to top
View user's profile Send private message
SanitysEj
n00b
n00b


Joined: 13 Feb 2003
Posts: 29
Location: I think I'm here, not sure.

PostPosted: Fri Feb 21, 2003 12:04 am    Post subject: Reply with quote

Right, I gathered that, now, I need to figure out how to use the space efficiently. I know I can somehow resize my partitions. I've got close to 3g of extra space to play with (empty at the end of my ext partition), I just need to know the process of whatever, to get it the way I want it.
_________________
Universally,
Ej

"Try?! There is no Try!!! There is do, and there is do not!!!!" -YODA
Back to top
View user's profile Send private message
dirtyjake
n00b
n00b


Joined: 06 Jul 2002
Posts: 60

PostPosted: Fri Feb 21, 2003 12:27 am    Post subject: Reply with quote

This is how I would attempt to do it.

For your root partition:
- Boot a Gentoo system CD.
- mkdir /mnt/save
- Mount a partition that is large enough to hold the contents of / to /mnt/save
- mkdir /mnt/save/root-save
- mkdir /mnt/old; mount /dev/hda5 /mnt/old
- cp -vra /mnt/old/* /mnt/save/root-save/
- umount /mnt/old
- Use fdisk to delete hda5 and hda6, then create hda5 in that space
- mkfs.WHATEVERFS /dev/hda5
- mount /dev/hda5 /mnt/old
- cp -vra /mnt/save/root-save/* /mnt/old/
- umount /mnt/old; umount /mnt/save

Double check your fstab while you still have / mounted to see if you need to add a label to /dev/hda5 (like Red Hat does)

For swap (and /dev/shm):
- While booted in Gentoo system CD
- Use fdisk to delete hda12 and hda13 then create hda12 as your new swap
- mkdir /mnt/root
- mount /dev/hda5 /mnt/root
- Edit /mnt/root/etc/fstab to point your new Swap

Reboot.

This is just an outline of how I would attempt this. I have not tried this with Gentoo system CDs or anything. I believe this or some similar variation should work for you but I give NO GUARANTEES or WARRANTIES. Make sure you understand what is happening before you go and fdisk around.

Again, I have not tried this so I may not be able to answer specific questions regarding any problems you may encounter.

Good Luck
Back to top
View user's profile Send private message
SanitysEj
n00b
n00b


Joined: 13 Feb 2003
Posts: 29
Location: I think I'm here, not sure.

PostPosted: Fri Feb 21, 2003 8:47 am    Post subject: Another related question Reply with quote

DIRTYJAKE

Hey, that was exactly what I was looking for. Thanx much.

I wonder if there's anyone who can help w/ another novice question. Say I've got a 2g /usr and a 2g /var, then a 9g /opt that's not getting any use. Rather than remount as illustrated earlier, is there anyway to create an extended volume (so to speak) or link /usr & /var to an "overflow folder" in /opt?

Any advice is great. Thanx again in advance.
_________________
Universally,
Ej

"Try?! There is no Try!!! There is do, and there is do not!!!!" -YODA
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum