LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 10-07-2007, 10:18 AM   #1
pengu
Member
 
Registered: Dec 2005
Location: Canton, GA, USA
Distribution: Ubuntu 7.10, FreeBSD, Debian
Posts: 207

Rep: Reputation: 30
Problem automounting FAT32 Partition


Using openSuse 10.3

When using the Yast Partitioner to assign a mount point to an existing partition (without formating), it gives this error:

Quote:
Error:
It is not allowed to assign a mount point to a device with nonexistent or unknown file system.
The Partition type is "Win95 FAT32"

I could do this fine on 10.2

Also, after starting up i can mount the partition fine from the command line, but i have to do this again every time i reboot

EDIT:
It just occurred to me that I could just add it to fstab.. but it seems the fstab is different for some reason
Code:
/dev/disk/by-id/scsi-SATA_TOSHIBA_MK1032G_665G0518T-part3 /                    ext3       acl,user_xattr        1 1
/dev/disk/by-id/scsi-SATA_TOSHIBA_MK1032G_665G0518T-part5 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

Last edited by pengu; 10-07-2007 at 10:24 AM.
 
Old 10-07-2007, 10:40 AM   #2
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
Try the following link:

http://en.opensuse.org/Access_Your_Windows_Files
 
Old 10-07-2007, 10:51 AM   #3
pengu
Member
 
Registered: Dec 2005
Location: Canton, GA, USA
Distribution: Ubuntu 7.10, FreeBSD, Debian
Posts: 207

Original Poster
Rep: Reputation: 30
hm doesent explain the yast problem but im attempting to use fstab

is "/dev/disk/by-id/scsi-SATA_TOSHIBA_MK1032G_665G0518T-part5" in the suse fstab any different to "hda5"?
 
Old 10-07-2007, 11:34 AM   #4
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
should work the same.

Format for fstab is usually (and I believe opensuse is no different)
{device} {mountpoint} {filesystem type} {mount options} {determine if dump should be used} {determine fsck order}
 
Old 10-07-2007, 12:44 PM   #5
pengu
Member
 
Registered: Dec 2005
Location: Canton, GA, USA
Distribution: Ubuntu 7.10, FreeBSD, Debian
Posts: 207

Original Poster
Rep: Reputation: 30
well i tried adding
Code:
/dev/hda2 /home/jack/Personal vfat utf8,codepage=850,dmask=000,fmask=111,shortname=Personal 0 0
and that didnt work..

now im trying
Code:
/dev/disk/by-id/scsi-SATA_TOSHIBA_MK1032G_665G0518T-part2 /home/jack/Personal vfat utf8,codepage=850,dmask=000,fmask=111,shortname=Personal 0 0
 
Old 10-07-2007, 12:55 PM   #6
pengu
Member
 
Registered: Dec 2005
Location: Canton, GA, USA
Distribution: Ubuntu 7.10, FreeBSD, Debian
Posts: 207

Original Poster
Rep: Reputation: 30
ok, that didnt work either, im out of ideas...
 
Old 10-07-2007, 03:49 PM   #7
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
Quote:
Originally Posted by pengu View Post
Using openSuse 10.3
Also, after starting up i can mount the partition fine from the command line, but i have to do this again every time i reboot
You could always create a startup script to mount the filesystem at boot time.

Other than that I'm afraid I'm also out of suggestions.
 
Old 10-07-2007, 04:28 PM   #8
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
I am really puzzled by the statement that without formatting you could mount a fat32 partition in Suse 10.2 but not 10.3.

I would guess your memory may be faulty.

Suse has already complain to you that
Quote:
Error:
It is not allowed to assign a mount point to a device with nonexistent or unknown file system.
If a partition is not formatted it has no filing structure, no files, no filing index, no mechanism for an operating to read its internal content...................

When a partition is created in Fat32, or any partition type for that matter, only 16 bytes in the partition table is registered. The entire area of the hard disk defined by the partition boundaries is in fact "raw" and "untouched". No operating system in the world can mount it.

The formatting instruction actually creates a boot sector and reserve the front end of the partition for the house keeping and indexing of the filing system, leaving the big rear end for the actual storage of the data. The mounting operating acquires the filing indexing system so that files can be stored and retrieved correctly in the partition.

I known I am not answering your question but just putting the logic forward. If I am wrong then someone will point it out.

Desktop partitioning tools notoriously mix the partition creation and formatting together and users may get confused.
 
Old 10-07-2007, 07:59 PM   #9
pengu
Member
 
Registered: Dec 2005
Location: Canton, GA, USA
Distribution: Ubuntu 7.10, FreeBSD, Debian
Posts: 207

Original Poster
Rep: Reputation: 30
Quote:
If a partition is not formatted it has no filing structure, no files, no filing index, no mechanism for an operating to read its internal content...................
i guess you didnt understand me, the partition is formated already, and has all my personal files on it. When I said "without formating" i guess i meant "without RE-formating"

besides, I can mount the file fine from the command line after startup.


disilusionist, thanks for the help, yeah i thought of a start up script, but mounting the partition requires root privileges... do you know how i would get that to work?
 
Old 10-07-2007, 08:05 PM   #10
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
To get root privilege in OpenSuse at terminal
Code:
su
then supply the password. The prompt will change slightly signifying you are in root.
 
Old 10-07-2007, 08:47 PM   #11
pengu
Member
 
Registered: Dec 2005
Location: Canton, GA, USA
Distribution: Ubuntu 7.10, FreeBSD, Debian
Posts: 207

Original Poster
Rep: Reputation: 30
saikee, thanks for the help, but i think you need to read better... im asking about making a startup script to mount the partition.

putting "sudo mount -t vfat /dev/sda2 /home/jack/Personal" into a startup script is not going to do anything...
 
Old 10-08-2007, 12:15 AM   #12
Disillusionist
Senior Member
 
Registered: Aug 2004
Location: England
Distribution: Ubuntu
Posts: 1,039

Rep: Reputation: 98
I was talking about system startup scripts which run as root. as opposed to logon scripts which run as the user who is logging on.

go to /etc/init.d and create a new file, example:

Code:
#!/bin/sh
# Mount/Umount fat filesystem
#
. /lib/lsb/init-functions

case "$1" in
start) log_daemon_msg "Mounting fat filesystem" "Personal"
       # code to mount filesystem here
       log_end_msg $?
       ;;
stop)  log_daemon_msg "Unmounting fat filesystem" "Personal"
       # code to umount filesystem here
       log_end_msg $?
       ;;
restart) log_daemon_msg "Remounting fat filesystem" "Personal"
         # code to umount filesystem here
         # code to mount filesystem here
         log_end_msg $?
         ;;
*)       log_action_msg "Usage: /etc/init.d/Personal {start|stop|restart}"
         exit 2
         ;;
esac
exit 0
Then create a soft link to it from the runlevel you want to start it in:

cd /etc/rc2.d
ln -s ../init.d/Personal S99Personal

Last edited by Disillusionist; 10-08-2007 at 12:43 AM. Reason: Incomplete
 
Old 10-08-2007, 04:44 AM   #13
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
What's wrong with adding the red line in fstab?
Code:
/dev/disk/by-id/scsi-SATA_TOSHIBA_MK1032G_665G0518T-part3 /                    ext3       acl,user_xattr        1 1
/dev/disk/by-id/scsi-SATA_TOSHIBA_MK1032G_665G0518T-part5 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/hda5            /mnt/sda5            fat32      defaults              0 0
You need to create the directory /mnt/sda5 first though, using "nkdir /mnt/sda5" command.

After kernel 2.6.20 and newer kernels when all disks are controlled by libATA driver OpenSuse "likes" to use the "by-id" notation for the hard disk partitions because Pata disk hda, hdb, hdc and hdd names are no longer supported, although during the interim period some kernels may have been arranged to use the Pata disk names still. The standard device name in Linux is still usable. Ubuntu uses the "by-uuid" method. You can see all of them and how they are related in the /dev directory. To a kernel you can use any of the "by-id", "by-uuid", "by-label"...names. It doesn't matter to its operation. You can mix them as well.

To find out if Suse calls your partition hda5 or sda5 just type in a root terminal
Code:
fdisk -l
 
  


Reply



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
where to specify fat32 AUTOmounting options in openSUSE cspeter Linux - Hardware 3 09-04-2007 11:15 AM
fat32 or ext2 partition problem mihalisla Linux - Newbie 7 08-16-2006 07:30 PM
Problem with Fat32 partition rm200471 SUSE / openSUSE 3 04-05-2006 05:14 AM
problem with FAT32 shared partition dping Linux - Newbie 5 01-12-2006 01:33 PM
automounting fat32 drive with correct permissions johannlo Linux - General 1 07-05-2005 08:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 04:14 AM.

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