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 have been trying to format my harddrive ( I think it's called hdb1 ) for 2 days.... and I have no idea what else I can try? Can somebody help me?
this is what I have done....
root@dieter:~# fdisk /dev/hdb1
The number of cylinders for this disk is set to 9731.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): n
p primary partition (1-4)
Partition number (1-4): 1
First cylinder (1-9731, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-9731, default 9731):
Using default value 9731
Command (m for help): p
Disk /dev/hdb1: 80.0 GB, 80048392704 bytes
255 heads, 63 sectors/track, 9731 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1p1 1 9731 78164226 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
root@dieter:~# mknod /dev/hdb1p1 b 22 0
root@dieter:~# mke2fs /dev/hdb1p1
mke2fs 1.34 (25-Jul-2003)
mke2fs: No medium found while trying to determine filesystem size
root@dieter:~# mke2fs /dev/hdb1
mke2fs 1.34 (25-Jul-2003)
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
9781248 inodes, 19543064 blocks
977153 blocks (5.00%) reserved for the super user
First data block=0
597 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424
Do a :
mount -t ext2 /dev/hdb1 /mnt/hdb1
mke2fs makes ext2 filesystems. 'mkfs.vfat' or 'mkdosfs -F 32' makes the FAT32 (vfat) filesystem.
The /mnt/hdb1 directory has to exist for this to work:
actually, It doesn't work. Because when I want to run /sbin/lilo I get an error:
Warning: COMPACT may conflict with LBA32 on some systems
Warning: '/proc/partitions' does not match '/dev' directory structure.
Name change: '/dev/hdb' -> '/dev/hdb'
Fatal: open /dev/hdb: No such file or directory
But when I disconnect my harddrive and comment the following line in fstab
/dev/hdb1 /mnt/hdb1 ext3 defaults 0 0
then it works.