LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-09-2007, 02:06 PM   #1
romanroman
LQ Newbie
 
Registered: Dec 2007
Posts: 5

Rep: Reputation: 0
mount the disk and the partitions to the O.S.


With the LiveGparted i made on a harddisk 4 partitions - this all for 2e harddisk data device.
The harddisk was formated as ntfs before. For Linux i made it ext3.
Ubuntu shows me the 4 partitions but i am not able to drop data on it. You are not the owner of this disk. No Root - read ore write posible.

How can i a mount the disk and the partitions to the O.S. ?
 
Old 12-09-2007, 02:59 PM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by romanroman View Post
You are not the owner of this disk. No Root - read ore write posible.
What do "whoami" and "ls -al /dev/hd* /dev/sd*" show?
 
Old 12-10-2007, 11:32 AM   #3
romanroman
LQ Newbie
 
Registered: Dec 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by David1357 View Post
What do "whoami" and "ls -al /dev/hd* /dev/sd*" show?
********@********:~$ whoami
********

********@********:~$ ls -al /dev/hd* /dev/sd*" show
>

Last edited by romanroman; 12-10-2007 at 11:34 AM.
 
Old 12-10-2007, 12:21 PM   #4
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by romanroman View Post
********@********:~$ whoami
********
lol, well, you are not root. You need root privileges to mount most things. You can prefix your mount commands with "sudo" if your system uses that method.

Quote:
Originally Posted by romanroman View Post
********@********:~$ ls -al /dev/hd* /dev/sd*" show
>
I find it hard to believe that you have no hard drives in your system. You should see output more like this:

[ubuntu:~]:ls -al /dev/hd* /dev/sd*
brw-rw---- 1 root cdrom 3, 0 2007-12-10 07:06 /dev/hda
brw-rw---- 1 root disk 3, 64 2007-12-10 07:06 /dev/hdb
brw-rw---- 1 root disk 3, 65 2007-12-10 07:06 /dev/hdb1
brw-rw---- 1 root disk 8, 0 2007-12-10 07:07 /dev/sda
brw-rw---- 1 root disk 8, 1 2007-12-10 12:07 /dev/sda1
brw-rw---- 1 root disk 8, 3 2007-12-10 07:07 /dev/sda3
brw-rw---- 1 root disk 8, 4 2007-12-10 07:07 /dev/sda4
 
Old 12-10-2007, 02:56 PM   #5
romanroman
LQ Newbie
 
Registered: Dec 2007
Posts: 5

Original Poster
Rep: Reputation: 0
********@Ubuntu:~$ sudo fdisk -l
[sudo] password for Ubuntu:

Schijf /dev/sda: 251.0 GB, 251000193024 bytes
255 koppen, 63 sectoren/spoor, 30515 cilinders
Eenheid = cilinders van 16065 * 512 = 8225280 bytes
Schijf-ID: 0x008c8452

Apparaat Opstart Begin Einde Blokken ID Systeem
/dev/sda1 1 6374 51199123+ 83 Linux
/dev/sda2 6375 12748 51199155 83 Linux
/dev/sda3 12749 19122 51199155 83 Linux
/dev/sda4 19123 30515 91514272+ 83 Linux


Schijf /dev/sdb: 120.0 GB, 120034123776 bytes
255 koppen, 63 sectoren/spoor, 14593 cilinders
Eenheid = cilinders van 16065 * 512 = 8225280 bytes
Schijf-ID: 0xd75bd75b

Apparaat Opstart Begin Einde Blokken ID Systeem
/dev/sdb1 * 1 14216 114189988+ 83 Linux
/dev/sdb2 14217 14593 3028252+ 5 Uitgebreid
/dev/sdb5 14217 14593 3028221 82 Linux wisselgeheugen
********@Ubuntu:~$
 
Old 12-10-2007, 03:41 PM   #6
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by romanroman View Post
********@Ubuntu:~$ sudo fdisk -l
[sudo] password for Ubuntu:
See? All you needed was a little magic sudo dust.

Now you can run

# sudo mkdir /mnt/part1
# sudo mount -text3 /dev/sda1 /mnt/part1
and you will be good to go...
 
Old 12-10-2007, 05:03 PM   #7
romanroman
LQ Newbie
 
Registered: Dec 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Code:
# sudo mkdir /mnt/part1
# sudo mount -text3 /dev/sda1 /mnt/part1
Ubuntu shows me the 4 partitions _mnt/part1 part2 part3 part4
but i am not able to drop data on it. You are not the owner of this disk. No Root - read ore write posible.
 
Old 12-10-2007, 06:48 PM   #8
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by romanroman View Post
You are not the owner of this disk. No Root - read ore write posible.
What does "ls -al /mnt/part1" show?

Try "sudo chmod a+rwx /mnt/part1". You may have to give the non-root users permission to read, write, and execute the directory.
 
Old 12-10-2007, 09:36 PM   #9
romanroman
LQ Newbie
 
Registered: Dec 2007
Posts: 5

Original Poster
Rep: Reputation: 0
David thanks for al your advices:

"sudo chmod a+rwx /mnt/part1" this works fine


********@********:~$ ls -al /mnt/part1
totaal 24
drwxrwxr-x 3 ******** ******** 4096 2007-12-08 19:08 .
drwxr-xr-x 6 root root 4096 2007-12-10 23:00 ..
drwxrwxr-x 2 root root 16384 2007-12-08 19:08


Thanks from The Netherlands
 
Old 12-11-2007, 10:15 AM   #10
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by romanroman View Post
David thanks for al your advices
You are very welcome. It is always fun helping someone.

Quote:
Originally Posted by romanroman View Post
"sudo chmod a+rwx /mnt/part1" this works fine
You should also try "sudo chmod a-w /mnt/part1" now, and see if execute access is all that is needed to write to the directory. I used to know a lot more about permissions back when I was a user on a Sun machine, but now I just run as root (except on my Ubuntu laptop), so I never worry about it.
 
  


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
How to view/mount separate disk -- move /home to second disk Spearhead40 Ubuntu 12 11-03-2007 04:37 PM
mount directories of partitions, not partitions possible? kpachopoulos Linux - General 9 09-02-2007 08:25 PM
Disk partitions Tomermory Debian 7 06-05-2007 04:44 PM
removed disk partitions - disk is now too small jordanthompson Linux - Software 18 12-09-2004 04:07 PM
How many partitions on one disk? alanbarnard Linux - Newbie 3 12-04-2004 10:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:02 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration