Re: HELP! Installing Packages From Another Drive...
-----BEGIN PGP SIGNED MESSAGE-----
On Tue, 26 May 1998, James A. Bates wrote:
>>Hello everyone!
>
> I have a 4.0 GB drive running Windows95 and a 514 MB drive with Debian (no packages installed yet, just the base). The 514 MB is a slave to the 4 GB. I downloaded several packages onto my Windows drive (C:\Debian), but I haven't a clue how to get them to install into Linux. How can I mount the drives from dselect? I'm VERY new to this so any in-depth/detailed help would be greatly appreciated. Thanks in advance.
>
>James
The thing is that Linux is not arranging the different partitions you might have
on your hdd as c: d: ... but has a hirarchical directory structure starting with
/ (root).
This allows you to mount partitions in virtually any place in this
structure . This is a great thing for upgrades -
lets assume you created several linux partitions at install time and mounted
them so that they would take their places as /, /usr/ and /var. Should you ever
encounter that the partition mounted as /usr does no longer provide sufficient
capacity, you could simply install another hdd, copy the contents of the /usr
partition to it and then mount the new harddrive as /usr.
Accomplished is this with "mount", which takes several options, allowing you to
mount any filesystem supported by your kernel:
mount -t <filesystem-type> -o <options> <device> <mountpoint> , where
<filesystem-type> is vfat in case of win95 (dos: fat)
<device> the partition you would like to mount - linux organizes them this way:
<options> there are a lot of options for mount and the different supported
filesystems - see man mount, etc.
In your case, you probably want to use "nonumtails", to display vfat's long
filenames correctly.
/dev/hda ---> primary IDE hdd
/dev/hda1 ---> first partition on primary IDE hdd
/dev/hda2 ---> second ...
/dev/hdb ---> secondary IDE hdd
....
/dev/sda ---> first SCSI
....
for you this would mean you'd have to mount /dev/hda1, since you are using IDE
( I assume) and windows/dow always uses the first partition on the first hdd for
c:.
<mountpoint> would be the directory in the hirarchical order that you would like
to display the contents of c: (/dev/hda1). This can be any directory - /mnt is a
standard directory for temporary mounting of devices. I use /win95 for my
driveC.
Mount is always started at boot time, getting its information from /etc/fstab.
Thus all linux file-systems are mounted. You can edit /etc/fstab to meet your
needs. I don't want to get into detail on this topic, there is a lot of
information on this available. I'll atach a version of my /etc/fstab for you to
look at if you want - contact if you need more info ;-).
hope this helps a bit.
- --
Stone's Law:
One man's "simple" is another man's "huh?"
- --
==================================
Christian Zander
* web: ishmael.ml.org/~zander
* email: czander@okay.net
==================================
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
iQCVAwUBNWskPxZiJXs96Q11AQEXIwQAuoKpfYTp2bO7vpO2KhOXdr45REt+6iRa
5HjuQsYn/3D3s8PgUnUYuoPSbPTBobAp/Zr4EMgyLbeAYc+0McZAyKMNfzQKAHbA
ylZc9ZQU9fM1BElssSB6AsYQAtFmolQJgc+vIKwdbXitctKu8VQQzVNJ3c+fxyM5
fBg2UWoh41o=
=+Yfc
-----END PGP SIGNATURE-----
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/hda5 / ext2 defaults 0 1
/dev/hdb2 none swap sw 0 0
proc /proc proc defaults 0 0
/dev/hda6 /usr ext2 defaults 0 2
/dev/hdb1 /var ext2 defaults 0 2
/dev/hda1 /win95 vfat nonumtail,user,rw,exec
/dev/hda7 /cdimage ext2 user,noauto
/dev/hda8 /winmedia vfat nonumtail,user,rw,exec
/dev/hdb3 /wingames vfat nonumtail,user,rw,exec
/dev/hdb4 /windata vfat nonumtail,user,rw,exec
/dev/hdc /cdrom iso9660 user,ro,nonumtail,noauto
/dev/sr0 /cdwriter iso9660 user,ro,nonumtail,noauto
Reply to: