SlackwareThis Forum is for the discussion of Slackware Linux.
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.
If you want only to access the second hard drive files from Slackware, then edit /etc/fstab to add the mount points. You do not need to reboot. After saving fstab run mount -a.
If you want to dual boot Fluxbuntu along with Slackware, then edit your bootloader (grub or lilo). If you want to access Slackware files from Fluxbuntu, then also edit the Fluxbuntu fstab.
I just plugged in a thumb drive, which now shows as sdb and sdb4. Therefore the drive is /dev/sdb, and the only partition on that drive at /dev/sdb4. You can see what the current devices are that are mounted with the mount command.
herbert@logical:/proc$ mount
/dev/root on / type ext3 (rw,noatime,errors=continue,data=ordered)
/proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sda2 on /boot type ext3 (rw,noatime)
/dev/sda6 on /home type ext3 (rw,noatime)
/dev/sda4 on /mnt/extra1 type ext3 (rw,noatime)
/dev/sda5 on /mnt/extra2 type ext3 (rw,noatime)
tmpfs on /dev/shm type tmpfs (rw)
You should be able to figure out which device your other drive is by comparing what is mounted, and what still isn't mounted from the /proc/partitions file. Now you can mount the drive manually with the mount command and look at its contents to be sure you're mounting the correct device. You can mount it anywhere, I use /mnt/tmp, just to make sure its going to work.
mount /dev/sd** /mnt/tmp
Normally this works. If it doesn't you may need to add the file system type of the drive.
mount -t reiserfs /dev/sd?? /mnt/tmp
You can see all the different types of file system names in "man mount". If you have mounted the file system without an issue, you can see what type it is by running the mount command again.
...
/dev/sda5 on /mnt/extra2 type ext3 (rw,noatime)
...
Here the type is "ext3". You'll need this for when you permanently add the partition to /etc/fstab so its mounted at boot time. Now edit /etc/fstab, adding a new line for your new partition.
Here the device is /dev/sda5 and the place its mounted to is /mnt/extra2. The file system type is "ext3". The options used are "defaults" and "noatime", "noatime" meaning the drive isn't written to every time a file is accessed. The last numbers can be used. The last one is 2 as it is not the root filesystem and fsck uses that information when mounting the drive.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.