LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 04-14-2004, 05:08 AM   #1
vwal_13
Member
 
Registered: Apr 2004
Distribution: Slackware 9.1
Posts: 71

Rep: Reputation: 15
copy from a fat32 partiton


is linux able to copy sth from a fat32 partition ? which are the commands ?
do i have to mount first the fat32 partiton in linux ?

simple questions but i need the answers.plz
 
Old 04-14-2004, 05:15 AM   #2
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
You need to mount the partition first. I don't know about fat32, but it worked for me on fat16. Use the command:

mount -t vfat /dev/hda0 /mnt/winpartition

(replace hda0 with your disk name and create a directory(like winpartition) in /mnt/, where you will mount the windows partition. I believe vfat is the right type to mount. I haven't found any different in man mount pages.)

hda means harddisk and 0 stands for the number of your harddisk the partition you wan't to mount is on. Like: if you only have one harddisk, then that harddisk would be hda0 and every harddisk after that one would be hda1, hda2, ..., hdaN

After you mount that partition, you are able to do with it whatever you wish (copy, DELETE!!!!!, FORMAT !!!!! so be careful) If you don't want to mount it as read_write there is a switch you add so it is read-only. I think the switch is ro, but check that in man mount pages!

Hope this helps!

Last edited by marghorp; 04-14-2004 at 05:18 AM.
 
Old 04-14-2004, 05:17 AM   #3
nvn
Member
 
Registered: Apr 2003
Location: Sweden
Distribution: Slackware
Posts: 242

Rep: Reputation: 30
Linux has no problems at all with the FAT32 filesystem - in fact, it's very common to use a FAT32 partition to share stuff between a Windows and a Linux installation.

In order to access ANY filesystem or partition, you'll have to mount it (for details, see the man page for mount). If FAT32 partitions are detected during the Slackware installation, one is asked if one wants to mount them (and if so, to specify the mount points). That information ends up in /etc/fstab. However, the FAT32 partition will be accesible only to root/su by default. This is easily changed by making the appropriate changes in /etc/fstab. Some more extensive information on this topic is available at Simply Linux, and I think there are some tips at user local as well...and of course, there are loads of discussions on this topic on this very forum.
 
Old 04-14-2004, 07:38 AM   #4
Kjetil4455
Member
 
Registered: Jul 2003
Location: Norway/Drammen
Distribution: Slackware~
Posts: 250

Rep: Reputation: 30
I got no idea what sth means, but anyways: YES, you've gotta mount it.

mkdir /mnt/<foldername> | mount -t vfat /dev/hdXX /mnt/<foldername>



If you want the disk you mounted readable for other users than Root, you go to /etc/fstab and edit.
 
Old 04-14-2004, 07:41 AM   #5
vwal_13
Member
 
Registered: Apr 2004
Distribution: Slackware 9.1
Posts: 71

Original Poster
Rep: Reputation: 15
Smile sth ?

sth=something
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
fat32 partiton marjan Linux - Hardware 7 06-15-2006 05:03 PM
fat32 partiton cant see it einstien Linux - Hardware 2 07-07-2005 02:40 PM
2 fat32 partitions on fbsd5/w2k dual. Can only access one fat32 so far.. mipia *BSD 1 10-06-2003 02:10 AM
Cannot Copy Files From Network FAT32/NTFS Drive to My Local Linux Drive michaelh Linux - Networking 3 10-29-2002 10:27 AM
Creating an ext2 partiton from an old fat32 kabads Linux - General 7 10-09-2002 06:05 AM


All times are GMT -5. The time now is 05:55 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration