Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 9th July 2005, 09:19 PM
aero-z's Avatar
aero-z Offline
Registered User
 
Join Date: Jun 2005
Location: Tallinn, Estonia
Age: 27
Posts: 488
Exclamation Q: Add /home partition

I added a picture of my current partitions. From there, I would like to make /home partition from the free space. What filesystem should I use- ext2 or ext3? How do I have to do this? In windows I have Partition Magic 8 and in Linux QTParted.
OR IS IT POSSIBLE AFTER ALL???
Attached Thumbnails
Click image for larger version

Name:	Untitled.jpg
Views:	137
Size:	14.1 KB
ID:	5368  
__________________
|| Registered Linux User #418296 ||

Last edited by aero-z; 9th July 2005 at 10:56 PM.
Reply With Quote
  #2  
Old 9th July 2005, 09:47 PM
Firewing1's Avatar
Firewing1 Offline
Administrator
 
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224
Hey, y is the Win 50 GB? Win sux...
It depends on wt you want to do, fresh install or simply add
I'll assume add - If not, just say so... It'll be easier to re-install... But, if you'd like to keep your exsisting files, then do this:
use partition magic to make a new ext3 partition. (rightclick on free space > new > use all 15 GB free.
then, if it worked OK, type this in a terminal (I've notices sometimes there's an error making ext3. If there is, just delete the errored 15 GB partition, click apply, then after deletion re-create it):
su -
enter password
mkdir /mnt/tempstorage
mount -t ext3 /dev/hda# /mnt/tempstorage
/dev/hda# is the drive number assigned to the new 15 GB /home partition.
cp -r /home/* /mnt/tempstorage
umount /mnt/tempstorage
mv /home /home2
mkdir /home
gedit /etc/fstab

Now, you have just temporairily mounted your to be /home parition, copied the real /home to it moved the real /home to /home2, and unmounted it. The next thing to do is to add this line to /etc/fstab:
LABEL=/home /home ext3 defaults 1 1
once again, # is the drive number assigned to the /home partition.
then, in a terminal, type
e2label /dev/hda# /home
umount -a
mount -a
ls /home

If files are listed, then it worked. Log out and log back in. If it all works and your docs are there, then run this in a terminal:
su -
rm -drf /home2
rmdir /home2

You're done! Now, if you wanna fresh install FC5 when it comes out, all you have to do is "Manual Partitioning" and tell it to re-use the /home partiton, but re-format everything else. Or, just select "Upgrade..."
Firewing1
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
Reply With Quote
  #3  
Old 9th July 2005, 10:06 PM
aero-z's Avatar
aero-z Offline
Registered User
 
Join Date: Jun 2005
Location: Tallinn, Estonia
Age: 27
Posts: 488
what kind of partition I have to make- Logical or Primary? And what label should I use- /home or hda something or Partition Magic names the new partition by itself(hda#) or should I leave the box empty? And if I label it /home then how can I later find out what name it has(hda#)?
ANY ANSWERS!?
__________________
|| Registered Linux User #418296 ||

Last edited by aero-z; 9th July 2005 at 11:01 PM.
Reply With Quote
  #4  
Old 9th July 2005, 11:29 PM
Firewing1's Avatar
Firewing1 Offline
Administrator
 
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224
Labeling doesn't matter for now. Leave it blank. the e2label makes it /home later on. Good question: Make it a primary partition.
Firewing1
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
Reply With Quote
  #5  
Old 9th July 2005, 11:46 PM
aero-z's Avatar
aero-z Offline
Registered User
 
Join Date: Jun 2005
Location: Tallinn, Estonia
Age: 27
Posts: 488
Quote:
Originally Posted by Firewing1
Labeling doesn't matter for now. Leave it blank. the e2label makes it /home later on. Good question: Make it a primary partition.
Firewing1
That's nice. I accidentally made it Logical and now I can't remove it Partition Magic gives me some error 520: not supported filesystem or something. How can I delete it now???
__________________
|| Registered Linux User #418296 ||
Reply With Quote
  #6  
Old 9th July 2005, 11:53 PM
ben s Offline
Registered User
 
Join Date: May 2005
Posts: 66
It doesn't matter if you make it a primary or extended. The type doesn't matter in the least to Linux.
Reply With Quote
  #7  
Old 9th July 2005, 11:56 PM
aero-z's Avatar
aero-z Offline
Registered User
 
Join Date: Jun 2005
Location: Tallinn, Estonia
Age: 27
Posts: 488
Quote:
Originally Posted by ben s
It doesn't matter if you make it a primary or extended. The type doesn't matter in the least to Linux.
My table now:

Device Boot Start End Blocks Id System
/dev/hda1 * 1 6139 49311486 7 HPFS/NTFS
/dev/hda2 8690 9866 9454252+ 83 Linux
/dev/hda3 9867 9964 787185 82 Linux swap / Solaris
/dev/hda4 6140 8689 20482875 f W95 Ext'd (LBA)
/dev/hda5 6140 8689 20482843+ 83 Linux

So I just use hda5?
__________________
|| Registered Linux User #418296 ||
Reply With Quote
  #8  
Old 10th July 2005, 01:02 AM
aero-z's Avatar
aero-z Offline
Registered User
 
Join Date: Jun 2005
Location: Tallinn, Estonia
Age: 27
Posts: 488
So I did like Firewing1 said. I have the files in my /home again but now I can't login with my account anymore. It gives me some error about permissions. I think the access to /home files is denied because I copied and moved them as root. Now I don't know how to give the permissions back
__________________
|| Registered Linux User #418296 ||
Reply With Quote
  #9  
Old 10th July 2005, 01:59 AM
ben s Offline
Registered User
 
Join Date: May 2005
Posts: 66
Log in as root and do the following:

cd /home
for a in `ls` ; do chmod -R $a:$a $a ; done
Reply With Quote
  #10  
Old 10th July 2005, 02:29 AM
aero-z's Avatar
aero-z Offline
Registered User
 
Join Date: Jun 2005
Location: Tallinn, Estonia
Age: 27
Posts: 488
Quote:
Originally Posted by ben s
Log in as root and do the following:

cd /home
for a in `ls` ; do chmod -R $a:$a $a ; done
"code I enter": for a in `ls` ; do chmod -R $a:$a $a ; done

"It gives me this": chmod: invalid mode string: `aerozolic:aerozolic'
chmod: invalid mode string: `lost+found:lost+found'
__________________
|| Registered Linux User #418296 ||
Reply With Quote
  #11  
Old 10th July 2005, 04:59 AM
ben s Offline
Registered User
 
Join Date: May 2005
Posts: 66
Aw, crap. That's supposed to be chown, not chmod. Sorry!
Reply With Quote
  #12  
Old 10th July 2005, 05:07 AM
mjman Offline
Registered User
 
Join Date: Oct 2004
Posts: 286
I made it here to late. I was gonna say, dont do cp -r cause that borks up all the permissions. You should have done cp -a
oh well. You can just do a chown -R I guess
Reply With Quote
  #13  
Old 10th July 2005, 09:55 AM
aero-z's Avatar
aero-z Offline
Registered User
 
Join Date: Jun 2005
Location: Tallinn, Estonia
Age: 27
Posts: 488
Quote:
Originally Posted by ben s
Aw, crap. That's supposed to be chown, not chmod. Sorry!
Thanks, that worked
__________________
|| Registered Linux User #418296 ||
Reply With Quote
  #14  
Old 10th July 2005, 09:11 PM
Firewing1's Avatar
Firewing1 Offline
Administrator
 
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224
Oops... Sorry about that one, aero-z was right. Should have used cp -a not cp -r... my mistake...
Firewing1
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
Reply With Quote
  #15  
Old 10th July 2005, 09:38 PM
aero-z's Avatar
aero-z Offline
Registered User
 
Join Date: Jun 2005
Location: Tallinn, Estonia
Age: 27
Posts: 488
Quote:
Originally Posted by Firewing1
Oops... Sorry about that one, aero-z was right. Should have used cp -a not cp -r... my mistake...
Firewing1
PS Can I later Resize the /home partition from Windows?
__________________
|| Registered Linux User #418296 ||
Reply With Quote
Reply

Tags
add, or home, partition

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
F11 & home partition kraseef Installation and Live Media 18 19th June 2009 06:03 AM
Re-doing /home Partition webserverdude Hardware & Laptops 1 20th June 2006 05:23 PM
Seperating Home partition ckiraly Installation and Live Media 3 25th August 2005 10:46 PM
/home partition vs. /home directory leasure98 Using Fedora 3 28th May 2004 04:39 AM


Current GMT-time: 20:21 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat