You are not logged in.

Announcement

Due to heavy spamming of forums registration is going in stages. If you wish to register as a new user with ArchBang Forums, first register and then send an e-mail to: archbangforums at gmail dot com. It should contain the problem you want to discuss or some other AB related content. You will be promoted from registering member with no posting rights to new member with posting rights after that. If your mail is ignored you haven't fulfilled the requirements.

#1 2012-07-10 06:36:59

cirrus
Member
From: Glasgow , Scotland
Registered: 2012-07-10
Posts: 53
Website

cant mount any other drives , permission denied [Solved]

Hey guys , Ive been lookin on the forums and ive seen problems similar but i aint found a soloution , my other drives dont show in PACManFM (even as root)  in ./ media i see one drive (sdb)  but when i try to  enter i get permissions denied error  if i try mount in terminal i get mount: you must specify the filesystem type
error ,this only transpired after doing updates to a fresh install.  here is fdisk -l

[root@archbang cirrus]# fdisk -l    

Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders, total 156250000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x41ab2316

   Device Boot      Start         End      Blocks   Id  System
/dev/sda2   *      206848   156246015    78019584    7  HPFS/NTFS/exFAT

Disk /dev/sdc: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e8fa5

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *        2048     1026047      512000   83  Linux
/dev/sdc2         1026048   488396799   243685376   8e  Linux LVM

Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x62c52070

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048   488394751   244196352    7  HPFS/NTFS/exFAT

Disk /dev/sdd: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000ea90e

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1           16065   312576704   156280320    f  W95 Ext'd (LBA)
/dev/sdd5           16128   312576704   156280288+   7  HPFS/NTFS/exFAT

Disk /dev/sde: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00024185

   Device Boot      Start         End      Blocks   Id  System
/dev/sde1   *           1       80324       40162   83  Linux
/dev/sde2           80325     1140614      530145   82  Linux swap / Solaris
/dev/sde3         1140615    16514819     7687102+  83  Linux
/dev/sde4        16514820   156296384    69890782+  83  Linux

and here is fstab 

# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>	<dump>	<pass>
tmpfs		/tmp	tmpfs	nodev,nosuid	0	0
UUID=4934f8ea-872f-4e91-a86b-a9dcc1f4a041 /home ext4 defaults 0 1
UUID=6a0900d7-8eeb-4b7c-9991-7664a666742f /boot ext2 defaults 0 1
UUID=7ce0798b-789b-4e8d-8edb-2a682ceb2cde / ext4 defaults 0 1
UUID=9930cd17-ed92-4f79-b96a-a294940c69b9 swap swap defaults 0 0

I so hope i can get this licked , i really like this distro  . 
regards , cirrus.

Last edited by cirrus (2012-07-11 14:09:36)


Desktop 3x Boot Sabayon,Debian,Archbang
Arch-Arm - Raspberry Pi Model B Rev 1.0
GPU:ASUS® [G92 EN8800 GT TOP] 512MB DDR3]
http://cirrusminor.info

Offline

#2 2012-07-10 08:31:08

Mr Green
Iso Developer
Registered: 2010-11-07
Posts: 3,746

Re: cant mount any other drives , permission denied [Solved]

Click the drive icon in spacefm it is under your username [top left, home directory] you should then see a list of drives... click to mount

Offline

#3 2012-07-10 10:10:41

oliver
Administrator
Registered: 2010-11-04
Posts: 1,516

Re: cant mount any other drives , permission denied [Solved]

cirrus wrote:

i see one drive (sdb)  but when i try to  enter i get permissions denied error  if i try mount in terminal i get mount: you must specify the filesystem type
error

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048   488394751   244196352    7  HPFS/NTFS/exFAT

You need to mount /dev/sdb1 rather than /dev/sdb

Can you post your exact mount command?


Welly, welly, welly, welly, welly, welly, well. To what do I owe the extreme pleasure of this surprising visit?

Offline

#4 2012-07-10 11:36:26

cirrus
Member
From: Glasgow , Scotland
Registered: 2012-07-10
Posts: 53
Website

Re: cant mount any other drives , permission denied [Solved]

@oliver  ive tried ....
mount /dev/sdb
mount: I could not determine the filesystem type, and none was specified

mount /dev/sdb1
mount: I could not determine the filesystem type, and none was specified

if i click the drive in ./ media ( INT2 label)  in pacmanfm i get  permission error

mount /dev/media/INT2      gives no errors but the drive shows as having 0 files
if i cd to /media/INT2 the ls command in terminal as root also shows 0 files , i can access these files from sabayon which is on another hdd and archbang is added to sabayons grub

i also tried adding the drives uuid to fstab to no avail
UUID=6a0900d7-8eeb-4b7c-9991-7664a666742f /media/INT2  auto auto,users,exec,relatime 0 0

@Mr green  in space fm when i browse to the INT2 drive it returns  mount: /dev/sde1 is already mounted or /media/INT2 busy
       /dev/sde1 is already mounted on /boot
       /dev/sde1 is already mounted on /media/INT2     altho i see 0 files still .  im pretty sure its a permissions issue but obviously i dont know.


[cirrus@archbang ~]$ ls -l /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Jul 10 18:21 01CCFDF3A83E09A0 -> ../../sdd5
lrwxrwxrwx 1 root root 10 Jul 10 18:21 4934f8ea-872f-4e91-a86b-a9dcc1f4a041 -> ../../sde4
lrwxrwxrwx 1 root root 10 Jul 10 18:21 5EB41436B414135F -> ../../sdb1
lrwxrwxrwx 1 root root 10 Jul 10 18:21 6a0900d7-8eeb-4b7c-9991-7664a666742f -> ../../sde1
lrwxrwxrwx 1 root root 10 Jul 10 18:21 7ce0798b-789b-4e8d-8edb-2a682ceb2cde -> ../../sde3
lrwxrwxrwx 1 root root 10 Jul 10 18:21 9930cd17-ed92-4f79-b96a-a294940c69b9 -> ../../sde2
lrwxrwxrwx 1 root root 10 Jul 10 18:21 c69ea041-af02-4aef-9170-4915793bdc82 -> ../../sdc1
lrwxrwxrwx 1 root root 10 Jul 10 18:21 ECCAC84FCAC817AA -> ../../sda2

sdb drive is what im needing , thanks for taking the time  to try help me out.
also if i insert any usb flashstick i dont see it anywhere ....    everything worked well b4 i did all updates , ( heh im told thats a common occurence )  dont phaze me none.  smile
regards
cirrus

Last edited by cirrus (2012-07-10 12:34:51)


Desktop 3x Boot Sabayon,Debian,Archbang
Arch-Arm - Raspberry Pi Model B Rev 1.0
GPU:ASUS® [G92 EN8800 GT TOP] 512MB DDR3]
http://cirrusminor.info

Offline

#5 2012-07-10 12:03:31

Mr Green
Iso Developer
Registered: 2010-11-07
Posts: 3,746

Re: cant mount any other drives , permission denied [Solved]

Try this guide

https://wiki.archlinux.org/index.php/NTFS-3G

Not really an expert on windows stuff, never use it

Offline

#6 2012-07-10 12:38:04

cirrus
Member
From: Glasgow , Scotland
Registered: 2012-07-10
Posts: 53
Website

Re: cant mount any other drives , permission denied [Solved]

Mr Green wrote:

Click the drive icon in spacefm it is under your username [top left, home directory] you should then see a list of drives... click to mount

even as root the usb flashdrive wont mount ,  and i dont see the INT2 (sdb1) hdd in list.  i get
G_TYPE_CHECK_INSTANCE (instance)' failed

(process:1023): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Error connecting to the udisks daemon: Could not connect: No such file or directory

Last edited by cirrus (2012-07-10 12:39:28)


Desktop 3x Boot Sabayon,Debian,Archbang
Arch-Arm - Raspberry Pi Model B Rev 1.0
GPU:ASUS® [G92 EN8800 GT TOP] 512MB DDR3]
http://cirrusminor.info

Offline

#7 2012-07-10 12:40:35

cirrus
Member
From: Glasgow , Scotland
Registered: 2012-07-10
Posts: 53
Website

Re: cant mount any other drives , permission denied [Solved]

Mr Green wrote:

Try this guide

https://wiki.archlinux.org/index.php/NTFS-3G

Not really an expert on windows stuff, never use it

windows ????    u mean the NTFS partitioned drive ??  it mounts but i see 0 files    chmod /media/INT2
Error: Operation not permitted    as root hmm

ntfs-3g /dev/sdb1 /mnt  gives me access but i need to do it manually at boot , can i make a .sh script to do this and if so , where is it to be located ? ty  (openbox)

Last edited by cirrus (2012-07-10 14:40:48)


Desktop 3x Boot Sabayon,Debian,Archbang
Arch-Arm - Raspberry Pi Model B Rev 1.0
GPU:ASUS® [G92 EN8800 GT TOP] 512MB DDR3]
http://cirrusminor.info

Offline

#8 2012-07-10 23:01:47

Mr Green
Iso Developer
Registered: 2010-11-07
Posts: 3,746

Re: cant mount any other drives , permission denied [Solved]

You need to add it too fstab the wiki page I gave you tells you how to do it, that way it will load up during boot

Offline

#9 2012-07-11 01:30:09

SpawnHappyJake
ArchBanger
Registered: 2012-01-13
Posts: 210

Re: cant mount any other drives , permission denied [Solved]

I would change "ntfs-3g /dev/sdb1 /mnt" to:

ntfs-3g /dev/disk/by-uuid/[uuid of volume] /mnt/[insert desired name for dedicated folder]

1. I personally wouldn't want anything directly mounted to /mnt. I'd want everything mounted within /mnt
to be in its own folder within /mnt (the idea being that /mnt can be used for many mounts, and all are on an equal level).

2. There's no gaurantee that next boot that volume will be on sdb. It could be sdg or something. I've learned to darn near always use UUIDs,
and that goes for both fstab and grub.cfg

To get the UUID, just do:

$ sudo blkid /dev/sdb1


BTW, I'm curious what would happen if you specified where to mount the volume within the mount command:

$ sudo mkdir /media/trouble
$ sudo chown $USER /media/trouble
$ sudo chmod 777 -R /media/trouble
$ sudo  mount /dev/sdb1 /media/trouble

As opposed to:

 $ sudo mount /dev/sdb1

(and relying on fstab for the mount point)

Or even specifying that it's ntfs, if it's asking you to specify the filesystem:

 $ sudo  mount -t ntfs /dev/sdb1 /media/trouble

WARNING/DISCLAIMER: My posted solutions (or attempts thereof) are usually my attempt at (re)iterating something that worked for _me_. I do not guarantee they will work for you. Use at your own risk.
My solutions may not be the simplest solutions, either. However, I do not intentionally add pointless complications.

Offline

#10 2012-07-11 07:06:28

cirrus
Member
From: Glasgow , Scotland
Registered: 2012-07-10
Posts: 53
Website

Re: cant mount any other drives , permission denied [Solved]

thank you  $ntfs-3g /dev/disk/by-uuid/5EB41436B414135F /mnt/INT2  mounts the drive , as does the method u was curious about, (could someone plz tell me if this is what i add to fstab to make it automount), i think im having permission issues since update , as i get permission denied errors even working within my $home dir (even as root)  and root is owner of home  (dunno if thats sposed to be case)    thanks for ur help !!
is there away to add that mount command to a startup file rc maybe ??   title can be marked as solved but id like to know how to establish if my permissions are correct hmm    thanks again .

Last edited by cirrus (2012-07-11 07:49:04)


Desktop 3x Boot Sabayon,Debian,Archbang
Arch-Arm - Raspberry Pi Model B Rev 1.0
GPU:ASUS® [G92 EN8800 GT TOP] 512MB DDR3]
http://cirrusminor.info

Offline

#11 2012-07-11 09:54:15

oliver
Administrator
Registered: 2010-11-04
Posts: 1,516

Re: cant mount any other drives , permission denied [Solved]

cirrus wrote:

thank you  $ntfs-3g /dev/disk/by-uuid/5EB41436B414135F /mnt/INT2  mounts the drive , as does the method u was curious about, (could someone plz tell me if this is what i add to fstab to make it automount),

Add this to /etc/fstab

/dev/disk/by-uuid/5EB41436B414135F   /mnt/INT2   ntfs-3g    uid=cirrus,gid=users    0       0

This is assuming your username is cirrus.  If it's not, substitute in your real username.  This will give you permission to write to it (otherwise it will be owned by root)
It also assumes that /mnt/INT2 exists.

i think im having permission issues since update , as i get permission denied errors even working within my $home dir (even as root)  and root is owner of home  (dunno if thats sposed to be case)

/home should be owned by root
/home/cirrus should be owned by you (again, assuming your username is cirrus)


Welly, welly, welly, welly, welly, welly, well. To what do I owe the extreme pleasure of this surprising visit?

Offline

#12 2012-07-11 10:03:06

Mr Green
Iso Developer
Registered: 2010-11-07
Posts: 3,746

Re: cant mount any other drives , permission denied [Solved]

Just to throw petrol on the fire, with recent changes to filesystem stuff gets mounted to /run/media/<user_name>/<uuid>

Well at least for me in pcmanfm

/mnt is totally old skool smile

Offline

#13 2012-07-11 10:52:11

oliver
Administrator
Registered: 2010-11-04
Posts: 1,516

Re: cant mount any other drives , permission denied [Solved]

Mr Green wrote:

Just to throw petrol on the fire, with recent changes to filesystem stuff gets mounted to /run/media/<user_name>/<uuid>

Well at least for me in pcmanfm

/mnt is totally old skool smile

I thought /media (or /run/media) was for removable disks (i.e. automounting stuff) and /mnt (or wherever) was for permanently mounted stuff (like physical disks)

I am very old skool though


Welly, welly, welly, welly, welly, welly, well. To what do I owe the extreme pleasure of this surprising visit?

Offline

#14 2012-07-11 13:04:39

cirrus
Member
From: Glasgow , Scotland
Registered: 2012-07-10
Posts: 53
Website

Re: cant mount any other drives , permission denied [Solved]

thank you so much oliver & mr green & everyone who shared their knowledge on this thread  for your help, ive almost got this workstation tweaked to meet my needs,  ive tried a number of distro's and window managers , archbang w/ openbox is by far the snappyest ive used, bar none .
thanks again troopz
regards
cirrus

Last edited by cirrus (2012-07-11 13:06:27)


Desktop 3x Boot Sabayon,Debian,Archbang
Arch-Arm - Raspberry Pi Model B Rev 1.0
GPU:ASUS® [G92 EN8800 GT TOP] 512MB DDR3]
http://cirrusminor.info

Offline

#15 2012-07-11 14:59:08

Mr Green
Iso Developer
Registered: 2010-11-07
Posts: 3,746

Re: cant mount any other drives , permission denied [Solved]

@oliver you are of course right, I do not have my second drive in fstab so mount it either by pcmanfm [/run/media/blah...]

or I simply mount <drive> /mnt/<where-ever>

Internal and external drives are named the same for example my main drive is sda but if I connect an external drive it will be sdb something that I could never understand.

usb connected drives should be uda [or even eda]

I rememeber back in the day when drives were named hda smile

Offline

#16 2012-07-11 15:40:12

cirrus
Member
From: Glasgow , Scotland
Registered: 2012-07-10
Posts: 53
Website

Re: cant mount any other drives , permission denied [Solved]

just a footnote , oliver again +1 i was able to add another media hdd to fstab ( these ntfs drives are remenants of bad old m$ days, from now i will follow mr. greens lead and in future format all drives to ext4 , cheers guys !
we are the people !!

usb dongles do not  mount and i do not see em in fileman , but i can live without that , ill boot to sabayon if i need to do unetbootin !

mr. green my internal drives go , sda,sdb,sdc,sdd smile as i have 4 internal u are correct if i add usb external it carrys on sde,sdf ect. thanks again for all ur help.

Last edited by cirrus (2012-07-11 16:09:22)


Desktop 3x Boot Sabayon,Debian,Archbang
Arch-Arm - Raspberry Pi Model B Rev 1.0
GPU:ASUS® [G92 EN8800 GT TOP] 512MB DDR3]
http://cirrusminor.info

Offline

#17 2012-07-11 18:53:11

oliver
Administrator
Registered: 2010-11-04
Posts: 1,516

Re: cant mount any other drives , permission denied [Solved]

Mr Green wrote:

@oliver you are of course right

I'm sometimes right, sometimes wrong, but always certain (as Danny Baker used to say) :-)


Welly, welly, welly, welly, welly, welly, well. To what do I owe the extreme pleasure of this surprising visit?

Offline

#18 2012-07-11 19:01:31

oliver
Administrator
Registered: 2010-11-04
Posts: 1,516

Re: cant mount any other drives , permission denied [Solved]

For what it's worth, the usual format of mounting at the command line is:

# mount <device> <mount-point>

So, to mount /dev/sda1 at /mnt/whatever, you would issue

# mount /dev/sda1 /mnt/whatever

You can add whatever options you want before specifying the device.  Such as:
* -t <file system type>
* -o <option1, option2, option3>
etc


Welly, welly, welly, welly, welly, welly, well. To what do I owe the extreme pleasure of this surprising visit?

Offline

#19 2012-07-11 23:38:21

Mr Green
Iso Developer
Registered: 2010-11-07
Posts: 3,746

Re: cant mount any other drives , permission denied [Solved]

@olver 'I used to be indecisive, but now I am not so sure'

@cirrus Can you see your external drives in storage pane of spacefm? when plugged in [they will not be mounted it will just show devices]

Offline

#20 2012-07-12 00:49:23

SpawnHappyJake
ArchBanger
Registered: 2012-01-13
Posts: 210

Re: cant mount any other drives , permission denied [Solved]

I used ntfs with Linux for a long time, then noticed some things mysteriously disappearing. Also, some files would be visible in Windows, but not in Linux. I don't trust ntfs in Linux. I suggest you resolve the issue before you have data loss:
First, make an ext4 partition somewhere and copy your stuff off the ntfs volume onto that one, then reformat the ntfs partition as ext4, and copy the stuff back on. At least that's what I recommend.

Second, you really ought to go in and fix your ownership issues. You should definitely be the owner of your own home folder.

Perhaps the easier way to do the above is to open terminal and do "sudo pcmanfm" to open an administrative file manager. If you already have the file browser open (running as you), you'll be able to easily distinguish them because the root one will have a picture of a key to the left of the "new" button, and below (but not within) "File", whereas the non-root ones won't have that key.

Just right-click on your home folder (in the root pcmanfm), go to properties > permissions, and make yourself the owner. Make sure you can read and write.

Go around fixing other permission issues, too, if you find any.


The command line way of doing it is to use chown and chmod:

To own a folder:

 sudo chown $USER [folder]

And, as far as I know, this recursively makes it so that non-root users can read and write to a folder (and it's contents):

 sudo chmod -R 777 [folder]

So you'd at least want to do:

sudo chown $USER ~

If you choose the command line method.



I don't rely on file browsers to let me mount stuff anymore. I'm with Mr. Green though; if it's in the file browser, just click it to mount it...but if that fails, ls, blkid and mount are your friends.

Do:

$ ls /dev/sd*

to see what block devices you have available. Or even:

$ ls /dev/hd*

if you have the need. Or whatever your relevent abstraction files might be named.


Do:

$ sudo blkid /dev/[whatever]

And look at the label of the volume. Is this the volume you're interested in mounting?
Note: this requires you to name (label) each volume meaningfully. Use tune2fs (for many filesystems) , dosfslabel (for FAT filesystems), or whatever appropriate to rename (or name) a volume with a meaningful name (label), if you forgot to do that when you created the volume.

Then:

$ sudo mkdir [mount point]
$ sudo chown $USER [mount point]
$ sudo chmod -R 777 [mount point]
$ sudo mount /dev/[whatever] [mount point]

And it's mounted. May want to use "-o users" in the mount command so that you can
unmount the volume from a non-root file browser. However, "-o users" implies "-o noexec", meaning you
won't be able to execute anything off the partition.

Periodically go in and delete all the mount point folders you're not using any more.


It's interesting that we have two working commands to mount this volume (ntfs-3g and mount). Reminds me (in a contrasting sort of way) when I couldn't mount floppies with mount, but could with udisks.


BTW, in Linux Mint, all media is mounted to /media by default (unless otherwise specified, such as the root partition, obviously).

I personally have never seen anything not be /dev/sd* in any distro, except for optical drives, floppyies and non-physical things (such as /dev/md*, /dev/loop*, and /dev/mapper/loop*p*). Even USB drives have always been /dev/sd* for me. I've never seen or heard of uda or eda until this thread.

That's yet another reason to use UUIDs rather than hope Linux decides to name something a particular name.

Cheers,
Jake


WARNING/DISCLAIMER: My posted solutions (or attempts thereof) are usually my attempt at (re)iterating something that worked for _me_. I do not guarantee they will work for you. Use at your own risk.
My solutions may not be the simplest solutions, either. However, I do not intentionally add pointless complications.

Offline

#21 2012-07-29 08:25:44

cirrus
Member
From: Glasgow , Scotland
Registered: 2012-07-10
Posts: 53
Website

Re: cant mount any other drives , permission denied [Solved]

sorry my response been slow
@mrgreen   thanks again , yes i found it in space fm and was able to mount the USB dongles .  excellent now my archbang install is tip top smile
@spawnhappyjake , thank you , above has been added to my notes.

im not 100% sure but these problems may have arsin bcos i use sabyons grub and i used its os probe to find my archbang install which resides on  an external 2.5 USB  HDD , ( for now, it be gettin internal status on next release )  because i have no such probs on my laptops archbang install , anyhoo all good now.  /me is a happy camper  smile

Last edited by cirrus (2012-07-29 14:07:32)


Desktop 3x Boot Sabayon,Debian,Archbang
Arch-Arm - Raspberry Pi Model B Rev 1.0
GPU:ASUS® [G92 EN8800 GT TOP] 512MB DDR3]
http://cirrusminor.info

Offline

Board footer

Powered by FluxBB