antiX-forum Forum Index antiX-forum
Forum for users of antiX linux. "Mean and Lean"
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Welcome
Welcome to antiX-forum.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!

How to manually partition HD so that data is separate partit
Goto page Previous  1, 2, 3, 4  Next
 
Post new topic   Reply to topic    antiX-forum Forum Index -> New users
View previous topic :: View next topic  
Author Message
Swarup



Joined: 14 May 2008
Posts: 45

PostPosted: Wed May 14, 2008 10:51 pm    Post subject: Reply with quote

JawsThemeSwimming428 wrote:
If you have the /home in the root partition it keeps all of your configs and settings with it. So when you delete root you delete your /home (because they are in one partition) and then upon re-installation would have to redo all of your configurations. If you have the /home in a separate partition you can delete the root partition and reinstall the OS without touching /home. So when you install the new root and point it to your already configured /home you will have a system that is more configured to your preference.


Yes, thank you. Up till now I have always kept my /home in the root partition in Ubuntu, and every time a new version is released, I have to copy my /home to an external HD and paste it back into the new Ubuntu release once I install it. So what you say is true, it will be more convenient to instead keep the /home as a separate partition so I don't have to go through this headache anymore.

But my question in the post just above yours, was different. There I was already understanding that it is better not to put /home in the root partition, and was asking about whether to create--in addition to the root partition--separate additional partitions for /home and another separate partition for backup data from my main HD which has Ubuntu Hardy on it. Or whether to just put the AntiX /home and the Ubuntu backup data in the same partition (but that partition would in any event be a separate partition from root). And then I asked, if I put say, four separate small distros on my HD of which AntiX is one, then does each of their "/home" need to be in its own separate partition? Or could I make one partition and put the /home of all four distros into the same partition together?

I'm just trying to understand the practical theory behind how to manage /home directories outside of the root directory.
Back to top
View user's profile Send private message
JawsThemeSwimming428



Joined: 17 Mar 2008
Posts: 127

PostPosted: Wed May 14, 2008 11:03 pm    Post subject: Reply with quote

Not sure about putting a few /home's in the same partition but I would not put your antiX /home and data backup on the same partition. If that partition would become corrupt you would lose two things instead of one.
Back to top
View user's profile Send private message
Swarup



Joined: 14 May 2008
Posts: 45

PostPosted: Thu May 15, 2008 12:52 am    Post subject: Reply with quote

JawsThemeSwimming428 wrote:
Not sure about putting a few /home's in the same partition but I would not put your antiX /home and data backup on the same partition. If that partition would become corrupt you would lose two things instead of one.


I see. Yes, that makes sense. It's just that it gives you flexibility of space. I think I'm going to try and read a bit more about this. Thanks though for your advice. Smile
Back to top
View user's profile Send private message
JawsThemeSwimming428



Joined: 17 Mar 2008
Posts: 127

PostPosted: Thu May 15, 2008 11:57 pm    Post subject: Reply with quote

No problem! Let me know if you find anything.
Back to top
View user's profile Send private message
Swarup



Joined: 14 May 2008
Posts: 45

PostPosted: Fri May 16, 2008 12:39 am    Post subject: Reply with quote

Well, one practical point I can report on-- I went ahead and set up partitions today on my HD in order to install AntiX. I had plans to add other small distros on that HD as well in order to do a comparison, so before the AntiX install I wanted to set up several extra partitions in anticipation of adding more root partitions and home partitions later. But I found, or rather gparted reminded me, that one can only create a maximum of four primary partitions or which one is swap. That leaves you with three. And one of those can be an extended partition with two logical partitions inside. So aside from swap, it gives you a total of four partitions to work with. At least, that is the limit if you use gparted. That will only allow for setting up two distros on the drive, if you want to keep the root and home directories in separate partitions. I guess one could squeeze up to four distros on the HD using gparted, but only if you keep the "/" and "/home" in the same partition. Am I missing something here? Sounds like two distros is the limit if you keep the / and /home in separate partitions.
Back to top
View user's profile Send private message
eriefisher



Joined: 07 Oct 2007
Posts: 681
Location: Canada's South Coast

PostPosted: Fri May 16, 2008 12:50 am    Post subject: Reply with quote

You should be able to create as many extended partitions inside those logical partitions.
_________________
eriefisher
------------------------------------------------------------
If I knew It was this good I would have been "Anti" everything long ago.

The first thing a I met was a fly with a buzz......America
Back to top
View user's profile Send private message Send e-mail
Swarup



Joined: 14 May 2008
Posts: 45

PostPosted: Fri May 16, 2008 1:08 am    Post subject: Reply with quote

I see, that's interesting. If it is like that, then it does give scope for a few extra distros. --So long as the grub menu can manage them. Anyhow, my 10g HD is not going to allow me to put so many on to test all that. But at least the theory is clear now. Thank you.
Back to top
View user's profile Send private message
Swarup



Joined: 14 May 2008
Posts: 45

PostPosted: Fri May 16, 2008 8:21 am    Post subject: Reply with quote

Well, now I created a bit of a problem. But nothing that someone here won't be able to clear up I'm sure. I set up my 10g HD with one 3g extended partition (hda1) containing two logical drives (hda 5 & 6)-- one a 2g partition which I put AntiX "/" on, and one a 1g partition which I put AntiX "/home" on. Then there are three other primary partitions-- one 385 mb partition (hda3) for swap, a 2g partition (hda2) for another distro's root, and a 4g partition (hda4) which will be for that distro's "/home" plus will also serve as a backup location for data from another drive. So first I set up AntiX and had AntiX set up its Grub menu. And AntiX was booting fine. But then tonite, I installed Tinyflux with its root on hda2, and home on hda4. Tinyflux of course set up its own Grub, and invited me to add any other linux or Win OS's already on the HD, into the Grub menu. So I added AntiX into the Grub menu, giving the info when asked, that its root is located in hda5. Tinyflux's Grub setup also wanted to know what kernel AntiX uses, and I of course did not know. But the wizard supplied some default kernel name which I accepted. Anyhow, the grub menu looks fine, with both Tinyflux and AntiX listed there. But only Tinyflux boots up. If I select AntiX, it gets stuck quickly, gives some error messages, and can't boot. My guess is that AntiX isn't properly listed somehow in the Grub menu or something.

1. Given the limitations of a 10g HD, did I set up the structure and architecture of the two distros and 5 partitions the best way I could have?

2. Can someone tell me what I have to do to fix things with Grub so AntiX will again boot properly as it did when I initially installed it?
Back to top
View user's profile Send private message
eriefisher



Joined: 07 Oct 2007
Posts: 681
Location: Canada's South Coast

PostPosted: Fri May 16, 2008 2:51 pm    Post subject: Reply with quote

Post your /boot/grub/menu.lst so we can have a look.
_________________
eriefisher
------------------------------------------------------------
If I knew It was this good I would have been "Anti" everything long ago.

The first thing a I met was a fly with a buzz......America
Back to top
View user's profile Send private message Send e-mail
Swarup



Joined: 14 May 2008
Posts: 45

PostPosted: Fri May 16, 2008 6:03 pm    Post subject: Reply with quote

ok, I'm going to put the HD back in my laptop now, and in a few minutes will be able to paste the menu.1st contents here.
Back to top
View user's profile Send private message
Swarup



Joined: 14 May 2008
Posts: 45

PostPosted: Fri May 16, 2008 6:34 pm    Post subject: Reply with quote

Here is the menu.1st file:

Code:
timeout 10
color black/cyan yellow/cyan
gfxmenu (hd0,1)/usr/share/gfxboot/themes/pcfluxboxos/boot/message
default 0

title linux
kernel (hd0,1)/boot/vmlinuz BOOT_IMAGE=linux root=/dev/hda2  acpi=on resume=/dev/hda3
initrd (hd0,1)/boot/initrd.img

title failsafe
kernel (hd0,1)/boot/vmlinuz BOOT_IMAGE=failsafe root=/dev/hda2  failsafe acpi=on resume=/dev/hda3
initrd (hd0,1)/boot/initrd.img

title AntiX
kernel (hd0,1)/boot/vmlinuz-2.6.18.8.tex5.lgc BOOT_IMAGE=AntiX root=/dev/hda5
initrd (hd0,1)/boot/initrd.img


And I should just mention, that the AntiX root is indeed in hda5. hda5 is a logical partition inside the extended partition hda1. That should be alright, eh? So that much is correct. As for the rest i.e, the kernel version etc, I do not know.
Back to top
View user's profile Send private message
anticapitalista
Site Admin


Joined: 11 Sep 2007
Posts: 1043
Location: Greece

PostPosted: Fri May 16, 2008 8:23 pm    Post subject: Reply with quote

Change the antiX section to this:

title antiX-M7.2
root (hd0,4)
kernel /boot/vmlinuz root=/dev/hda5 nomce quiet nosplash vga=791
initrd /boot/initrd.img

If that doesn't work try this:

title antiX
root (hd0,4)
kernel /boot/vmlinuz-2.6.22-1-mepis-smp root=/dev/hda5 ro quiet nosplash vga=791
initrd /boot/initrd.img-2.6.22-1-mepis-smp
_________________
Philosophers have interpreted the world in many ways; the point is to change it.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Swarup



Joined: 14 May 2008
Posts: 45

PostPosted: Fri May 16, 2008 9:18 pm    Post subject: Reply with quote

Ok, I've tried the first one you gave and it didn't work. I am typing the error it gave below, in case it is of any use. In the mean time I'll try the second one now and see if it works.

Code:
root (hd0,4)
filesystem type is ext2fs, partition type 0 x 83
kernel /boot/vmlinuz root=/dev/hda5 nomce quiet nosplash vga=791

error 2: Bad File or directory type


I don't know why it says filesystem type is ext2. The file system I created is ext3. I'm sure that is what it is.
Back to top
View user's profile Send private message
Swarup



Joined: 14 May 2008
Posts: 45

PostPosted: Fri May 16, 2008 10:20 pm    Post subject: Reply with quote

I just tried the second way, and got the very same error as I got with the first way. And I put in my Parted Magic livecd, booted to it and opened gparted just to make sure all the filesystems are ext3. They are. And as per gparted, all the partitions are ok.

Why then is grub saying it is of type ext2?

What should I try next?
Back to top
View user's profile Send private message
eriefisher



Joined: 07 Oct 2007
Posts: 681
Location: Canada's South Coast

PostPosted: Fri May 16, 2008 10:31 pm    Post subject: Reply with quote

I would try using the Antix live cd and reinstall grub. It should see both installs and configure them in the menu.
_________________
eriefisher
------------------------------------------------------------
If I knew It was this good I would have been "Anti" everything long ago.

The first thing a I met was a fly with a buzz......America
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    antiX-forum Forum Index -> New users All times are GMT + 3 Hours
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4   

 
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

Community Chest


Powered by phpBB
Hosted by FreeForums.org