LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-16-2017, 11:30 PM   #1
jhsdcsjdcvbdj
Member
 
Registered: Feb 2017
Location: Melbourne AU
Distribution: Slackware 14.2
Posts: 83

Rep: Reputation: Disabled
How to mount Extra HHD's | slackware 14.2


Looked through this thread and did a search, came up with nothing..

How can i mount mt extra HDD's at start up ?

I have edited fstab about 236443453265482 times, and it still doesn't work.

WHY IS THIS ????

fstab looks like this >>

#/dev/EXTRA HD's
/dev/sdc1/ /home/nothing/blackhole2 auto defaults 0 0
/dev/sdb2/ /home/nothing/blackhole1 auto defaults 0 0

#/dev/BOOT & HOME DRIVE *** [DO NOT TOUCH] ***
/dev/sda2 swap swap defaults 0 0
/dev/sda3 / ext4 defaults 1 1
/dev/sda1 /boot ext4 defaults 1 2


#/dev/cdrom /mnt/cdrom auto noauto,owner,ro,comment=x-gvfs-show 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0

devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0

Can mount and open drive in GUI (KDE) Under root of course.

Typing command: ls -la /dev/disk/by-id/
Does this


root@dead:/home/nothing# ls -la /dev/disk/by-id/
total 0
drwxr-xr-x 2 root root 440 Feb 18 03:08 ./
drwxr-xr-x 8 root root 160 Feb 18 03:08 ../
lrwxrwxrwx 1 root root 9 Feb 18 03:08 ata-WDC_WD10EARS-00Y5B1_WD-WCAV55172964 -> ../../sda
lrwxrwxrwx 1 root root 10 Feb 18 03:08 ata-WDC_WD10EARS-00Y5B1_WD-WCAV55172964-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Feb 18 03:08 ata-WDC_WD10EARS-00Y5B1_WD-WCAV55172964-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Feb 18 03:08 ata-WDC_WD10EARS-00Y5B1_WD-WCAV55172964-part3 -> ../../sda3
lrwxrwxrwx 1 root root 9 Feb 18 03:08 ata-WDC_WD30EZRX-00DC0B0_WD-WMC1T3071988 -> ../../sdb
lrwxrwxrwx 1 root root 10 Feb 18 03:08 ata-WDC_WD30EZRX-00DC0B0_WD-WMC1T3071988-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Feb 18 03:08 ata-WDC_WD30EZRX-00DC0B0_WD-WMC1T3071988-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 9 Feb 18 03:08 ata-WDC_WD30EZRX-00MMMB0_WD-WCAWZ1714545 -> ../../sdc
lrwxrwxrwx 1 root root 10 Feb 18 03:08 ata-WDC_WD30EZRX-00MMMB0_WD-WCAWZ1714545-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 9 Feb 18 03:08 usb-General_USB_Flash_Disk_0510830000000119-0:0 -> ../../sdd
lrwxrwxrwx 1 root root 10 Feb 18 03:08 usb-General_USB_Flash_Disk_0510830000000119-0:0-part1 -> ../../sdd1
lrwxrwxrwx 1 root root 9 Feb 18 03:08 wwn-0x12213581617442213889x -> ../../sdc
lrwxrwxrwx 1 root root 10 Feb 18 03:08 wwn-0x12213581617442213889x-part1 -> ../../sdc1
lrwxrwxrwx 1 root root 9 Feb 18 03:08 wwn-0x18399366050272923649x -> ../../sdb
lrwxrwxrwx 1 root root 10 Feb 18 03:08 wwn-0x18399366050272923649x-part1 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Feb 18 03:08 wwn-0x18399366050272923649x-part2 -> ../../sdb2
lrwxrwxrwx 1 root root 9 Feb 18 03:08 wwn-0x6480402500416589825x -> ../../sda
lrwxrwxrwx 1 root root 10 Feb 18 03:08 wwn-0x6480402500416589825x-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Feb 18 03:08 wwn-0x6480402500416589825x-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Feb 18 03:08 wwn-0x6480402500416589825x-part3 -> ../../sda3


Am trying to do all this so i can share properly with samba :"(

HALP
 
Old 02-17-2017, 01:34 AM   #2
BratPit
Member
 
Registered: Jan 2011
Posts: 250

Rep: Reputation: 100Reputation: 100
Read this:

http://www.slackwiki.com/Fstab

and find out what errors you have done editing this line

Quote:
/dev/sdc1/ /home/nothing/blackhole2 auto defaults 0 0
Hint: I see 3 and do not forget make blackhole2 directory

Last edited by BratPit; 02-17-2017 at 02:39 AM.
 
1 members found this post helpful.
Old 02-17-2017, 02:40 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Also remove that trailing slash from "/dev/sdc1/" and "/dev/sdb2/".
 
1 members found this post helpful.
Old 02-17-2017, 03:51 AM   #4
jhsdcsjdcvbdj
Member
 
Registered: Feb 2017
Location: Melbourne AU
Distribution: Slackware 14.2
Posts: 83

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by Alien Bob View Post
Also remove that trailing slash from "/dev/sdc1/" and "/dev/sdb2/".
lol, omg how embarrassing. :/

Thanks AlienBOB.
 
Old 02-17-2017, 04:23 AM   #5
jhsdcsjdcvbdj
Member
 
Registered: Feb 2017
Location: Melbourne AU
Distribution: Slackware 14.2
Posts: 83

Original Poster
Rep: Reputation: Disabled
Exclamation

Quote:
Originally Posted by BratPit View Post
Read this:

http://www.slackwiki.com/Fstab

and find out what errors you have done editing this line



Hint: I see 3 and do not forget make blackhole2 directory
Ok! thanks heaps, I had about 50 browser tabs open for all different distros just trying to get different shreds of information, I guess i got confused somewhere, i'm kind of stupid so that helps.

I knew i had an error somewhere, but i changed it so many times i still couldn't work it out,
I guess i got confused specifying the correct mount point
I think i have got it worked out now.

I edited the fstab file to show:

root@dead:/home/nothing# vi /etc/fstab


#/dev/EXTRA HD's
/dev/sdc1 /home/nothing/blackhole2 auto defaults 0 0
/dev/sdb2 /home/nothing/blackhole1 auto defaults 0 0



#/dev/BOOT & HOME DRIVE *** [DO NOT TOUCH] ***
/dev/sda2 swap swap defaults 0 0
/dev/sda3 / ext4 defaults 1 1
/dev/sda1 /boot ext4 defaults 1 2


#/dev/cdrom /mnt/cdrom auto noauto,owner,ro,comment=x-gvfs-show 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0

devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults


root@dead:/home/nothing# su -l

Its name is Public Opinion. It is held in reverence.
It settles everything. Some think it is the voice of God.
-- Mark Twain

root@dead:~# logout
root@dead:/home/nothing# logout
root@dead:/home/nothing# exit
exit
nothing@dead:~$ mount /home/nothing/blackhole1
mount: only root can mount /dev/sdb2 on /home/nothing/blackhole1
nothing@dead:~$ su
Password:

When it is not necessary to make a decision,
it is necessary not to make a decision.

root@dead:/home/nothing# mount /home/nothing/blackhole1
Mount is denied because the NTFS volume is already exclusively opened.
The volume may be already mounted, or another software may use it which
could be identified for example by the help of the 'fuser' command.

At this point i discovered i couldn't mount the drive because they had already been mounted in KDE. (changed to run level 4)

So i just unmounted via the the GUI in KDE, then ran the commands again.

root@dead:/home/nothing# mount /home/nothing/blackhole1
root@dead:/home/nothing# mount /home/nothing/blackhole2
root@dead:/home/nothing# ls /home/nothing/blackhole2
55000\ tabs/ Games/ Music\ Misc/ System\ Volume\ Information/ Videos/ VirtualDJ/
Downloads/ Music/ Programs/ Trout\ Stuff/ Vile\ stuff/

root@dead:/home/nothing# ls -la /home/nothing/blackhole2
total 2768
drwxrwxrwx 1 root root 4096 Feb 14 04:53 ./
drwx--x--x 30 nothing users 4096 Feb 18 08:03 ../
drwxrwxrwx 1 root root 0 Dec 19 17:27 .Trash-1000/
drwxrwxrwx 1 root root 4096 Oct 18 2015 55000\ tabs/
drwxrwxrwx 1 root root 73728 Jun 19 2016 Downloads/
drwxrwxrwx 1 root root 4096 Sep 8 2015 Games/
drwxrwxrwx 1 root root 2621440 Feb 2 13:52 Music/
drwxrwxrwx 1 root root 4096 Jan 26 02:54 Music\ Misc/
drwxrwxrwx 1 root root 40960 Dec 1 12:52 Programs/
drwxrwxrwx 1 root root 0 Jul 16 2016 System\ Volume\ Information/
drwxrwxrwx 1 root root 4096 Nov 25 22:10 Trout\ Stuff/
drwxrwxrwx 1 root root 49152 Jan 29 14:37 Videos/
drwxrwxrwx 1 root root 24576 Dec 1 12:57 Vile\ stuff/
drwxrwxrwx 1 root root 0 Jan 14 22:31 VirtualDJ/

root@dead:/home/nothing# ls -la /home/nothing/blackhole1
total 40
drwxrwxrwx 1 root root 4096 Feb 14 04:45 ./
drwx--x--x 30 nothing users 4096 Feb 18 08:03 ../
drwxrwxrwx 1 root root 0 Dec 19 17:27 .Trash-1000/
drwxrwxrwx 1 root root 28672 Feb 3 11:08 Movies/
drwxrwxrwx 1 root root 4096 Oct 29 23:49 tv/
root@dead:/home/nothing#

So i'm guessing you can mark this up as solved, thanks heaps BratPit & AlienBOB!
 
Old 02-17-2017, 11:22 AM   #6
TracyTiger
Member
 
Registered: Apr 2011
Location: California, USA
Distribution: Slackware
Posts: 528

Rep: Reputation: 273Reputation: 273Reputation: 273
Quote:
Originally Posted by jhsdcsjdcvbdj View Post
So i'm guessing you can mark this up as solved, thanks heaps BratPit & AlienBOB!
Glad you solved your problem. Actually the originator of the thread (you) is the one that marks it as SOLVED. Use "Thread Tools" just above your first post to accomplish this.
 
Old 02-17-2017, 05:16 PM   #7
jhsdcsjdcvbdj
Member
 
Registered: Feb 2017
Location: Melbourne AU
Distribution: Slackware 14.2
Posts: 83

Original Poster
Rep: Reputation: Disabled
Question

Quote:
Originally Posted by TracyTiger View Post
Glad you solved your problem. Actually the originator of the thread (you) is the one that marks it as SOLVED. Use "Thread Tools" just above your first post to accomplish this.
I thought so, haha, thankyou
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Mount samba share on Slackware: mount error(6) from mount.cifs frushiyama Slackware 11 01-22-2015 07:12 PM
[SOLVED] Server won't boot after trying to mount new hhd rough60 Linux - Hardware 4 02-16-2011 03:44 AM
Need to mount extra internal drive LinuxLiker VectorLinux 6 03-27-2009 10:49 AM
mount error after trying to use another extra harddisk in system suse9.3 rthdesign Linux - Hardware 1 09-04-2005 08:48 AM
need to mount extra / space Geist3 Slackware 5 01-17-2005 08:31 PM

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

All times are GMT -5. The time now is 06:42 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