how to format the hard disks(removable & fixed) ?
what are the commands to format the hard disks and flash drives in fedora 7, with desired file system? and how can i transfer my hard-disks into linux, that were earlier under windows-xp?
|
man parted
man fdisk Quote:
|
Quote:
|
there are two ways of doing it.
Firstly, By making an entry in /etc/fstab file in Linux. This will result in auto mounting of old drives containing windows data, without your intervention. In this case you can work on these drives from linux without any hassles. Secondly, as you said you can format the drives as ext2 or ext3 and mount in filesysytem. |
Quote:
I am guessing you want the OS to mount the drive for you when you boot instead of having to type in the mount command or use the user mount tool. gedit /etc/fstab This is the file-system table... add your drive to the bottom. It's pretty easy to follow by comparing with partitions that automount. You need to read the manpage for fstab for details. |
And, to answer you original question, use the mke2fs command to create a file system on a physical partition. (Despite the e2 in the command name, it can also be used to created ext3 file systems. See man mke2fs for instructions.)
If you'd like to keep your disks in NTFS (and preserve the data on them), do a yum install ntfs-3g and make entries in your /etc/fstab like this: Code:
# Added by hand . . . The entries at the end show how I mount my USB drive partitions. Note that my USB drive contains a logical volume with a Fedora Core 6 installation on it. The "noauto" option tell Fedora 7 to "file and ignore" the definitions untill I attach the drive and run the following script: Code:
$ cat Scripts/MountUsb |
PTrenholme: a quite complete reply there... I suspect the parts about ntfs-3g are the bits actually wanted. I have some observations:
I see you do not use drive labels in fstab, I understand f7 s OK with this but fedora is moving towards increased HW abstraction. For the fstab entries to work, don't the directories /hd /hd/c and /hd/d need to exist? Arn,t these directory names susceptible to confusion with hdc and hdd? Aren't user mounted partitions better in /mnt or /media? In your case, /mnt/sda1 and /mnt/sda2 are more usual. Some people prefer mounting under /media, and maybe a more descriptive name like /media/winC and /media/winD ... it is usually frowned-upon to create directories off root just for this sort of thing. The udev system in f7 is supposed to automount USB partitions. But I see the fedora-usb installation is on an LVM volume ("logical volume is too easy to confuse with logical partition)... an annoying habit fedora has these days. Not really needed for a single physical volume and it would probably mess up the normal automount. Sometimes, answering the original question faithfully and completely can just lead to more confusion and "WTF" style reactions from newcomers. I mean, if you'd just come from windows and saw that usb-mount script, you'd go "WTF: I just plug them in in windows, what a useless OS!" OTOH: my, "read the manual", response with "I don't understand the question" could be said to leave something to be desired. So I'd be interested in what OP has to say. |
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
And I agree that "too much" can be confusing, but I felt that the OP could benefit from an actual example. Perhaps -- well, probably -- I should not have included anything about the USB drive, although the OP asked about removable media as well as fixed disks. |
Not on Fedora 7: All fedora drives are sda, etc.
This is not true. Fedora see all SATA, USB, SCSI drives as sd*. It still see IDE drive as hd*. |
Quote:
[hd/c confuse with hdc etc] Quote:
[partitions better in /mnt or /media?] Quote:
[LVM volume ... would probably mess up the normal automount.] Quote:
Quote:
You have provided a nice solution with that USB, and the ensuing discussion should have provided enough references so people looking for that solution have a chance of finding it. Most of my questions were really concerned with "what to tell newbies"... it could be that OP read your post and just "got it" but found my approach mystifying: which knocks me right off my high horse. So they are not very heavy criticisms. Anyway, it gives us something to do while we're waiting for OP to reply :D Quote:
fedora 7 release notes Quote:
|
Simon Bridge,
Yes and No. I do have one system I managed is running RH8. But, all my system are either Red Hat 2.1 to 5 or Fedora 1 to 6. Also, I'm just too lazy to update my profile.....LOL |
Quote:
Code:
$ /sbin/fdisk -l |
All times are GMT -5. The time now is 01:12 PM. |