LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-22-2008, 02:18 PM   #1
paperbag
Member
 
Registered: Dec 2007
Location: London
Distribution: Slackware
Posts: 53

Rep: Reputation: Disabled
accessing another hdd


hey i got slack installed onto scsi hdd
but i want to access my sata hdd as well, how do i go about doing that?

as i searched i found out i needed to mount it, but i am not too sure how.

the second hdd has fluxbuntu on it, if that makes any difference.
 
Old 12-22-2008, 02:55 PM   #2
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
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.
 
Old 12-23-2008, 11:38 PM   #3
HerbertJ
LQ Newbie
 
Registered: Oct 2008
Posts: 28

Rep: Reputation: 16
First off, you'll need to know what the path to the device is. You can see what devices are available in /proc/partitions.

herbert@logical:/proc$ cat partitions
major minor #blocks name

8 0 312571224 sda
8 1 16000708 sda1
8 2 996030 sda2
8 3 1 sda3
8 4 113579550 sda4
8 5 127997856 sda5
8 6 16000708 sda6
8 7 4996183 sda7
8 8 32997478 sda8
8 16 7831552 sdb
8 20 7823623 sdb4

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.

...
/dev/sda5 /mnt/extra2 ext3 defaults,noatime 1 2
...

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.
 
Old 12-25-2008, 01:57 PM   #4
paperbag
Member
 
Registered: Dec 2007
Location: London
Distribution: Slackware
Posts: 53

Original Poster
Rep: Reputation: Disabled
Alright man, thanks, that cleared out everything

thanks a lot.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
finding out what is accessing the hdd dave_blob Linux - General 5 10-25-2010 03:27 AM
accessing hdd in new build storywizard SUSE / openSUSE 3 02-21-2006 11:23 PM
Accessing My Windows HDD yourwar Linux - Newbie 10 08-15-2005 05:16 AM
problem accessing mounted hdd linuxmandrake Linux - Newbie 1 11-20-2004 04:37 PM
Accessing second HDD bison42 Linux - Newbie 2 08-22-2001 02:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration