Jump to content
kilimanjaro

External harddrive [solved]

Recommended Posts

Aloha

 

I am trying to use an external harddrive from my office, but it won't mount.

 

I go into the mandriva control center.

Then I go to local disk, manage disc partitions, then i click on the partition and click mount.

 

What I get is "Error mounting partition /dev/sda1 in directory /media/hd failed"

 

Details:

Mount point: /media/hd

Device: sda1

DOS drice letter : C (just a guess)

Type: ext3

Size: 233GH (99%)

 

Any ideas?

Share this post


Link to post
Share on other sites

As far as I know the....DOS drice letter : C (just a guess)....(.that is a windows thing)

doesn't mean a thing here in Linux land and has nothing to do with trying to sort out your problem.

 

You don't tell us what kind of external hard drive connection it is. Is it USB or an external cased IDE or SATA ???.

 

Without knowing that for starters, how can we help you ???. Three different possibilities with different sets of possible answers.

 

Cheers. John.

Edited by AussieJohn

Share this post


Link to post
Share on other sites

This sounds like a problem with udev and hotplugging the device. I've also had similar messages. Try adding the user to the plugdev group, as this solved it for me on another distro. For example, open a console window and do:

 

gpasswd -a username group

 

so on my system it would be like:

 

gpasswd -a ian plugdev

 

and then that might help you out. Sorry I can't tell you the gui method to do this, as I've not got Mandriva installed. But, this is quick enough to do from console. You have to su to root first to do it.

Share this post


Link to post
Share on other sites

You could also try plugging into a different USB port. On my PC, Mandriva doesn't seem to like the USB ports at the front of my case but anything plugged into the back works fine (the ports work OK in XP).

Share this post


Link to post
Share on other sites

Aloha

 

I am already on the USB group, and I have tried other usb ports, and I get the same thing. I have another usb external harddrive, and sometimes it will give me the same thing, but when I go into the control center I can mount it there, just not this one.

 

kili

Share this post


Link to post
Share on other sites

Did you add yourself to the plugdev group (as I mentioned) to see if it helps? You need to log out and back in again for the changes to take effect.

Share this post


Link to post
Share on other sites

Hi ian,

 

To my knowledge, plugdev doesn't exist in Mandriva, and I'm not aware of an equivalent group (see my thread here: https://mandrivausers.org/index.php?s=&...t&p=351384).

 

kilimanjaro, what does this command say once the drive is connected and powered?

lshal | sed -n '/sda1/,/^$/ p'

 

Yves.

Edited by theYinYeti

Share this post


Link to post
Share on other sites

[root@localhost bob]# lshal | sed -n '/sda1/,/^$/ p'

block.device = '/dev/sda1' (string)

block.is_volume = true (bool)

block.major = 8 (0x8) (int)

block.minor = 1 (0x1) (int)

block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_Maxtor_7Y250P0_10000E000951EE37_0_0' (string)

info.capabilities = {'volume', 'block'} (string list)

info.category = 'volume' (string)

info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list)

info.parent = '/org/freedesktop/Hal/devices/storage_serial_Maxtor_7Y250P0_10000E000951EE37_0_0' (string)

info.product = 'BkUp' (string)

info.udi = '/org/freedesktop/Hal/devices/volume_uuid_4234C20634C1FD43' (string)

linux.hotplug_type = 3 (0x3) (int)

linux.sysfs_path = '/sys/block/sda/sda1' (string)

org.freedesktop.Hal.Device.Volume.method_argnames = {'mount_point fstype extra_options', 'extra_options', 'extra_options'} (string list)

org.freedesktop.Hal.Device.Volume.method_execpaths = {'hal-storage-mount', 'hal-storage-unmount', 'hal-storage-eject'} (string list)

org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount', 'Eject'} (string list)

org.freedesktop.Hal.Device.Volume.method_signatures = {'ssas', 'as', 'as'} (string list)

storage.model = '' (string)

volume.block_size = 512 (0x200) (int)

volume.fstype = 'ntfs' (string)

volume.fsusage = 'filesystem' (string)

volume.fsversion = '3.1' (string)

volume.ignore = false (bool)

volume.is_disc = false (bool)

volume.is_mounted = false (bool)

volume.is_mounted_read_only = false (bool)

volume.is_partition = true (bool)

volume.label = 'BkUp' (string)

volume.linux.is_device_mapper = false (bool)

volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec', 'uid=', 'gid=', 'umask=', 'locale=', 'utf8'} (string list)

volume.mount_point = '' (string)

volume.num_blocks = 490223412 (0x1d383734) (int)

volume.partition.flags = {'boot'} (string list)

volume.partition.label = '' (string)

volume.partition.media_size = 251000193024 (0x3a70c70000) (uint64)

volume.partition.number = 1 (0x1) (int)

volume.partition.scheme = 'mbr' (string)

volume.partition.start = 32256 (0x7e00) (uint64)

volume.partition.type = '0x07' (string)

volume.partition.uuid = '' (string)

volume.size = 250994386944 (0x3a706e6800) (uint64)

volume.unmount.valid_options = {'lazy'} (string list)

volume.uuid = '4234C20634C1FD43' (string)

 

I have idea what this means.

 

kili

Edited by kilimanjaro

Share this post


Link to post
Share on other sites

This all means that your disk is correctly seen, with sensible values. All's fine.

The only line I have doubts about is "storage.model = '' (string)", because the storage model is often used as the mount point name, and it is empty here...

Could you try the following commands as root, just to be sure:

# cd
# mkdir testmount
# mount -o ro -t ntfs /dev/sda1 testmount
# mount | grep sda1
# umount testmount

Please give the output of the 2 mount commands.

 

This will check that the filesystem is not corrupted, or any other problem that might prevent the partition to be mounted in any way.

 

Yves.

Share this post


Link to post
Share on other sites

When I plugged in the harddrive I got this message:

 

The volume 'BkUp' uses the ntfs-3g file system which is not supported by your system.

 

Any Ideas?

 

Also: I tried opening the device on my friends MacBook Pro. It worked fine, no problems

Edited by kilimanjaro

Share this post


Link to post
Share on other sites

[root@localhost bob]# cd

[root@localhost ~]# mkdir testmount

 

[root@localhost ~]#

[root@localhost ~]# mount -o ro -t ntfs /dev/sda1 testmount

[root@localhost ~]# # mount | grep sda1

 

Popup message:

Couldn't display "/root/testmount".

Access was denied.

 

[root@localhost ~]# mount | grep sda1

/dev/sda1 on /root/testmount type ntfs (ro)

[root@localhost ~]# umount testmount

[root@localhost ~]#

 

 

Once again, I have no idea what this means.

Share this post


Link to post
Share on other sites
The volume 'BkUp' uses the ntfs-3g file system which is not supported by your system.

 

Do you have the ntfs-3g package installed?

 

 

Jim

Share this post


Link to post
Share on other sites

From your "lshal" post, and the above "mount" post, we know that:

- Your drive is detected OK by the system, although the blank "storage.model" HAL property is strange.

- Your partition can be mounted by ntfs.

 

Now you'll indeed probably prefer ntfs-3g over ntfs because the former allows writing on the drive.

I don't know NTFS-related issues very well, but it seems to me you could create a /etc/hal/fdi/policy/something.fdi, containing:

<deviceinfo version="0.2">
 <device>
<match key="volume.partition.type" string="0x07">
  <match key="block.is_volume" bool="true">
	<merge key="volume.fstype" type="string">ntfs-3g</merge>
	<merge key="volume.policy.desired_mount_point" type="copy_property">volume.label</merge>
  </match>
</match>
 </device>
</deviceinfo>

 

Then as root:

# service messagebus restart
# service haldaemon restart

and try plugging your drive again.

 

Yves.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...