Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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!
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?
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.
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 .
./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*
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.