LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-14-2013, 10:08 AM   #1
sayhello_to_the_world
Member
 
Registered: May 2013
Posts: 220

Rep: Reputation: Disabled
how to treat a external hdd when using it on two diff notebooks [name-conventions]


good day dear linux experts

update;: guess i solved it:

well - hmm i found out that Names are irrelevant, ownership is based on the UID and GID numbers, not the names.

hmm - that mens - i am going to use a different directory for each notebook.

i will come back and report


here we have the thread:


i have two notebooks and a new external hdd.

this is a thread that wants to make clear how to treat a external hdd when using it on two diff notebooks, Are there any issue i can be faced - eg. can there be any conflicts with naming-conventions


what is aimed: well i want to collect and backup the data from the both notebooks. how to do that:

well i do like that:

i create a directory

Code:
# mkdir /mnt/external
and mount this with
Code:
mount /dev/sdb1 /mnt/external

then i do that:


Code:
chomd -R 0777 /mnt/external
and then i mount again with

Code:
mount /dev/sdb1 /mnt/external
question. can i do this procedure with the both machines - can i do it with exactly the same commands, names - or is it not corrrect to name the directories on the external drive with exactly the same name!!?

Well - for me as a beginnner in the filed of mounting drives - it is a important question: i do not want to cause conflicts


if i have to explain the ideas and thoughts more thouroghly - just let me know.

love to hear from you





ps see some results - that i got when trying to name (/treat) the external drive exacly the same way ... when it is connected to the second notebook

see seome reports and steps i take - as trying to mount the external drive on the second notebook


Code:
Passwort: 
linux-70ce:/home/martin # 
linux-70ce:/home/martin #         mkdir -p /mnt/external
linux-70ce:/home/martin # mount /dev/sdb1 /mnt/external
linux-70ce:/home/martin # chomd -R 0777 /mnt/external
If 'chomd' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf chomd
linux-70ce:/home/martin # chomd -R 0777 /mnt/external
If 'chomd' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf chomd
linux-70ce:/home/martin # umount /dev/sdb1
linux-70ce:/home/martin # 
linux-70ce:/home/martin # chomd -R 0777 /mnt/external
If 'chomd' is not a typo you can use command-not-found to lookup the package that contains it, like this:
    cnf chomd
linux-70ce:/home/martin # chown martin:users /mnt/external
linux-70ce:/home/martin # mount /dev/sdb1 /mnt/external
linux-70ce:/home/martin # 
linux-70ce:/home/martin # mount  /mnt/external
mount: /dev/sdb1 is already mounted or /mnt/external busy
       /dev/sdb1 is already mounted on /run/media/martin/HDDRIVE2GO
       /dev/sdb1 is already mounted on /var/run/media/martin/HDDRIVE2GO
       /dev/sdb1 is already mounted on /mnt/external
linux-70ce:/home/martin #
hmmm - it is a bit strange isnt it

Last edited by sayhello_to_the_world; 12-14-2013 at 11:35 AM.
 
Old 12-14-2013, 12:21 PM   #2
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Debian Sid. Arch. In the process of converting to and learning FreeBSD
Posts: 1,023
Blog Entries: 6

Rep: Reputation: 237Reputation: 237Reputation: 237
The command you want is chmod. The error hinted at you numerous times you've made a typo.

Also it appears that you shouldn't need to mount the drive manually. I see /run/media/.../ which indicates it's being automatically mounted on detection.
 
  


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
Booting Problem. Windows and ubuntu on internal hdd. Centos on External USB hdd faisal59 Linux - Distributions 1 07-17-2013 09:19 AM
[SOLVED] Installing OS on external hdd w/o changing MBR on Primary hdd KvK Linux - Laptop and Netbook 7 01-26-2012 10:20 AM
Slow USB transfer rates (60kb p/s) External HDD --> Internal HDD drfrostbyte Linux - Hardware 4 03-28-2011 02:20 AM
I installed ubuntu 9.04 to my Maxtor external hdd. I have no internal hdd. I can boot dont33 Linux - Newbie 1 08-13-2009 05:13 PM
booting machine with linux on an external HDD without HDD connected drsoum Linux - Newbie 2 07-22-2007 04:47 AM


All times are GMT -5. The time now is 12:56 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration