Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[partially solved] udev: HDD has wrong diskspace
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
GeorgGentoo
n00b
n00b


Joined: 29 Mar 2004
Posts: 34
Location: Karlsruhe, .DE

PostPosted: Mon Aug 29, 2005 5:52 pm    Post subject: [partially solved] udev: HDD has wrong diskspace Reply with quote

Hi,

since it's very popular ;-) I have an external HDD being adapted through USB to my system. It's a 80 GB drive.
There is no problem when mounting it without help of udev. In this case the partition table is fine and fdisk finds the 80 GB storage volume.

Code:

Aug 29 19:41:24 dionaea SCSI device sda: 156368016 512-byte hdwr sectors (80060 MB)
Aug 29 19:41:24 dionaea sda: assuming drive cache: write through
Aug 29 19:41:24 dionaea usb-storage: queuecommand called
Aug 29 19:41:24 dionaea usb-storage: *** thread awakened.
Aug 29 19:41:24 dionaea usb-storage: Command TEST_UNIT_READY (6 bytes)


However I actually want to use udev. I map the drive to /dev/usb/hdd. Now `fdisk /dev/usb/hdd` only finds ~ 5 GB. Furthermore it cannot write the partition table correctly so I think there could be an error with udev and -maybe- the way it creates the block device file.

There are effictively no hints shown in the kernel log. :?

Does anyone have the same problem and knows how to solve or circumvent it?
Thanks...

Georg
_________________
--
Ciao
Georg


Last edited by GeorgGentoo on Sun Sep 04, 2005 7:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Mon Aug 29, 2005 6:10 pm    Post subject: Reply with quote

You sure you don't have a 4.7GB dvd in your dvd-writer on /dev/hdd?
And what's wrong with simply using /dev/sda to access the external harddisk?
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
GeorgGentoo
n00b
n00b


Joined: 29 Mar 2004
Posts: 34
Location: Karlsruhe, .DE

PostPosted: Tue Aug 30, 2005 9:13 pm    Post subject: Reply with quote

nixnut wrote:
You sure you don't have a 4.7GB dvd in your dvd-writer on /dev/hdd?


No. There is no connection to the dvd drive. It seems to be another issue.

nixnut wrote:
And what's wrong with simply using /dev/sda to access the external harddisk?


There is absolutely nothing wrong with that except the thing that I'd like to mount the drive with udev to have it always on /dev/usb/<defined point> mountable. This should be a disk to be used as backup device. Using USB there is no way of knowing if the device is /dev/sda, /dev/sdb, and so on. :-/
_________________
--
Ciao
Georg
Back to top
View user's profile Send private message
GeorgGentoo
n00b
n00b


Joined: 29 Mar 2004
Posts: 34
Location: Karlsruhe, .DE

PostPosted: Tue Aug 30, 2005 9:27 pm    Post subject: Problem solved Reply with quote

Hm, I've completely formated the drive without udev (80 GB).
Now plugged the drive in, mounted it using udev and its 80 GB volume are shown.

I'll watch this for a time -- though my problem is solved for now, I'm not sure if it is for long...
_________________
--
Ciao
Georg
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum