LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-14-2006, 04:33 AM   #1
stocky021
LQ Newbie
 
Registered: Feb 2006
Distribution: Suse 10
Posts: 20

Rep: Reputation: 0
Accessing windows hard drive from Linux


I have Xp and Suse 10 on my system, and I'm trying to access the windows drive (I: ) from Suse. When I: was NTFS i could access the files from Suse but not edit. After converting the drive to FAT32 I cant even see the files. The folder for I Drive is just empty. How can I make these files visible?

Last edited by stocky021; 02-14-2006 at 05:29 AM.
 
Old 02-14-2006, 05:05 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,602

Rep: Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532
Could you post the file: /etc/fstab
Replacing ntfs with vfat in that file is maybe enough to be able to see your fat32 partition.

Regards
 
Old 02-14-2006, 05:28 AM   #3
stocky021
LQ Newbie
 
Registered: Feb 2006
Distribution: Suse 10
Posts: 20

Original Poster
Rep: Reputation: 0
ive opened that file, and it has no reference to my I drive. it just stops after H. how can i add my windows drive to this list?
 
Old 02-14-2006, 05:38 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,602

Rep: Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532
Could you post the /etc/fstab to see how are your drives named?
Also the output of
Code:
fdisk -l
should be useful as well

Regards
 
Old 02-14-2006, 05:48 AM   #5
stocky021
LQ Newbie
 
Registered: Feb 2006
Distribution: Suse 10
Posts: 20

Original Poster
Rep: Reputation: 0
ive just started using linux so ill try do what you ask

/dev/hda8 / reiserfs acl,user_xattr 1 1
/dev/hda1 /windows/C vfat users,gid=users,umask=0002,utf8=true 0 0
/dev/hda5 /windows/D vfat users,gid=users,umask=0002,utf8=true 0 0
/dev/hda6 /windows/E ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/sda5 /windows/G ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/sda6 /windows/H ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hda7 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/dev/dvdrecorder /media/dvdrecorder subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/cdrecorder /media/cdrecorder subfs noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/sda7 /windows/I vfat ro,users,gid=users,umask=0002,nls=utf8 0 0
 
Old 02-14-2006, 05:50 AM   #6
stocky021
LQ Newbie
 
Registered: Feb 2006
Distribution: Suse 10
Posts: 20

Original Poster
Rep: Reputation: 0
fdisk

Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1913 15366141 c W95 FAT32 (LBA)
/dev/hda2 * 1914 19457 140922180 f W95 Ext'd (LBA)
/dev/hda5 1914 8670 54275571 b W95 FAT32
/dev/hda6 8671 16162 60179458+ 7 HPFS/NTFS
/dev/hda7 16163 16291 1036161 82 Linux swap / Solaris
/dev/hda8 16292 19457 25430863+ 83 Linux

Disk /dev/sda: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1 8001 7 HPFS/NTFS
/dev/sda2 2 30515 245103705 f W95 Ext'd (LBA)
/dev/sda5 2 18982 152464851 7 HPFS/NTFS
/dev/sda6 18983 28602 77272618+ 7 HPFS/NTFS
/dev/sda7 28603 30514 15358108+ b W95 FAT32
 
Old 02-14-2006, 06:07 AM   #7
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Writing to NTFS can not be done with out corrupting the whole partition. Just backup the files on the NTFS partitions and convert it to FAT32. Then you can edit.

NTFS is a whole different filesystem than FAT. Mounting an NTFS partition as FAT will come to an error and will not mount.
 
Old 02-14-2006, 06:09 AM   #8
stocky021
LQ Newbie
 
Registered: Feb 2006
Distribution: Suse 10
Posts: 20

Original Poster
Rep: Reputation: 0
it is fat32, but i cant see the files on the drive
 
Old 02-14-2006, 06:15 AM   #9
_KDF
Member
 
Registered: Oct 2003
Distribution: FC4/5 & RHEL4
Posts: 133

Rep: Reputation: 15
Quote:
Originally Posted by stocky021
ive opened that file, and it has no reference to my I drive. it just stops after H. how can i add my windows drive to this list?
But the very last line of the fstab you posted has

/dev/sda7 /windows/I vfat ro,users,gid=users,umask=0002,nls=utf8 0 0

??


it deffinatly has the wrong settings though as you are trying to mount the fat32 drive 'ro' (read only).. looks like the options are still setup for ntfs drive.

Last edited by _KDF; 02-14-2006 at 06:16 AM.
 
Old 02-14-2006, 06:21 AM   #10
stocky021
LQ Newbie
 
Registered: Feb 2006
Distribution: Suse 10
Posts: 20

Original Poster
Rep: Reputation: 0
hmmm i didnt notice that. when i go to the folder \windows\I there is a folder where my I drive files used to be, then i logged into windows and converted it to FAT32, and then the folder was empty
 
Old 02-14-2006, 06:22 AM   #11
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,602

Rep: Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532
Quote:
/dev/sda7 /windows/I vfat ro,users,gid=users,umask=0002,nls=utf8 0 0
So there is a reference in /etc/fstab for your I: drive (which is actually /dev/sda7). Before editing /etc/fstab run (as root) from the commandline the following and see if it works:
Code:
mount -t vfat -o iocharset=utf8 /dev/sda7 /windows/I
If it works then edit /etc/fstab (keep a backup before editing) and change the last line which refers to /dev/sda7 like this:
Code:
/dev/sda7 /windows/I vfat users,gid=users,umask=0002,utf8=true 0 0
 
Old 02-14-2006, 06:30 AM   #12
stocky021
LQ Newbie
 
Registered: Feb 2006
Distribution: Suse 10
Posts: 20

Original Poster
Rep: Reputation: 0
thank you. youre a god lol. that works

but how do i edit the file to add that last line?

Last edited by stocky021; 02-14-2006 at 06:32 AM.
 
Old 02-14-2006, 06:42 AM   #13
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,602

Rep: Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532Reputation: 1532
Quote:
but how do i edit the file to add that last line?
You don't have to add it, just edit that last line that refers to /dev/sda7
To edit (backup first the original file) use from command line an editor like: pico, nano, joe whatever your distro has. E.g:
Code:
pico /etc/fstab
nano /etc/fstab
joe /etc/fstab
To save the changes with pico or nano press Ctrl-x and answer y when prompted For joe it's Ctrl-K-x (I'm not if it asks you to ovewrite).

Last edited by bathory; 02-14-2006 at 06:43 AM.
 
Old 02-14-2006, 06:44 AM   #14
_KDF
Member
 
Registered: Oct 2003
Distribution: FC4/5 & RHEL4
Posts: 133

Rep: Reputation: 15
(as root)

emacs fstab

edit the line as above and remember to add a blank line at the end.. then..

ctrl+x ctrl+s ctrl+x ctrl+c
 
Old 02-14-2006, 06:46 AM   #15
stocky021
LQ Newbie
 
Registered: Feb 2006
Distribution: Suse 10
Posts: 20

Original Poster
Rep: Reputation: 0
awesome. thanks for the help. i think that i will use kate as my editor since im using suse

Last edited by stocky021; 02-14-2006 at 06:48 AM.
 
  


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
Accessing Windows hard Drive nikko05 Linux - Hardware 10 12-20-2005 11:58 AM
Accessing Windows files on a seperate hard drive ickselglic Linux - Hardware 1 01-22-2005 07:13 PM
Accessing Linux hard-drive from windows sduffy89 Linux - General 3 08-30-2004 01:05 PM
Accessing Windows Partition on Diff. Hard-Drive sduffy89 Debian 1 08-25-2004 01:39 PM
Accessing windows hard drive eastsidecrew Linux - Newbie 4 04-20-2004 01:47 PM


All times are GMT -5. The time now is 09:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration