Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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.
I've got an external hard drive I'd been using for Windows up til now. But I got a larger one and want to use this one for Linux. (Never for Windows again) Since I used it for video editing and wanted to have files sizes greater than 4 GB I formatted it NTSF. Thus I know I will have to reformat it for Linux use. Can someone point me in the right direction on how to do this?
I have Fedora Core 3 and whatever the default file system was for FC2, which was my last clean install. (IOW I just upgraded to FC3, didn't wipe it clean minus /home as some others do)
My current plans are to connect the drive while the machine is off so that (I forget the name of the program) finds it upon boot time during the new hardware search and I'm figuring at that point I may be able to format it. If not, then from within KDE how do I format it? Or, since I also have Gnome installed, how do I format it from there?
If the disk is already mounted, start by unmounting the disk (but don't disconnect it...); you can do this in Konquerer by right-clicking the disk label in the devices browser, or in Konsole (or any terminal) by typing
umount <your drive's mountpoint>
I'm not aware of any handy builtin KDE tools for disk management (Someone feel free to jump in here if I'm wrong), but you can do it from a terminal with this command:
mkfs.ext3 /dev/sda
Where /dev/sda is the device name for your drive. Check this first! I'm not a Fedora expert, so it might have a different label on your system. Additionally, if you have any other SCSI, USB, or Firewire drive attached, it may refer to one of those. Check by using the command cat /proc/partitions ; There should be an entry there that cooresponds to how big your Firewire drive is.
You'll likely have to logged in as root to do this.
This will, obviously, erase everything on the drive, just like with any reformat.
You'll then probably want to add this drive to your fstab so it will connect automatically when you boot up. Add a line like this to the file /etc/fstab
/dev/sda1 /mnt/firewire ext3 defaults,user 0 1
Change "defaults" to "noauto" if you'd like the drive not to be mounted until you do so yourself (such as by clicking on it in KDE)
Thanks for the information! I'm in the formmatting process now. I was wondering, for the /mnt/firewire do I replace that with /mnt/usb if mine is usb drive?
Everything else was right on target, even the cat /proc/partitions.
Yes, the mount point is just a name of your choosing; you can make it anything, anywhere you'd like...as long as you make sure it cooresponds to an empty directory.
well i guess this would help if i had read your post earlier, but there is a package called Captive that allows Linux to read and write NTFS (using some Windows files). i got it to work fine with my 300 GB external USB hard drive, it's pretty sweet.
On a slightly tangential point, have you got your drive transferring data at USB2? I just got an external drive and it will only use the USB1 controller which is really slow...
Did you have to do anything special to get it working?
1) Movery - As of right now I have the drive on a USB 1 port. I am waiting to buy a pci card to upgrade it.
2) Anyone - I've got a bit of a problem. I did fdisk to create a partition. Then I did:
mkfs.ext3 /dev/sda1
So now my /proc/partition reads:
blah blah
8 0 120059904 sda
8 1 1200053713 sda1
In /etc/fstab I wrote:
/dev/sda1 /media/usbdisk ext 3 defaults, user 01
When I load up the drive I see a folder called lost+found with a lock on it. When I try to create a folder (called New Folder) I get the error message:
Access denied to /media/usbdisk/New Folder
Is there something I'm doing wrong that is preventing the drive from having write access by my normal user?
Any help would be greatly apprieciated so that I could finally begin to use this drive with Linux. Last night, at first I didn't fdisk and the boot loader complained. Now everything is dandy except that I can't write to it.
I'm going to simultaneously log in as root and see if root has write access since that will help us to be able to diagnose the problem. I'll be back in 5 minutes to let you know, but in the meanwhile, if anyone knows I'll be ever so happy.
Yup. The reasons I did that test was in case I did something wrong (although it was highly unlikely because on top of beucoup's instructions I later found the exact same instructions in a book I had bought on Fedora (and had forgotten to check) so I knew the commands were correct). But still I wanted to check if it was writeable - ie was it still NTFS or was it ext3. But it's apparently ext3 because I was able to create a folder as root.
So my new problem is this - how do I fix whatever I did wrong in fstab so that my other users have read/write access to my external drive? Is that particular mountpoint only for root or something? Whatever the problem is, I'll be more than happy to fix it.
Thanks! All I had to do was add myself to "users" (which already existed on Fedora, but I guess everyone isn't put there by default) and after doing your commands I just had to reboot and it works now!
Additionally, if anyone else wants to know, I added the "rw" after defaults,user after some of the examples I found online. I don't know if that matters or not.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.