You are not logged in.

#1 2010-07-02 11:15:15

o'neill
Member
Registered: 2010-07-01
Posts: 11

Add/Mount second hard drive

hey guys,


I have a SSD, where my arch lives, and a normal hard disk, where I've stored my data.
But unfortunately I can't access it.

I can see it in /dev but how can I mount it?


thanks

Offline

#2 2010-07-02 11:26:30

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Add/Mount second hard drive

Ultra newbie, but we all learned some time.  Have you partitioned the 2nd HDD yet?  If so what filesystems did you use?  Post the output of 'fdisk -l'

As an aside, you might wanna read through this wiki article to keep your SSD healthy and happy.

Last edited by graysky (2010-07-02 16:38:36)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2010-07-02 12:25:21

o'neill
Member
Registered: 2010-07-01
Posts: 11

Re: Add/Mount second hard drive

I'm using on both hard disks ext4.


Here is the output:

Not needed ^^

Thanks for the SSD-Link. I didn't know that SSDs have limited write/read yikes
I try to make the I/Os lesser

Last edited by o'neill (2010-07-02 12:34:26)

Offline

#4 2010-07-02 12:32:07

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: Add/Mount second hard drive

Read "man mount". You can obmit -t for most filesystems. If you want to have a partition mounted on startup, add an entry to [wiki]fstab[/wiki].

P.S.: depending on your Desktop Envirnoment, your disks should show up automatically, e.g. in Nautilus for gnome.

Last edited by hokasch (2010-07-02 12:34:00)

Offline

#5 2010-07-02 12:36:43

o'neill
Member
Registered: 2010-07-01
Posts: 11

Re: Add/Mount second hard drive

Ah, thanks!

hokasch wrote:

P.S.: depending on your Desktop Envirnoment, your disks should show up automatically, e.g. in Nautilus for gnome.

I just have awesome3, with no filemanager, which I don't need smile

Thanks again!

Offline

#6 2010-07-02 12:45:28

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Add/Mount second hard drive

If it's an internal disc, just mount it permanently in fstab

See 'man fstab' for details.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#7 2010-07-02 13:48:52

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Add/Mount second hard drive

o'neill wrote:

I'm using on both hard disks ext4.

Here is the output:

Not needed ^^

???

Posting to the newbie corner means making assumptions can be detrimental to the user asking for help which is why I asked to see your partition setup.  It baffles me why you won't post the output to facilitate a more educated guess from me and others.  Did you mean to come off as a smart-ass or am I misunderstanding this reply?

Last edited by graysky (2010-07-02 13:49:24)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#8 2010-07-02 14:55:53

o'neill
Member
Registered: 2010-07-01
Posts: 11

Re: Add/Mount second hard drive

I'm sorry.

I wrote the output (see my edit), but I thought you ignore it, so I removed it.

Here is the output again:

Platte /dev/sda: 80.0 GByte, 80026361856 Byte
255 Köpfe, 63 Sektoren/Spur, 9729 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00067ea4

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sda1   *           1          13      104391   83  Linux
/dev/sda2              14          46      265072+  82  Linux Swap / Solaris
/dev/sda3              47        1003     7687102+  83  Linux
/dev/sda4            1004        9729    70091595   83  Linux

Platte /dev/sdb: 1000.2 GByte, 1000204886016 Byte
255 Köpfe, 63 Sektoren/Spur, 121601 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000c34da

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sdb1   *           1      121601   976760001   83  Linux
Mr.Elendig wrote:

If it's an internal disc, just mount it permanently in fstab

Yeah it's an internal disc. I read the manual about fstab, but I couldn't find a solution sad

Here is my fstab:

# 
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
devpts                 /dev/pts      devpts    defaults            0      0
shm                    /dev/shm      tmpfs     nodev,nosuid        0      0

#/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
#/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
#/dev/fd0               /media/fl   auto    user,noauto             0      0

UUID=33c90b36-ded6-4cc6-be81-b825c3770fa2 / ext4 defaults 0 1
UUID=b46aeca7-107e-411d-857b-9ee50d53e46a /boot ext2 defaults 0 1
UUID=f2851ccf-012c-47b9-816e-e853790d8434 /home ext4 defaults 0 1
UUID=f6a841fe-4d3e-4879-9b06-e3d20cf50d01 swap swap defaults 0 0

where can I get the UUID from /dev/sdb?

Last edited by o'neill (2010-07-02 14:59:53)

Offline

#9 2010-07-02 15:48:01

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Add/Mount second hard drive

OK!

1) Make a mount point with the mkdir command (as root) - contemporary thought is to place it under /media for anywhere is fine
2) Add an fstab entry
3) mount it as root

To answer your question, one way is to:

ls -l /dev/disk/by-uuid

I would highly encourage all new users to search around in google for common stuff like this; a simple query give multiple hits on the first page.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#10 2010-07-02 16:20:01

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Add/Mount second hard drive

o'neill wrote:

Yeah it's an internal disc. I read the manual about fstab, but I couldn't find a solution sad

http://wiki.archlinux.org/index.php/Per … ice_naming

Same syntax as your other partions.

UUID=something /some/where somefs defaults 0 1


You can also use LABEL instead of UUID if you want something more human readable.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#11 2010-11-15 14:17:06

williamkray
Member
Registered: 2010-11-06
Posts: 64

Re: Add/Mount second hard drive

Alright, I have an issue and I thought I would tack it onto here rather than make a new thread because it would be unneccessary.

I've edited my fstab and my disk mounts alright on boot, but i cant access anything on it unless I'm root.  And I don't want to need root to listen to my music.

I've chmod the directory I'm mounting to, I've tried different locations, I added rw and users to the fstab entry.  I don't know what I'm doing wrong.

Offline

#12 2010-11-15 14:40:38

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 485
Website

Re: Add/Mount second hard drive

No, you really should create a new topic - don't raise dead topics back up. And it isn't even the same problem.

Offline

Board footer

Powered by FluxBB