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.
Disk /dev/hda: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 3538 28418953+ 83 Linux
/dev/hda2 3539 4632 8787555 5 Extended
/dev/hda3 4633 4870 1911735 82 Linux swap
/dev/hda5 3539 4632 8787523+ b W95 FAT32
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2550 20482843+ c W95 FAT32 (LBA)
/dev/sda2 2551 9729 57665317+ f W95 Ext'd (LBA)
/dev/sda5 2551 6374 30716248+ b W95 FAT32
/dev/sda6 6375 9729 26949006 b W95 FAT32
I should be getting hdc
I don't know how the disk is formatted, it is either FAT32 or NTFS.
hda is your master hdd and you did not show anything formatted in ntfs.
Your slave hdd is sda formatted in fat32 with four partitions.
The /dev/sda is the device recognized by linux. I don't know what (LBA) stands for.
The default mount point is /media for slackware, however you can put the mount point anywhere of your choosing. I personally put the mount point for a usb hdd in my home directory. I did that because every time I open a console, the default directory is my home directory. It gives easier access to the usb drive. The mount point is the file you create where you will access all of the files on the 2nd drive.
Two things you will need to do.
1. Create four mount points. Make four directories and name them as you choose and where you choose. I named one of mine as "backup" etc ....
Next mount the partition
su
mount /dev/sda1 /location/of/your/mount/point/
cd /location/of/your/mount/point/ (You should be able to now access all of the files for the first partition on the slave drive.)
Now do the same for the other three parititions.
2. You will need to edit your /etc/fstab file so you will be mounted everytime you boot.
I suggest to add something like this. Edit it to meet your needs.
/dev/sda2 /backup vfat auto,users,exec,rw,sync 1 0
1.LBA is Logical block addressing.Before LBA, hard drives could encounter a 1024-cylinder limit, where the BIOS could not find a file after that point, such as a boot loader or kernel files.
2.After you do as Okos said, you can type in "mount" or "more /etc/mtab" to double check the result.
1.LBA is Logical block addressing.Before LBA, hard drives could encounter a 1024-cylinder limit, where the BIOS could not find a file after that point, such as a boot loader or kernel files.
Thanks for the lesson. I just learned something new
Perhaps the best thing would be to reformat the disk with smaller partitions so that the bios will would recognize each partition in full?
hda is your master hdd and you did not show anything formatted in ntfs.
Your slave hdd is sda formatted in fat32 with four partitions.
The /dev/sda is the device recognized by linux. I don't know what (LBA) stands for.
The default mount point is /media for slackware, however you can put the mount point anywhere of your choosing. I personally put the mount point for a usb hdd in my home directory. I did that because every time I open a console, the default directory is my home directory. It gives easier access to the usb drive. The mount point is the file you create where you will access all of the files on the 2nd drive.
The '/dev/hda' is the master on ide0. If the slave is on ide0 then the device would be 'dev/hdb'. If the device master on ide1 then the slave would be '/dev/hdd'.
'LBA' faults can be corrected by placing 'lba32' in your lilo.conf file.
Too expand; the mount point is a directory that you create on the filesystem to mount the filesystem;
Code:
excerpt from 'man mount';
NAME
mount - mount a file system
SYNOPSIS
mount [-lhV]
mount -a [-fFnrsvw] [-t vfstype] [-O optlist]
mount [-fnrsvw] [-o options [,...]] device | dir
mount [-fnrsvw] [-t vfstype] [-o options] device dir
DESCRIPTION
All files accessible in a Unix system are arranged in one big tree, the
file hierarchy, rooted at /. These files can be spread out over sev-
eral devices. The mount command serves to attach the file system found
on some device to the big file tree. Conversely, the umount(8) command
will detach it again.
The standard form of the mount command, is
mount -t type device dir
This tells the kernel to attach the file system found on device (which
is of type type) at the directory dir. The previous contents (if any)
and owner and mode of dir become invisible, and as long as this file
system remains mounted, the pathname dir refers to the root of the file
system on device.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.