LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   60GB Fat32 drive mounting Problem (https://www.linuxquestions.org/questions/linux-general-1/60gb-fat32-drive-mounting-problem-83453/)

mobassir 08-19-2003 06:31 AM

60GB Fat32 drive mounting Problem
 
i want to mount 60GB seagate harddisk formated as Fat32 filessytem with seagate diskmanager and connected to adapetc raid card.
i was working fine and mounted as NTFS but now i want to mount is as fat32 drive which is hardware mirror to another 60GB segate driver also formated as Fat32 filessytem with seagate diskmanager and connected to adapetc raid card
there is not any problem about mirroing or raid ,
juts tell me how i can mount it
with fdisk -l command give following paramets

Disk /dev/hde: 60.0 GB, 60022480896 bytes
16 heads, 63 sectors/track, 116301 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hde1 1 116301 58615672+ 83 Linux

and i amd using this following command
mount /dev/hde1 /mnt/Data-Drive -t vfat -r -o umask=0222

with NTFS it was working fine with this command
mount /dev/hde1 /mnt/Data-Drive -t ntfs -r -o umask=0222

and please tell me its auot mount command for fstab

thanks

michaelk 08-19-2003 10:21 AM

Re: 60GB Fat32 drive mounting Problem
 
Quote:

Originally posted by mobassir
Disk /dev/hde: 60.0 GB, 60022480896 bytes
16 heads, 63 sectors/track, 116301 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hde1 1 116301 58615672+ 83 Linux

and i amd using this following command
mount /dev/hde1 /mnt/Data-Drive -t vfat -r -o umask=0222

The partition filesystem type is linux. If you want it as a FAT32 fyou will need to use fdisk to change it to FAT32 filesystem type and format it.

Skyline 08-19-2003 10:32 AM

To mount a FAT32 filesystem automatically on Boot-up, put an entry at the bottom of your /etc/fstab file on a new line -

/dev/hde1 /mnt/Data-Drive vfat defaults,umask=000 0 0

(defaults includes the auto option for automatic mounting on boot up


To Temporarily mount a FAT32 filesystem from the command line – su to Root user - then type:

mount –t vfat –o rw /dev/hde1 /mnt/Data-Drive

mobassir 08-20-2003 02:41 AM

Device Boot Start End Blocks Id System
/dev/hde1 1 116301 58615672+ 83 Linux

yes File system id is 83 , but how i format this drive by win98 disk and it should be fat32, ok any way , i want to use it as fat32 file system. i am using fdisk, should di fdisk /dev/hde1 or fdisk /dev/hde for changing id of drive, i want only 1 partitions and please see following information with thses 2 commands


1- fdisk /dev/hde1 (its view of partition table)

Disk /dev/hde1: 60.0 GB, 60022448640 bytes
16 heads, 63 sectors/track, 116300 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

Device Boot Start End Blocks Id System
/dev/hde1p1 ? 540117 1080622 272414512+ 64 Novell Netware 286
Partition 1 does not end on cylinder boundary.
/dev/hde1p2 ? 1319628 1854326 269488144 20 Unknown
Partition 2 does not end on cylinder boundary.
/dev/hde1p3 ? 534712 1921977 699181456 53 OnTrack DM6 Aux3
Partition 3 does not end on cylinder boundary.
/dev/hde1p4 ? 1383560 1383581 10668+ 49 Unknown
Partition 4 does not end on cylinder boundary.


2- fdisk /dev/hde

The number of cylinders for this disk is set to 116301.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

after changing id should i format partition if yes then tell me how but dont forget i want fat32 filesystem

tyanks

mobassir 08-20-2003 05:32 AM

ok

i convert id of hde

Command (m for help): p
Device Boot Start End Blocks Id System
/dev/hde1 1 116301 58615672+ b Win95 FAT32

then use following command recomend by SKY line

mount –t vfat –o rw /dev/hde1 /mnt/Data-Drive

giving this massege

[root@Omar-Pc root]# mount –t vfat –o rw /dev/hde1 /mnt/Data-Drive
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options].
For many more details, say man 8 mount

i think some thing wrong with command format

waiting for reply

michaelk 08-20-2003 08:54 AM

Unless you had a typo it I don't see anything wrong.

How did you format the partition?

mobassir 08-21-2003 05:30 AM

hello
with this following command drive has sucessfully mount

mount /dev/hde1 /mnt/Data-Drive -t vfat -r -o umask=022

but when i tried to write any thig or want to ceart new folder it gives read only error.
i just chang its id 83 to b (win95 fat32)
whats wrong now , may its requier format i dont know in microsoft aftre every creation of new partition formating is requied, in linux i dont know even proper way of formating for specifid id

waiting for reply

mobassir 08-21-2003 07:32 AM

finaly i used this command get help from man mount
now i can read and write
mount /dev/hde1 /mnt/temp -t vfat -w -o umask=02
now what command should i type in fstab

any one know how can unmount any mount drive , mean

thanks

michaelk 08-21-2003 08:27 AM

To unmount drive:
umount /mnt/temp
or
umount /dev/hde1

/etc/fstab

/dev/hde1 /mnt/temp vfat user,umask=000 0 0

Will mount hde1 mount on boot.
Will let any user read / write and mount / umount.

See man pages for fstab and mount for additional info.

mobassir 08-22-2003 02:50 AM

i used both commands, and get following responce

[root@Omar-Pc root]# unmount /dev/hde1
bash: unmount: command not found

[root@Omar-Pc root]# unmount /mnt/Data-Drive
bash: unmount: command not found

, is it any methord any new entry start work without restart in fstab
i am using following command in fstab, # sign is ok for remark and what is diffirence umask=000 0 and umast=0222

# /dev/hde1 /mnt/Data-Drive vfat defaults,umask=000 0 0
# /dev/hde1 /mnt/Data-Drive -t vfat -w -o umask=0222
/dev/hde1 /mnt/Data-Drive vfat user,umask=000 0 0

thanks again for all

leonscape 08-22-2003 03:00 AM

The command is umount not unmount theirs no -n- after the u, this caught me out for a while.

mobassir 08-25-2003 03:21 AM

Yes u are right command is umount.
I have done almost all issue regarding my raid and mounting problem with 60GB hard disk connected with card.

Now both 60 GB hard dirves are connected with Adaptec raid 1200A , and hardware mirror has eshtablished (stiil have to check that working or not) .
Drives are formated with Fat32 filesystem , ID type c in fdisk.
Auto mount with this following entry in /etc/fstab
/dev/hde1 /mnt/Data-Drive vfat user,umask=000 0 0

Thansk and Regard


All times are GMT -5. The time now is 11:57 AM.