LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mounting HDDs (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-hdds-227764/)

ArneHB 09-07-2004 12:07 PM

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 :)..

linux_terror 09-07-2004 12:33 PM

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...

Code:

mkdir /mnt/wins_fat32
then add an entry like this into your /etc/fstab
Code:

/dev/hdb1      /mnt/wins_fat32        vfat        defaults      0 0
then do
Code:

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...
Code:

mkdir /mnt/wins_ntfs
then add an entry like this into your /etc/fstab
Code:

/dev/hdb2    /mnt/wins_ntfs        ntfs        defaults      0 0
then do
Code:

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 ...
Code:

mkdir /mnt/linux_ext3
then add this to /etc/fstab..

Code:

/dev/hdb3    /mnt/linux_ext3        ext3        defaults      0 0
and then
Code:

mount /mnt/linux_ext3
if you wanted to mount it as /usr you'd do it like this...

Code:

/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...
linux_terror

amf57 09-07-2004 07:19 PM

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.

salahuddin_66 09-07-2004 08:33 PM

here's my /etc/fstab

Code:

/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


rm6990 09-08-2004 03:32 AM

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 :p . If not, reboot with the live CD and undo your changes.


All times are GMT -5. The time now is 12:41 PM.