LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-14-2003, 01:52 PM   #1
gag
LQ Newbie
 
Registered: Oct 2003
Location: Colchester
Distribution: Red Hat 9
Posts: 16

Rep: Reputation: 0
two HDDs


Hi everyone, this is my first posting.
My question concerns hard drives. I have two harddrives, a master and a slave in Primary IDE. Because they are removable drives in caddies, I will be able to install Red Hat 9 on its own Hard disk (when it arrives from Amazon.com!). My slave is a FAT32 (since I'm running Win98 ath the moment) and is full of data which I will need to access both on linux and Win (until I can persuade the family that this is the right way!). With its own Hdd, does linux still need to create more than one partition and will it be possible to view my fat32 disk on linux?
Thanks
 
Old 10-14-2003, 01:58 PM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
You need atleast a / (root) and swap partition for linux. Once you create these and install Linux. You can make an directory in /mnt called win98, or whatever you like. Then you mount the FAT32 partiton in that directory. Then you will be able to read/write to that partition. If you where to upgrade to XP and use the NTFS filesystem, you will be only able to read the file, you could write but it is not stable and you may loose data.
 
Old 10-14-2003, 01:59 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Welcome to LQ.

Linux will be need to create it own partitions - I would usually use at least:
/boot
/
/home
/usr
/var
swap

Yes it will be able to read your fat32 disk - just mount it as a vfat partition in linux.
 
Old 10-14-2003, 02:06 PM   #4
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
If you go with the partition layout that David Ross suggests (which is advisible), make the sizes like this.

/boot = 50 mb
/ = 500 mb to 750 mb
/usr = 3 gigs if you want to install a lot of stuff
/var = 500 mb should be plenty for a home system
swap = 512 mb
/home = The rest of the drive. This is where all user data is.
 
Old 10-14-2003, 02:08 PM   #5
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Yes looking inside the Windows thing should be no problem at all. You may have to edit the file fstab, /etc/fstab ??, i.e. file system table. This will be quite easy.

Windows will only work if it thinks it is on the first partition of the first hard drive, so if you put it on the slave you will have to trick it into thinking that - probably using the grub bootloader. There is a HOWTO about doing this, you use grubs 'map' commands.

I think Linux can be put on a single partition, but it is unusual to do so - hang on you will probably need a separate swap partition. If you have a free hard disk there is no big problem about just shoving partitions onto it, it is nothing to worry about.
 
Old 10-14-2003, 02:12 PM   #6
tangle
Senior Member
 
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761

Rep: Reputation: 78
Here is what you need to put in your /etc/fstab.

/dev/hda1 /mnt/win98 vfat uid=500,gid=500,umask=000,exec,dev,suid,rw 1 0

If your pimary hard drive is where Windows is installed and the mount point /mnt/win98 is where you want the Windows partition mounted.
 
Old 10-14-2003, 03:18 PM   #7
gag
LQ Newbie
 
Registered: Oct 2003
Location: Colchester
Distribution: Red Hat 9
Posts: 16

Original Poster
Rep: Reputation: 0
Wow this is a happening site! MAny thanks for all the prompt answers. One thing though, apart from the boot and swapfiles is there a particular reason why the /usr/, /home/ etc directories reside in their own partitions?
Thanks again
 
Old 10-14-2003, 03:59 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
IMHO - Puting /usr on its own should help programs start faster as programs will not be fragmented and puting /home on its own makes it easier to upgrade a system since you can leave you data partition (primarly /home) untouched and format all your other partitions.
 
Old 10-14-2003, 04:18 PM   #9
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
Safety and security are probably the two main reasons for using a multi-partition scheme.

As David said, having /home on its own partition allows you to easily preserve user data during upgrades or reinstalls. A similar benefit appies in general- with multiple partitions, if one filesystem gets corrupt, you might lose the data on that partition, but the data on the other partitions will most likely be intact.

Also, you can lose access to a partition if it gets too full. This can happen with /var for example, if your log files get out of hand. Hackers have been known to use scripts which do this on purpose to choke your system. Of couse, if /var is just a subdirectory under /, this means that your entire / partition will get full, which will most likely crash the system, possibly making it unbootable.
 
  


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
which two HDDs should i buy? jc_firestorm Linux - Hardware 1 04-24-2005 02:40 AM
permissions and external hdds DJOtaku Linux - Hardware 1 02-04-2005 06:28 PM
Mounting HDDs ArneHB Linux - Newbie 4 09-08-2004 04:32 AM
backing up hdds over the network mehesque Linux - Networking 1 01-09-2004 12:24 PM
only root can see other HDDs? dondon Linux - Newbie 4 01-06-2004 10:54 AM

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

All times are GMT -5. The time now is 12:23 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