[SOLVED] External USB drive Partition for use on both Windows and Red Hat Linux machine
Linux - NewbieThis 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
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.
External USB drive Partition for use on both Windows and Red Hat Linux machine
I have an external USB hard drive with multiple partition. I am trying to configure one single partition (over 32 GB) to read and write from Windows XP laptop and Linux Desktop when connected to the machine directly.
Question:
a) Is it possible to swap drives between machines and read/write from the same partition.
b) If yes what is the best partition type to use ?
c) Does it make a difference if the drive is formated on Linux v/s XP?
FYI: Here is why I am trying to do this...
I had created a partition /dev/sda4 of type 7 (HPFS/NTFS) and mounted it successfully on the Red Had Linux m/c. It's configured as a Samba drive. I was able to read write from my XP laptop but writing(over 4 GB files) is very slow over the home WI-FI. My thought, since this partition is on an external drive it will be faster to just swap the drive between two machines and write large files to it.
My Configuration is as below.
Laptop with XP
Desktop with Red Hat Linux ver 2.4.20-8.
Disk partition /dev/sda4
Partition type : 7 (HPFS/NTFS)
Size : 57 GB.
a yes
b for windows fat32 or ntfs is suggested, but nowadays windows can handle ext4 also, so you can use your favorite.
c hopefully not, but someone suggests to use the original os (ext4 on linux, fat and ntfs on windows)
Ok it is not working.
I fdisk'ed the partition on linux and set it to type 7 (HPFS/NTFS). Saved it and then moved the drive to XP machine. I could not read the partition. So I went thru the disk manager and made the partition active and formated it for NTFS. Save a file to it to test and worked fine.
Next moved the drive back to Linux and tried to mount the partition (mount /dev/sda4/ mnt/sda4/) and got a message "mount: fs type ntfs not supported by kernel." My kernel version is 2.4.20-8. Is Kernel my issue? Do I need a newer Kernel ?
Ok I got it to work.
Here is how..
a) Tried partition type to 'b' or '7'. Both worked.
b) On linux formated disk with
mkfs.vfat -F 32 /dev/partition_name
c) Mounted the partition with
mount /dev/partition_name /mnt/partition_name
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.