Can some one explain how to install a aditional hard drive

Forum rules
Before you post please read this

Can some one explain how to install a aditional hard drive

Postby frank392 on Sun Aug 05, 2007 12:32 pm

PLEASE :D
Last edited by frank392 on Sun Aug 05, 2007 1:26 pm, edited 1 time in total.
frank392
Level 4
Level 4
 
Posts: 353
Joined: Wed Nov 22, 2006 1:29 pm

Linux Mint is funded by ads and donations.
 

Postby Husse on Sun Aug 05, 2007 1:04 pm

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
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Postby frank392 on Sun Aug 05, 2007 1:24 pm

Hi Husse,
Sorry about that :oops: I was geting very frustrated trying to make work a drive that I have just installed.
frank392
Level 4
Level 4
 
Posts: 353
Joined: Wed Nov 22, 2006 1:29 pm

Postby nick on Sun Aug 05, 2007 1:43 pm

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
nick
Level 5
Level 5
 
Posts: 686
Joined: Sat Dec 02, 2006 8:04 am

Postby Husse on Sun Aug 05, 2007 4:35 pm

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
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Postby frank392 on Mon Aug 06, 2007 1:13 pm

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
frank392
Level 4
Level 4
 
Posts: 353
Joined: Wed Nov 22, 2006 1:29 pm

Postby nick on Mon Aug 06, 2007 1:53 pm

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
nick
Level 5
Level 5
 
Posts: 686
Joined: Sat Dec 02, 2006 8:04 am

Postby frank392 on Mon Aug 06, 2007 2:32 pm

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:
frank392
Level 4
Level 4
 
Posts: 353
Joined: Wed Nov 22, 2006 1:29 pm

Postby nick on Mon Aug 06, 2007 2:49 pm

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
nick
Level 5
Level 5
 
Posts: 686
Joined: Sat Dec 02, 2006 8:04 am

Postby frank392 on Mon Aug 06, 2007 3:08 pm

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: 353
Joined: Wed Nov 22, 2006 1:29 pm

Postby frank392 on Mon Aug 06, 2007 3:28 pm

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
frank392
Level 4
Level 4
 
Posts: 353
Joined: Wed Nov 22, 2006 1:29 pm

Postby nick on Mon Aug 06, 2007 3:48 pm

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
nick
Level 5
Level 5
 
Posts: 686
Joined: Sat Dec 02, 2006 8:04 am

Postby frank392 on Mon Aug 06, 2007 4:11 pm

HI nick,
here is the original command that I have used

frank@ubuntu:~$ sudo mkdir /backup/frank
frank392
Level 4
Level 4
 
Posts: 353
Joined: Wed Nov 22, 2006 1:29 pm

Postby nick on Mon Aug 06, 2007 4:23 pm

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
nick
Level 5
Level 5
 
Posts: 686
Joined: Sat Dec 02, 2006 8:04 am

Postby frank392 on Mon Aug 06, 2007 4:29 pm

:D
frank392
Level 4
Level 4
 
Posts: 353
Joined: Wed Nov 22, 2006 1:29 pm

Postby Husse on Tue Aug 07, 2007 6:27 am

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.
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Postby frank392 on Tue Aug 07, 2007 10:01 am

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:~$
frank392
Level 4
Level 4
 
Posts: 353
Joined: Wed Nov 22, 2006 1:29 pm

Postby scorp123 on Tue Aug 07, 2007 12:48 pm

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:
User avatar
scorp123
Level 8
Level 8
 
Posts: 2287
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Postby scorp123 on Tue Aug 07, 2007 12:50 pm

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.
User avatar
scorp123
Level 8
Level 8
 
Posts: 2287
Joined: Sat Dec 02, 2006 4:19 pm
Location: Switzerland

Postby frank392 on Tue Aug 07, 2007 12:59 pm

Hi Scorp,
I like the way you explain things, thank you :)
any good book on UNIX tha you could recommend?
frank392
Level 4
Level 4
 
Posts: 353
Joined: Wed Nov 22, 2006 1:29 pm

Linux Mint is funded by ads and donations.
 
Next

Return to Mounting Partitions

Who is online

Users browsing this forum: No registered users and 1 guest