LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-20-2003, 11:45 AM   #1
ch4s3r
Member
 
Registered: Sep 2003
Posts: 97

Rep: Reputation: 15
Moving files from Master to Slave drives


I have 2 hardrives on my comp, one for linux RH9.0 (slave) and the other is Win XP(master). i want to move a lot of files from the windows to the linux. How do i go about this procedure?
 
Old 10-20-2003, 12:10 PM   #2
Guru3
Member
 
Registered: Sep 2003
Location: //home/sweden
Distribution: RedHat 9, Fedora Core 1
Posts: 360

Rep: Reputation: 31
file system.

First of all, you have to determine what filesystem is on the XP drive. If it's XP Home it's probably FAT32, if it's XP Pro it's probably NTFS. If it is NTFS, then as far as I know there is only read access. If it is NTFS, got to the Linux-NTFS page and download the rpm driver. Next, run in console ls /proc/ide. It should look something like this:
Quote:
drivers hda hdc hdd ide0 ide1 piix
You want to pay attention to the "hda" "hdc" and "hdd" type things. Most likely you will have a hda, a hdb, and a hdc. hda should be your windows drive, hdb should be your linux drive, and hdc should be your cdrom drive. Now, assuming that's all correct, you should run "fdisk -l /dev/hda" to see what partitions there are. Here is the output from my dual boot, 1 hd system:
Quote:
Device Boot Start End Blocks Id System
/dev/hda1 1 3824 30716248+ 7 HPFS/NTFS
/dev/hda2 * 3825 3837 104422+ 83 Linux
/dev/hda3 3838 4735 7213185 83 Linux
/dev/hda4 4736 4865 1044225 f Win95 Ext'd (LBA)
/dev/hda5 4736 4865 1044193+ 82 Linux swap
This will also tell you the file system. Now that you know everything important you can cd to /mnt and create a folder like this "mkdir windows" then you simply have to mount. "mount -t NTFS /dev/hda1 /mnt/windows" would be what I would use. You should adjust accordingly.

Hope this helps. Also, all command should be run as ROOT or SUPERUSER!
 
Old 10-20-2003, 12:19 PM   #3
ch4s3r
Member
 
Registered: Sep 2003
Posts: 97

Original Poster
Rep: Reputation: 15
thanks so much for you help guru
 
Old 10-20-2003, 12:21 PM   #4
Guru3
Member
 
Registered: Sep 2003
Location: //home/sweden
Distribution: RedHat 9, Fedora Core 1
Posts: 360

Rep: Reputation: 31
Your welcome. I don't pretend to be a linux genius, but when I've already done that, well... I can help...
 
Old 10-23-2003, 10:35 AM   #5
ch4s3r
Member
 
Registered: Sep 2003
Posts: 97

Original Poster
Rep: Reputation: 15
ok Guru3 i need your help again. i got around to trying to mount this and once i got to the fdisk -l /dev/hda it says the fdisk command not found. Also it's a FAT32 filesystem for windows xp does that matter?
 
Old 10-23-2003, 11:18 AM   #6
Guru3
Member
 
Registered: Sep 2003
Location: //home/sweden
Distribution: RedHat 9, Fedora Core 1
Posts: 360

Rep: Reputation: 31
Are you kidding me? That would mean that there is no fdisk, which is just WRONG! What distrobution are you using? And are you sure you typed it in correctly? If you are sure, change directory to /sbin and do a "ls". Does fdisk show up there? If it does just run "./fdsik -l /dev/hda". If it doesn't show up cd to / and run "find -name fdisk". If that doesn't turn anything up, let me know, and I'll try to find a copy for you.
 
Old 10-23-2003, 11:33 AM   #7
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Log in as root in your shell

su -

and fdisk will probably be found

FAT32 is probably better as you'll be able to safely read aswell as write to the windows partition from inside linux if the urge so takes you.

Substitute ntfs for vfat when mounting
 
Old 10-23-2003, 12:49 PM   #8
ch4s3r
Member
 
Registered: Sep 2003
Posts: 97

Original Poster
Rep: Reputation: 15
ok just had to cd to sbin/ for the fdisk
./fdisk -l /dev/hda

Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 9728 78140128+ c Win95 FAT32 (LBA)

--------but when i do the mounting line this happens :
------------------------------------------------------------------
mount -t vfat/dev/hda /mnt/windows
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 .
 
Old 10-23-2003, 12:53 PM   #9
Guru3
Member
 
Registered: Sep 2003
Location: //home/sweden
Distribution: RedHat 9, Fedora Core 1
Posts: 360

Rep: Reputation: 31
HDA1!

OK, it's good that fdisk is there. What you need to remember is that fdisk gives you back the partitions, you may note:
Quote:
/dev/hda1 * 1 9728 78140128+ c Win95 FAT32 (LBA)
That it says /dev/hda1 NOTICE THE 1! Retry with "fdisk -t vfat /dev/hda1 /mnt/windows", and don't forget that 1!
 
Old 10-23-2003, 12:58 PM   #10
ch4s3r
Member
 
Registered: Sep 2003
Posts: 97

Original Poster
Rep: Reputation: 15
says option -t is invalid

./fdisk -t /dev/hda1 /mnt/windows
./fdisk: invalid option -- t

Usage: fdisk [-b SSZ] [-u] DISK Change partition table
fdisk -l [-b SSZ] [-u] DISK List partition table(s)
fdisk -s PARTITION Give partition size(s) in blocks
fdisk -v Give fdisk version
Here DISK is something like /dev/hdb or /dev/sda
and PARTITION is something like /dev/hda7
-u: give Start and End in sector (instead of cylinder) units
-b 2048: (for certain MO disks) use 2048-byte sectors


EDIT: *it tried with the vfat and same message appears*

Last edited by ch4s3r; 10-23-2003 at 12:59 PM.
 
Old 10-23-2003, 01:04 PM   #11
Guru3
Member
 
Registered: Sep 2003
Location: //home/sweden
Distribution: RedHat 9, Fedora Core 1
Posts: 360

Rep: Reputation: 31
Uh hu! Just do this then:
Quote:
mount /dev/hda1 /mnt/windows
 
Old 10-23-2003, 01:09 PM   #12
ch4s3r
Member
 
Registered: Sep 2003
Posts: 97

Original Poster
Rep: Reputation: 15
thanks for dealing with a complete idiot guru3, this is such a simple operation and it took me like 14 steps. anyway thanks again. it's workin like a charm now.
 
  


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
Switching master/slave drives pickarooney Linux - Hardware 11 11-08-2004 01:02 PM
slave not authenticating when master is down spyghost Solaris / OpenSolaris 3 10-04-2004 11:12 AM
Slave to Master? s9722 Linux - General 6 02-23-2004 10:34 PM
Slave to Master Question tkman Linux - General 2 11-23-2003 11:37 PM
Do 2 harddrives have to be Master/Slave? RAL Linux - Newbie 22 08-10-2003 06:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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