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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-14-2003, 01:52 PM
|
#1
|
LQ Newbie
Registered: Oct 2003
Location: Colchester
Distribution: Red Hat 9
Posts: 16
Rep:
|
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
|
|
|
10-14-2003, 01:58 PM
|
#2
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
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.
|
|
|
10-14-2003, 01:59 PM
|
#3
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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.
|
|
|
10-14-2003, 02:06 PM
|
#4
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
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.
|
|
|
10-14-2003, 02:08 PM
|
#5
|
Senior Member
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Rep:
|
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.
|
|
|
10-14-2003, 02:12 PM
|
#6
|
Senior Member
Registered: Apr 2002
Location: Arbovale, WV
Distribution: Slackware
Posts: 1,761
Rep:
|
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.
|
|
|
10-14-2003, 03:18 PM
|
#7
|
LQ Newbie
Registered: Oct 2003
Location: Colchester
Distribution: Red Hat 9
Posts: 16
Original Poster
Rep:
|
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
|
|
|
10-14-2003, 03:59 PM
|
#8
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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.
|
|
|
10-14-2003, 04:18 PM
|
#9
|
Member
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 12:23 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|