Find the answer to your Linux question:
Results 1 to 7 of 7
here is the deal.. i have dual boot windows xp and suse 10.1... i just i just created one fat32 partition but suse won't recognize it. i really dont feel ...
  1. #1
    Just Joined!
    Join Date
    Oct 2006
    Posts
    3

    mount fat32

    here is the deal.. i have dual boot windows xp and suse 10.1... i just i just created one fat32 partition but suse won't recognize it. i really dont feel like reinstalling just so suse can recognize the partition.
    this partition is not even listed in fstab... could someone please tell me what i need to add to fstab so linux mounts it automatically? thanks!

  2. #2
    Linux Engineer
    Join Date
    Oct 2004
    Location
    Vancouver
    Posts
    1,366
    ok, lets assume that your device name is /dev/hda2 for the fat32 hdd. First you need to make a mountpoint, a directory from which you will access the drive. If it is your windows drive then something like this will do

    Code:
    mkdir /mnt/windows
    You may have to use sudo or do this as root if you get an error.

    Then to mount the hard disk
    Code:
    mount -t vfat /dev/hda2 /mnt/windows
    Then you simply go to the /mnt/windows directory to see the files on that disk or partition.

    If you want the drive to automatically mount to that directory upon boot, then add this to your /etc/fstab file, either as root or by opening your editor o'choice with sudo
    Code:
    /dev/hda2     /mnt/windows     vfat     defaults,auto    0  2
    Should work like a charm.

    P.S., man fstab, to read more about its options, as the above are pretty generalized.

  3. #3
    Just Joined!
    Join Date
    Oct 2006
    Posts
    3
    ok but here is the thing that i didn't tell you. i have two hdds.. one where winxp and linux are install and the other just for files... well the the one that winxp and linux are installed is where that extra fat32 comes in... here is the fstab(a lil messy maybe)

    /dev/sda6 / reiserfs acl,user_xattr 1 1
    /dev/sda7 /home reiserfs acl,user_xattr 1 2
    /dev/sda1 /windows/C ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
    /dev/sda2 /windows/D ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
    /dev/sdb1 /windows/E ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
    /dev/sda5 swap swap defaults 0 0
    proc /proc proc defaults 0 0
    sysfs /sys sysfs noauto 0 0
    debugfs /sys/kernel/debug debugfs noauto 0 0
    usbfs /proc/bus/usb usbfs noauto 0 0
    devpts /dev/pts devpts mode=0620,gid=5 0 0
    /dev/fd0 /media/floppy auto noauto,user,sync 0 0


    i'm getting errors with what you said above

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    is your second disk SATA ? replace hda2 with sda2.
    post the out put of 'fdisk -l' command. you must be root to execute it.




    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Oct 2006
    Posts
    3
    ok here it is :



    Disk /dev/sda: 250.0 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sda1 1 11433 91835541 7 HPFS/NTFS
    /dev/sda2 * 16686 24462 62468752+ 7 HPFS/NTFS
    /dev/sda3 24463 30401 47705017+ f W95 Ext'd (LBA)
    /dev/sda4 11434 16685 42186690 c W95 FAT32 (LBA)
    /dev/sda5 24463 24656 1558273+ 82 Linux swap / Solaris
    /dev/sda6 24657 26371 13775706 83 Linux
    /dev/sda7 26372 30401 32370943+ 83 Linux

    Partition table entries are not in disk order

    Disk /dev/sdb: 400.0 GB, 400088457216 bytes
    255 heads, 63 sectors/track, 48641 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sdb1 1 48641 390708801 7 HPFS/NTFS



    i did mount /dev/sda4 /mnt/windows.. and the dir is there but i cant write to it.. i probably did it wrong? can i somehow edit so i can write to it ?

  6. #6
    Linux Enthusiast
    Join Date
    Jul 2005
    Location
    Maryland
    Posts
    521
    try it with read/write option:
    Code:
    mount -t vfat -rw /dev/sda4 /mnt/windows

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Quote Originally Posted by gusvlaski
    i did mount /dev/sda4 /mnt/windows.. and the dir is there but i cant write to it.. i probably did it wrong? can i somehow edit so i can write to it ?
    in fstab file, add this line ...

    Code:
    /dev/sda4 /mnt/windows     vfat       rw,defaults,umask=0 0 0



    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...