LinuxQuestions.org
Review your favorite Linux distribution.
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 11-11-2006, 05:38 AM   #1
riba43
Member
 
Registered: Feb 2005
Location: Slovenia
Distribution: suse11.0
Posts: 749

Rep: Reputation: 31
Angry where are my NTFS c: and FAT32 D: drives


I have made a new install of SuSE 10.1. Now I cant access my HDDs. There is no trace of them in fstab. I have Win xp pro as NTFS C drive and a separate disk D as FAT32 drive.

What to do (what to enter into fstab?). If that is all.

 
Old 11-11-2006, 05:58 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,209

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
To access these drives, you will need to do more than update fstab. The first thing to do is make a mount point, for each drive. This is a folder where you want to mount these file systems into your linux file system. This needs to be done as root, using the mkdir command. Open a console, and use the su command to get root privledges. Navigate to the point where you want to add the drives. The more or less common point is the /mnt directory. run the mkdir command and add a folder, such as win_c and win_d. You can call them anything you want. Now you can edit /etc/fstab and add lines to fstab, one for each partition. Here is what it looks like on my system.

Quote:
/dev/hda1 /mnt/win_c vfat umask=0,iocharset=iso8859-15,codepage=850 0 0
/dev/hda5 /mnt/win_d vfat umask=0,iocharset=iso8859-15,codepage=850 0 0
You need to determine the what C and D are. On my system /dev/hda1 is C and /dev/hda5 is D. You can figure this out if you open a console and run a 'df' command. It will list all the partitions. hda1 is the primary partition on the first hard drive. hda5 is the first extended partition on the first hard drive. Also the field after win_c will be different on your C drive. Yours is NTFS, not vfat ( fat32 ).

Once the entries are made, save the file and run the mount command. With a mount point of /mnt/win_c the command would be 'mount /mnt/win_c' ( without the quotes ).

Remember, NTFS is read only in linux. You can read and write to the fat32 partition.
 
Old 11-11-2006, 05:58 AM   #3
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Check the output from the typed command; fdisk -l (that is the lower case letter 'L')

Then add the line entries into /etc/fstab as appropriate, make sure you create the mountponts first;

Examples;
mkdir /media/WindowsC
mkdir /media/WindowsD
Code:
/dev/hda1    /media/WindowsC   ntfs   noauto,users,ro,umask=0 0 0
/dev/hda1    /media/WindowsD   vfat   noauto,users,ro,umask=0 0 0
See both the typed commands 'man mount' and 'man fstab' for the details and additional options/help.
 
Old 11-11-2006, 02:55 PM   #4
riba43
Member
 
Registered: Feb 2005
Location: Slovenia
Distribution: suse11.0
Posts: 749

Original Poster
Rep: Reputation: 31
Hi,
I sucesfilly repaired the system by booting with DVD> install> repair. All mount point were found and fixed and nov I can see and use my fat32 disc and my NTFS disc too.
Interesting thing is that after automatic repair, I got an error window, saying that the process can not be finished, due to some error in the system ( I think it is something with the version of the kernel).

This now is my fdisk -l status:

riba43:/home/bgorjup # fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Enote = cylinders od 16065 x 512 = 8225280 bajtov

Naprava Boot Start End Blocks Id System
/dev/hda1 * 1 2553 20506941 7 HPFS/NTFS
/dev/hda2 2554 9729 57641220 f W95 Ext'd (LBA)
/dev/hda5 2554 2754 1614501 82 Linux swap / Solaris
/dev/hda6 2755 4455 13663251 83 Linux
/dev/hda7 4456 9729 42363373+ 83 Linux

Disk /dev/hdb: 40.0 GB, 40027029504 bytes
255 heads, 63 sectors/track, 4866 cylinders
Enote = cylinders od 16065 x 512 = 8225280 bajtov

Naprava Boot Start End Blocks Id System
/dev/hdb1 * 1 4866 39086113+ c W95 FAT32 (LBA)
riba43:/home/bgorjup #
 
Old 11-12-2006, 04:24 AM   #5
riba43
Member
 
Registered: Feb 2005
Location: Slovenia
Distribution: suse11.0
Posts: 749

Original Poster
Rep: Reputation: 31
Question

Now I have a problem with my FAT32 disk. It is Maxtor 40GB disk. I have there my files, which I need to access from both systems-Win and SUSE.I have no operating system installed there.It is 40% used. When I am in Windows, I can check that and it is so. But in SUSE, I am getting the warning that disk is full and that there is only 36Mb free space. I cant copy my files there. It happened before reinstalling SUSE and it is the same now, after new install. What can I do to resolve the problem? Really need help.

 
Old 11-12-2006, 06:48 AM   #6
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
What does the /etc/fstab file look like??? Can you explain in more detail this could not finish error you made mention of in post #4.
 
Old 11-12-2006, 12:35 PM   #7
riba43
Member
 
Registered: Feb 2005
Location: Slovenia
Distribution: suse11.0
Posts: 749

Original Poster
Rep: Reputation: 31
hi Lenard,

Here is my fstab entry:

/dev/hda6 / reiserfs acl,user_xattr 1 1
/dev/hda7 /home reiserfs acl,user_xattr 1 2
/dev/hda5 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
/dev/hda1 /windows/C ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hdb1 /windows/D vfat users,gid=users,umask=0002,utf8=true 0 0
/dev/hdc /media/dvdrecorder subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/hdd /media/dvd subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0

and this is again my fdisk -l:

bgorjup@riba43:~> fdisk -l
bash: fdisk: command not found
bgorjup@riba43:~> su
Password:
riba43:/home/bgorjup # fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Enote = cylinders od 16065 x 512 = 8225280 bajtov

Naprava Boot Start End Blocks Id System
/dev/hda1 * 1 2553 20506941 7 HPFS/NTFS
/dev/hda2 2554 9729 57641220 f W95 Ext'd (LBA)
/dev/hda5 2554 2754 1614501 82 Linux swap / Solaris
/dev/hda6 2755 4455 13663251 83 Linux
/dev/hda7 4456 9729 42363373+ 83 Linux

Disk /dev/hdb: 40.0 GB, 40027029504 bytes
255 heads, 63 sectors/track, 4866 cylinders
Enote = cylinders od 16065 x 512 = 8225280 bajtov

Naprava Boot Start End Blocks Id System
/dev/hdb1 * 1 4866 39086113+ c W95 FAT32 (LBA)
riba43:/home/bgorjup #

Disk D is recognized properly,so why i am getting the message that it is full?

Last edited by riba43; 11-12-2006 at 01:05 PM.
 
Old 11-13-2006, 01:53 AM   #8
riba43
Member
 
Registered: Feb 2005
Location: Slovenia
Distribution: suse11.0
Posts: 749

Original Poster
Rep: Reputation: 31
HDD FAT32 full message

I have posted this question in my thread some days ago. It was an additional question which was not answered yet. So I post it separately now.
I am getting the warning message that a separate disk, formatted FAT32, (which I have for my files needed by both systems win and Linux)is full. But it is not.It is only ca. 34% used. Why is this and how can i resolve the problem
When checked by SuSE YAST etc. I get the result that disk has only 14GB and free space is only 36MB!!!

this is my fdisk -l:

bgorjup@riba43:~> fdisk -l
bash: fdisk: command not found
bgorjup@riba43:~> su
Password:
riba43:/home/bgorjup # fdisk -l

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Enote = cylinders od 16065 x 512 = 8225280 bajtov

Naprava Boot Start End Blocks Id System
/dev/hda1 * 1 2553 20506941 7 HPFS/NTFS
/dev/hda2 2554 9729 57641220 f W95 Ext'd (LBA)
/dev/hda5 2554 2754 1614501 82 Linux swap / Solaris
/dev/hda6 2755 4455 13663251 83 Linux
/dev/hda7 4456 9729 42363373+ 83 Linux

Disk /dev/hdb: 40.0 GB, 40027029504 bytes
255 heads, 63 sectors/track, 4866 cylinders
Enote = cylinders od 16065 x 512 = 8225280 bajtov

Naprava Boot Start End Blocks Id System
/dev/hdb1 * 1 4866 39086113+ c W95 FAT32 (LBA)
riba43:/home/bgorjup #

Disk D is recognized properly,so why i am getting the message that it is full?
 
Old 11-13-2006, 08:47 AM   #9
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,209

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
riba43,

fdisk -l does not report free space, although it tells you lots of other good stuff.

Do a df -h and post the results, that will show the free space on all mounted partitions. If it reports about 66% available on that partition, I dought the problem has anything to do with file system reporting.

Next, if it is Yast the is complaining, it may well be the temp space it is complaining about, since Yast is the package manager. I don't run Suse, so I can't be sure of that. Open up Yast and look for configuration, and see if you can figure out where Yast is putting its files. There may be space limitations placed on Yast it is not happy with.
 
Old 11-13-2006, 05:04 PM   #10
riba43
Member
 
Registered: Feb 2005
Location: Slovenia
Distribution: suse11.0
Posts: 749

Original Poster
Rep: Reputation: 31
hello,
this is the result of my df -h

bogomir@riba43:~> df -h
Dat. sist. Vel. Upor Prost Upo% Priklopljeno na
/dev/hda6 13G 4,2G 8,1G 34% /
udev 250M 132K 250M 1% /dev
/dev/hda7 40G 353M 38G 1% /home
/dev/hda1 20G 11G 8,8G 56% /windows/C
/dev/hdb1 38G 38G 37M 100% /windows/D
 
Old 11-14-2006, 08:24 AM   #11
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,209

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
From what I can see, it looks like it is hdb1 you have the problem with, in linux. Windows shows the drive approximately 66% used. Linux shows it almost full.

The question becomes, how does linux determine free space on a fat32 partition. This will take some investigation. I will see what I can come up with. If anyone out there knows how this is determined, please don't hesitate to post.
 
Old 11-14-2006, 08:27 AM   #12
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,209

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
I have two thoughts. Would you boot to windows and get rid of any unnecessary files, like browser cache, or temp files, run chkdsk ( or what ever windows calls it this week ), and then defrag the partition. Then post the available disk space in windows and linux.

Have you defined any disk limitations in linux?
 
Old 11-15-2006, 07:39 AM   #13
riba43
Member
 
Registered: Feb 2005
Location: Slovenia
Distribution: suse11.0
Posts: 749

Original Poster
Rep: Reputation: 31
Hi camorri,

I am sorry to be so late with my answer. I have been reinstalling my system and replacing SuSE 10.1 with 10.2beta2. Well, I can tell you that I have cleaned and defragmented my D disk using Diskeeper 10 pro. In Windows I get info that disk is only ca. 40% full and I do not know what is going on. Here on the new suse 10.2 I have the same result. Disk full and only 36MB free.



and here is df -h again:

bgorjup@riba43:~> df -h
Dat. sist. Vel. Upor Prost Upo% Priklopljeno na
/dev/hda6 14G 3,6G 11G 27% /
udev 250M 132K 250M 1% /dev
/dev/hda7 41G 121M 41G 1% /home
/dev/hda1 20G 11G 8,8G 56% /windows/C
/dev/hdb1 38G 38G 37M 100% /windows/D
/dev/hdc 4,0G 4,0G 0 100% /media/SU102Bet.001
bgorjup@riba43:~>

Last edited by riba43; 11-15-2006 at 07:42 AM.
 
Old 11-15-2006, 09:00 AM   #14
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,209

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
I did some looking around for an explanation, and I found several threads with similar symptoms. I found some things i found interesting.

Apparently linux will save 5% of any disk for system use. That doesn't mean it prevents other programs from storing files, but implies it will report 5% fuller that the disk really is. I know your issue is larger than that.

Second thing is something called 'sparse files'. I'm not sure just what a sparse file is, but some how they mess up the reporting. They can be hidden also. Many of them can be deleted with no ill effect, or even compressed.
I'm going to see what I can find out about sparse files...

Last thought for now, if you have deleted many files on a gui ( trash ) and don't empty the trash, theos files are present and take up space. One more thing to check out.
 
Old 11-18-2006, 07:02 AM   #15
riba43
Member
 
Registered: Feb 2005
Location: Slovenia
Distribution: suse11.0
Posts: 749

Original Poster
Rep: Reputation: 31
Red face

Until now I have not an appropriate answer for that problem. The fact is that my d: disk is not a partition on my system disk. It is a separate disc which is used for the files I need in both systems (for now I still need wins). And that is not dependent on version of SuSE I am using. It happened even before I replaced SuSE 10.1 with this one - SuSE 10.2 beta2. When I checked that disc with Diskeeper 10 Pro, when i am in Wins, and also with TotalCommander, I get the right reading. Disc is only 36% full. ?????
 
  


Reply


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
cant see my fat32 drives? MadSkillzMan Debian 9 11-09-2004 04:32 AM
new install wont let me see fat32 and NTFS drives damoncf Debian 5 08-19-2004 03:51 PM
Fat32 and NTFS drives on FC1 Vectrox Fedora 11 05-04-2004 01:40 PM
mounting drives--fat32 varunk123456 Linux - Newbie 8 03-31-2004 01:20 PM
Using FAT32 drives in RedHat php Linux - General 2 03-07-2002 09:22 PM

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

All times are GMT -5. The time now is 10:43 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