Can some one explain how to install a aditional hard drive

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
frank392
Level 4
Level 4
Posts: 379
Joined: Wed Nov 22, 2006 1:29 pm

Can some one explain how to install a aditional hard drive

Post by frank392 »

PLEASE :D
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Husse

Post by Husse »

This is not a subject for the how to section of the forum and to use capital letters only in the subject is considered to be "bad manners" - we can and do read all subjects
Moved to the mounting partitions subforum
frank392
Level 4
Level 4
Posts: 379
Joined: Wed Nov 22, 2006 1:29 pm

Post by frank392 »

Hi Husse,
Sorry about that :oops: I was geting very frustrated trying to make work a drive that I have just installed.
nick
Level 5
Level 5
Posts: 684
Joined: Sat Dec 02, 2006 8:04 am

Post by nick »

Hi Frank

If you want Ext3:

As in http://linux.sys-con.com/read/32662.htm
(but using gparted)

mkdir /backup
chown frank/backup/
With line on fstab left as:
/dev/hdb1 /backup ext3 defaults 1 2

Then created link on desktop to /dev/hdb1/
This now gives HDB1 (formatted as ext3) on dektop, and opening device gives access to /backup


More at:
http://linuxmint.com/forum/viewtopic.php?p=16479#16479

Nick
Husse

Post by Husse »

I was going to answer you, but my lovely wife served some coffee so I went away for a while and I see that Nick has given about the answer I would have given.
But - it is sad that it is so, not complicated, but not at all straight forward
PS We never abandon anyone
frank392
Level 4
Level 4
Posts: 379
Joined: Wed Nov 22, 2006 1:29 pm

Post by frank392 »

Hi nick,
I have two problems:

1.- you want me to use mkdir /backup, ok that did creat a dir on mi / directory but noot on the other drive, is that ok? if not please tell me how to get in to the new disk and creat a dir in that disk.

2.- chown frank/backup/ gave me this error:


frank@ubuntu:~$ chown frank/backup/
chown: missing operand after `frank/backup/'
Try `chown --help' for more information.
frank@ubuntu:~$
thank you very much



Hi Husse,

Thank you, very much :D
nick
Level 5
Level 5
Posts: 684
Joined: Sat Dec 02, 2006 8:04 am

Post by nick »

Hi Frank
1.- you want me to use mkdir /backup, ok that did creat a dir on mi / directory but noot on the other drive, is that ok?
Yes thats fine just make directory on main drive

Try, sudo chown frank.frank /backup

Then add line to fstab

/dev/hdb1 /backup ext3 defaults 1 2
(assuming your new disc is hdb1)
and reboot

Then create link to device on desktop to /dev/hdb1/

You should see backup by going to /home then going up two levels to /

Have not got disc in at moment but am going to add another later tonight so will check my own instructions :)

Maybe Scorps method of doing it under mine on link might be better but will leave it up to you

Nick
frank392
Level 4
Level 4
Posts: 379
Joined: Wed Nov 22, 2006 1:29 pm

Post by frank392 »

thank you nick, the drive is there and the direcctory backup, but one more thing I do not have permission to write to that directory, how can i change the permissions I says the owner is root.
sorry to bother you so much :oops:
nick
Level 5
Level 5
Posts: 684
Joined: Sat Dec 02, 2006 8:04 am

Post by nick »

Hi Frank

Not sure what is going on but Scorp in original post said this problem could occur, but it did not occur with me.

You did do "sudo chown frank.frank /backup"

But Scorp suggested "sudo chown -R frank:frank /backup/frank "

See http://linuxmint.com/forum/viewtopic.php?p=16479#16479

Nick
frank392
Level 4
Level 4
Posts: 379
Joined: Wed Nov 22, 2006 1:29 pm

Post by frank392 »

HI nick,
frank@ubuntu:~$ sudo chown -R frank:frank /backup/frank
Password:
chown: cannot access `/backup/frank': No such file or directory
frank@ubuntu:~$
that is what I got
frank392
Level 4
Level 4
Posts: 379
Joined: Wed Nov 22, 2006 1:29 pm

Post by frank392 »

Hi nick
( 3 days later )

ts is working now!
I did what scorp said
sudo mkdir /backup/nick
sudo chown -R nick:nick /backup/nick
of course changing nick to frank

thank you for all you help :D
nick
Level 5
Level 5
Posts: 684
Joined: Sat Dec 02, 2006 8:04 am

Post by nick »

Hi Frank

Not sure what is going on

Just made folder backup and used
sudo chown nick.nick backup
and can read and right to it

Deleted folder, remade it and used
sudo chown -R nick.nick /backup/
and can read and right to it

Note no nick on end of second command

Did you use sudo to make original directory? and use /

sudo mkdir /backup so that it lives in / and not home

Anybody help??

Will put spare disc in and try later

Nick
frank392
Level 4
Level 4
Posts: 379
Joined: Wed Nov 22, 2006 1:29 pm

Post by frank392 »

HI nick,
here is the original command that I have used
frank@ubuntu:~$ sudo mkdir /backup/frank
nick
Level 5
Level 5
Posts: 684
Joined: Sat Dec 02, 2006 8:04 am

Post by nick »

Hi
ts is working now!
:) :)

When you were posting that I making/deleting/changing permissions with the "answer post"
page open :)

So I sorta "went back in time"

Glad its working

Nick
frank392
Level 4
Level 4
Posts: 379
Joined: Wed Nov 22, 2006 1:29 pm

Post by frank392 »

:D
Husse

Post by Husse »

I see the probable cause to the problems
here is the original command that I have used

Quote:
frank@ubuntu:~$ sudo mkdir /backup/frank
Here frank is in his home directory if I'm not mistaken. Then no sudo should be used. With sudo root becomes the owner, without you become the owner.
frank392
Level 4
Level 4
Posts: 379
Joined: Wed Nov 22, 2006 1:29 pm

Post by frank392 »

HI Husse,
If I try to create a directory the way you tell me I get this:
frank@ubuntu:~$ mkdir /oficina/
mkdir: cannot create directory `/oficina/': Permission denied
frank@ubuntu:~$
scorp123
Level 8
Level 8
Posts: 2272
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Post by scorp123 »

Husse wrote: frank@ubuntu:~$ sudo mkdir /backup/frank
Here frank is in his home directory if I'm not mistaken.[/quote] This is irrelevant. He could be in /etc or wherever he wishes ... for as long as he doesn't try anything "funny" there. But he doesn't. The command is pretty clear.
Husse wrote: Then no sudo should be used. With sudo root becomes the owner, without you become the owner.
Without "sudo" you will hardly be able to create a new directory "backup" underneath "/" .. because that's precisely what " /backup " means. ==> Directory called "backup" underneath " / " .... So

Code: Select all

sudo mkdir /backup/frank 
is not only correct but absolutely necessary.

He didn't type "sudo mkdir /home/frank/backup" or "cd /home/frank && sudo mkdir ./backup" or anything similar ... in those cases you'd be right. But frank didn't do that :wink:
scorp123
Level 8
Level 8
Posts: 2272
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Post by scorp123 »

frank392 wrote:mkdir /oficina/
mkdir: cannot create directory `/oficina/': Permission denied
Of course. A normal user is not supposed to touch anything on " / " e.g. by creating a new directory in it ... only root's God-like powers can do that.
frank392
Level 4
Level 4
Posts: 379
Joined: Wed Nov 22, 2006 1:29 pm

Post by frank392 »

Hi Scorp,
I like the way you explain things, thank you :)
any good book on UNIX tha you could recommend?
Locked

Return to “Storage”