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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm confused and need help. I think my main problem is that I reinstalled SuSE 10.0 (because my computer sort of crashed) and then remounted my second hard drive (which doesn't contain an OS, just my Important Files (music, images, documents etc) from WinXP). I don't remember what I wrote in the line that I added the first time in fstab (I got the instructions from someone over the phone), but it worked better the first time. Maybe another file system? Cos this time all I get is trouble. (Wrote about it here: Can't change privileges for my second harddrive...) I think the file system I use now is NTFS (YaST tells me HPFS/NTFS).
I just want this hd to be fully compatible with Linux. I am not going to dual boot with Windows, only other Linux distros (perhaps, not planning on it in the near future though). (I want to get rid of SuSE and install Slackware when I've made sure all my files are safely backed up on this separate hard disk.)
I have tried the partitioner thingie in YaST and I've tried cfdisk (but it only lists partitions and info on hda and the harddisk I want to fix is hdb (and hdb1 it seems..)). YaST tells me I really shouldn't try to partition or format anything unless I'm an expert and I sure am not! I've also tried reading a few articles on LQ about partioning, but I'm still confused.
I just need this hd to be my sort of back up disk and so I don't need to make partitions like /home and /swap and things like that.
I really hope this makes some sort of sense to some of you, because I don't even know how to ask this question. All I seem to do is stumble over more info that I don't quite know how to use (like low level and high level formatting, hmmm).
Today is my 2 week Linux anniversary, so I'm just a newbie. It would be wonderful if someone could give me some advice on what to do. Thank you so much!
OK, we need to go carefully here, as I am not 100% sure what you want to do.
You have managed to get your files off your "spare" hard disk - Yes?
This "spare" disk is currently formatted as "NTFS".
You want this disk to be compatible with linux, for backups etc.
You do not have any data on this disk that you want to keep!
NTFS is a windows filing system. It is not compatibe with linux in the sense that it is dangerous (data loss) to write to NTFS from linux. This is because nobody apart from MS is entirely certain how NTFS works, and MS aren't saying.
So you need to wipe the disk and reformat it for linux.
Here is how to do this:
Find out which disk is your "NTFS" disk. It is probably /dev/hdb . Check like this (you will need to be root for all of these commands, so take care please) fdisk /dev/hdb
Then press m to print the command menu, and then p to list the partition table. You should see something about NTFS and nothing about linux. If that is the case, you can destroy all the windows partitions on /dev/hdb using the single-letter commands that fdisk uses. (Remember m for help). However, if you can see your linux partitions, you have the wrong disk, so exit fdisk (q) and restart it with a different disk (eg /dev/hda ) - check again that you are looking at the right disk!!
Now create at least one linux partition, still using fdisk.
Then write the changes to the disk and exit fdisk.
Now you need to format your partition(s) with a linux filesystem. There are several, but I just use ext3:
mkfs -t ext3 /dev/hda1 Wait until it finishes.
That was easy.
Now you need somewhere to mount your disk: mkdir /mnt/spare
Now mount the disk: mount -t ext3 /dev/hda1 /mnt/spare
Now you can use it.
If you want it mounted at boot time you will need to add this to your /etc/fstab file:
This was incredibly helpful, exactly what I needed!
I think I have managed to partition the hd now. I ran fdisk again just to make sure, got this when typing p and enter:
Device Start Beginning End (?) Id System
/dev/hdb1 1 10011 80413326 83 Linux
Then I tried this:
linux:/home/cam # mkfs -t ext3 /dev/hdb
mke2fs 1.38 (30-Jun-2005)
/dev/hdb is the whole device/unit, not just a partition!
Continue? (y,n) y
/dev/hdb is used by the system; won't create a file system here!
(If the choice of words seem strange it's probably because I've translated from Swedish.)
"lost + found" is where fsck puts bits of files that were rescued from a filesystem f??k-up when it recovers the filesystem. You can safely ignore it.
Now your disk is formatted and mounted, you might do a df -h to see how much space is available on it (did you partition it correctly?), and if all is OK, add an entry to /etc/fstab (see my first post to you) so it is mounted at boot time (if this is what you'd like).