Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-07-2004, 12:07 PM   #1
LQ Newbie
Registered: Sep 2004
Posts: 3

Rep: Reputation: 0
Mounting HDDs

Ok I currently got 2 windows partition, one fat32 and one NTFS... And I just made another linux partition in ext3 so i got two ext3 now.. So how do I mount my windows partitions and the ext3 linux partition i just made.. I want to use the new ext3 partition i made as a usr partition..

- Thanks ..
Old 09-07-2004, 12:33 PM   #2
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
starting with the wins fat32...
Im going to post this as though the fat32 filesystem is on partition hdb1, and you want to mount it to /mnt/wins_fat32...

mkdir /mnt/wins_fat32
then add an entry like this into your /etc/fstab
/dev/hdb1      /mnt/wins_fat32        vfat        defaults      0 0
then do
mount /mnt/wins_fat32
I'll assume in the next one that your ntfs partition is hdb2, and you want to mount it to /mnt/wins_ntfs.You will probably at least be able to get read support like this...
mkdir /mnt/wins_ntfs
then add an entry like this into your /etc/fstab
/dev/hdb2     /mnt/wins_ntfs        ntfs        defaults      0 0
then do
mount /mnt/wins_ntfs
if you get "fs ntfs not supported by kernel" then you will most likely have to recompile your kernel with ntfs support.

On to ext3...

Im not sure of the implications of mounting that partition as /usr if you already have a /usr filesystem on the / filesystem. I don't know if you want to even try.
here's how you'd mount it as just extra storage. I am assuming that the ext3 filesystem is on the hdb3 partition, and you want to mount it to /mnt/linux_ext3 ...
mkdir /mnt/linux_ext3
then add this to /etc/fstab..

/dev/hdb3     /mnt/linux_ext3        ext3        defaults      0 0
and then
mount /mnt/linux_ext3
if you wanted to mount it as /usr you'd do it like this...

/dev/hdb3     /usr        ext3        defaults      0 0
but like I say, I do NOT know what this will do to your box if you already have a /usr fs on /
maybe someone else could shed a bit more light on that for ya.
hope this helps...

Last edited by linux_terror; 09-07-2004 at 12:35 PM.
Old 09-07-2004, 07:19 PM   #3
LQ Newbie
Registered: Feb 2003
Posts: 22

Rep: Reputation: 15
If u mount that file system (ext3) on /usr you will run into problems. You already have a directory /usr that has a lot of commands, libraries and such in it. Mounting your new filesystem to /usr will bury the use of those commands and such under the new file system. Your system will be useless when that is mounted. You should backup what is in /usr now, then mount then restore that backup to the new /usr. (If you can) I am thinking mounting an empty filesystem over /usr could quite possibly be the last thing you ever do on that system until you reboot.
Old 09-07-2004, 08:33 PM   #4
Registered: Jan 2004
Location: Dhaka, Bangladesh
Distribution: Debian, Gentoo
Posts: 283

Rep: Reputation: 30
here's my /etc/fstab

/dev/hda6        swap             swap        defaults         0   0
/dev/hda7        /                reiserfs    defaults         1   1
/dev/hda1        /mnt/drives/c    vfat        noauto,users,unmask=022         0   0
/dev/hda5        /mnt/drives/d    vfat        noauto,users,unmask=022         0   0
/dev/cdrom       /mnt/cdrom       iso9660     noauto,users,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,users     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0

Last edited by salahuddin_66; 09-07-2004 at 08:35 PM.
Old 09-08-2004, 03:32 AM   #5
Registered: Aug 2004
Location: Canada
Distribution: SUSE 9.1 Pro and Debian Testing on Server
Posts: 469

Rep: Reputation: 30
Use System Rescue CD or any other live CD and move the stuff from the original /usr over to the new partition. Then edit the fstab file on the root partition to add support for the /usr partition. Then reboot. Hopefully it works . If not, reboot with the live CD and undo your changes.


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 01:40 AM
permissions and external hdds DJOtaku Linux - Hardware 1 02-04-2005 05:28 PM
only root can see other HDDs? dondon Linux - Newbie 4 01-06-2004 09:54 AM
two HDDs gag Linux - Newbie 8 10-14-2003 03:18 PM
Mounting 2nd and subsequent HDDs confused_bof Linux - Newbie 3 09-12-2003 06:12 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:39 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration