LinuxQuestions.org
Help answer threads with 0 replies.
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 07-21-2004, 03:37 PM   #1
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
mount points and partition clarification


Hey all,
I have multi-boot with RH9/FC2/Winxp. Here's my disk geometry

/dev/hda - winxp

/dev/hdb1 - boot - 100 MB
/dev/hdb2 - "/" for RH9 - 5GB
/dev/hdb3 - Swap - 1GB
/dev/hdb4 - extended
/dev/hdb5 - "/" for FC2 - 5GB

hdb is 40 GB.

I have a question regarding mount points.
I want to fill up the empty space by making partitions for /usr, /var, /opt, /home.

since the "/" directories of respective distros already have /usr , /opt , /var and /home directories, does this mean that contents in /usr, /opt, /var, /home will be visible in newly created respective partitions.

One more question, I want to install slackware 10. I believe slackware recognizes ext3 and reiserfs. I'm going to create partition from RH9. I would like to use reiserfs. Is that possible or i've to stick with ext2.

I once installed slackware 10 (ext2 fs) few days back but then i had to format the whole harddrive as my fs corrupted due to power failure.

Any pointers???
Thanks in advance
 
Old 07-21-2004, 03:55 PM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
First...why did you use ext2 with slackware 10? It gives you the option to use both ReiserFS and ext2...either would have been better!

Second...if you create a new /usr partition you will have to copy all the files over from your current /usr directory for them to be usable. You will also have to put an entry in /etc/fstab for the new partition and mount point.

Third...no, it's perfectly fine for partitions to use different filesystems to each other. On my old box I used ext3 on / and reiserfs on /home.
 
Old 07-21-2004, 03:59 PM   #3
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Original Poster
Rep: Reputation: 62
That enlightens me!!! I'll try out reiserfs for slackware 10.

Thanks,
 
Old 07-21-2004, 04:03 PM   #4
crusher
LQ Newbie
 
Registered: Jul 2004
Location: Dublin / Ireland
Distribution: Suse Linux 9.0
Posts: 5

Rep: Reputation: 0
Smile Re: mount points and partition clarification

Quote:
Originally posted by tuxrules
Hey all,
I have multi-boot with RH9/FC2/Winxp. Here's my disk geometry

/dev/hda - winxp

/dev/hdb1 - boot - 100 MB
/dev/hdb2 - "/" for RH9 - 5GB
/dev/hdb3 - Swap - 1GB
/dev/hdb4 - extended
/dev/hdb5 - "/" for FC2 - 5GB

hdb is 40 GB.

I have a question regarding mount points.
I want to fill up the empty space by making partitions for /usr, /var, /opt, /home.

since the "/" directories of respective distros already have /usr , /opt , /var and /home directories, does this mean that contents in /usr, /opt, /var, /home will be visible in newly created respective partitions.

One more question, I want to install slackware 10. I believe slackware recognizes ext3 and reiserfs. I'm going to create partition from RH9. I would like to use reiserfs. Is that possible or i've to stick with ext2.

I once installed slackware 10 (ext2 fs) few days back but then i had to format the whole harddrive as my fs corrupted due to power failure.

Any pointers???
Thanks in advance

Quote:
OK.... I would suggest not to make such a lot of separate mount points. Keep it easy. I would just create a separate mount point for /Home and maybe for /var. The rest I would keep under /.

Anyway back to your question:
If you mount a partition to a certain directory, you would see only content of the mounted volume.
It doesn't matter even if you have already a directory under / (e.g. /var) with stuff in it and now you mount your partition /dev/hdb4 to /var, you would see only the content of /dev/hdb4. This means you can mount everything to any directory.

The other way around means, if you have during the installation /dev/hdb4 mounted on /var and after installation you unmount /dev/hdb4 you just leave an empty directory /var on your / partition. It's Linux, everything is just a question of virtual and logical devices .

Regarding your Partition format (ext2 / reiser)
As far as I know you have to stick with this format or you have to format the partition new. Make a backup and reformat the partition with reiserfs. I could imagine that there are tools around, which can transform ext2 into reiser, but I am not sure and never have thought about something like this :-)

I hope I could help a bit

Regards

Crusher
 
Old 07-21-2004, 04:15 PM   #5
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
The tool to format a disk to reiserfs is mkreiserfs (as root). It will erase all data though.
 
Old 07-21-2004, 04:33 PM   #6
crusher
LQ Newbie
 
Registered: Jul 2004
Location: Dublin / Ireland
Distribution: Suse Linux 9.0
Posts: 5

Rep: Reputation: 0
Quote:
Originally posted by Komakino
The tool to format a disk to reiserfs is mkreiserfs (as root). It wil erase all data though.
Thanks ... I know :-) But I was thinking about a tool, which maybe can transfer ext2 into reiserfs. I am not sure if something like this exists.
 
Old 07-21-2004, 04:35 PM   #7
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally posted by crusher
Thanks ... I know :-) But I was thinking about a tool, which maybe can transfer ext2 into reiserfs. I am not sure if something like this exists.
I don't think so, but it is possible to convert a partition to ext3 from ext2:
tune2fs -j /dev/xxx

xxx being the partition you want to convert. It only adds a journal, keeping data intact.
 
Old 07-21-2004, 04:43 PM   #8
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Original Poster
Rep: Reputation: 62
I've reformatted my harddrive several times for various reasons and to answer all your questions - I would like to run a webserver on my linux. I ran a webserver before my fs got corrupt (I only had important data in /home which i backup up). I would also like to run a ftp server occasionally and would run shoutcast audio streaming server.

Now coming to crusher's post...
My earlier config was everything under "/" - which was pretty then (about 25 GB). Now I read somewhere that if I have a small "/" size (as it it the case with me right now, 5 GB and with packages installed only about 1.5 GB free) and I'm running a webserver my logs could fill in the free space quickly. I also read a lot of places about making partition for various important directories like /var, /usr etc. My idea is to make /var, /usr, /home, /opt only that I might install more softwares in future and I dont want to run out of space in "/" and then resize the partitions.

For Komakino's tip,
i'll be using parted to make reiserfs partition for slackware 10
#parted -i /dev/hdb print
take start and end blocks from above and then

#parted -i /dev/hdb mkpartfs logical reiserfs start end

I think this should do.
Thanks,
tuxRULES!
 
Old 07-21-2004, 05:16 PM   #9
crusher
LQ Newbie
 
Registered: Jul 2004
Location: Dublin / Ireland
Distribution: Suse Linux 9.0
Posts: 5

Rep: Reputation: 0
Quote:
Originally posted by tuxrules
I've reformatted my harddrive several times for various reasons and to answer all your questions - I would like to run a webserver on my linux. I ran a webserver before my fs got corrupt (I only had important data in /home which i backup up). I would also like to run a ftp server occasionally and would run shoutcast audio streaming server.

Now coming to crusher's post...
My earlier config was everything under "/" - which was pretty then (about 25 GB). Now I read somewhere that if I have a small "/" size (as it it the case with me right now, 5 GB and with packages installed only about 1.5 GB free) and I'm running a webserver my logs could fill in the free space quickly. I also read a lot of places about making partition for various important directories like /var, /usr etc. My idea is to make /var, /usr, /home, /opt only that I might install more softwares in future and I dont want to run out of space in "/" and then resize the partitions.

For Komakino's tip,
i'll be using parted to make reiserfs partition for slackware 10
#parted -i /dev/hdb print
take start and end blocks from above and then

#parted -i /dev/hdb mkpartfs logical reiserfs start end

I think this should do.
Thanks,
tuxRULES!
Sounds OK. But just remember about logical volume manager (LVM) for linux. With this you are able to span multiple volumes across several hard drives. It could be handy for later upgrading :-)

Here a link:
http://tldp.org/HOWTO/LVM-HOWTO/

Just have a look. You can even resize your partitions without any data loss.

LVM is great :-)

Crusher
 
  


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
Partition formatted, mount points, data lost eneko Linux - Newbie 7 11-16-2003 08:46 PM
slackware book clarification - 'grafted' partition itsjustme Slackware 5 06-30-2003 03:12 PM
partition mount points fireal Linux - Newbie 10 06-28-2003 03:05 AM
SCRIPT: check if auto-mount mount-points are still mounted markus1982 Linux - Software 0 05-25-2003 05:48 AM
Mount Points? Mr_Floppy4 Linux - General 2 10-14-2002 10:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:57 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
Open Source Consulting | Domain Registration