LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 10-15-2006, 01:40 PM   #1
njbailey
LQ Newbie
 
Registered: Aug 2006
Location: North Ayrshire, Scotland
Distribution: Kubuntu (Hardy Heron)
Posts: 22

Rep: Reputation: 15
Question Linux won't recognise partition table but OS-X and M$ do


I've got a Mustek PVR which was going cheap as I suspect it's discontinued: < GP£100 for a thing with a 40GB drive and an LCD screen on it. Trouble is, when plugging it into my Linux box, although it's claiming to use USB mass storage protocol, and dmesg says it's been attached at /dev/sdb, there's no way of mounting it. (In fact, dmesg contains the detection message twice, is this a clue??)

There is a statement in dmesg saying that it has an unknown partition table. fdisk runs, says there is one partition, but gives out loads of warnings about not ending on a cylinder boundary, nor even looking like a partition table. I'm running udev, so /dev/sdb1 doesn't even get created, but I tried mknod'ing an appropriate entry in /tmp for testing purposes, but of course no dice (not a valid block device -- no surprises there since the partition table wasn't recognised).

The big surprise comes plugging it into a Mac PowerBook. It mounts instantly and you get (interesting line at the end):

Code:
nick$ mount
/dev/disk0s9 on / (local, journaled)
devfs on /dev (local)
fdesc on /dev (union)
<volfs> on /.vol
automount -nsl [201] on /Network (automounted)
automount -fstab [205] on /automount/Servers (automounted)
automount -static [205] on /automount/static (automounted)
/dev/disk2s1 on /Volumes/Untitled (local, nodev, nosuid)
(the Mac calls drive <d> partition <p> disk<d>s<p>

So, what is it the Mac knows that Linux kernel 2.6.18 doesn't? Is there any way of getting the device mounted, perhaps by some explicit specification of the device partition table or geometry? My current fix involves making a SAMBA share on my linux box, then using my wife's Windows laptop which belongs to her employer to transfer the data, but this sucks

Thanks,

Debugging attempt follows...

Nick/.

Code:
polonius:/home/nick# fdisk -l

Disk /dev/sda: 36.7 GB, 36747104256 bytes
255 heads, 63 sectors/track, 4467 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        1216     9767488+  83  Linux
/dev/sda2            1708        4467    22169700   83  Linux
/dev/sda3            1217        1707     3943957+  82  Linux swap / Solaris

Partition table entries are not in disk order
polonius:/home/nick# dmesg | tail -25
usb 2-3.1.1: new full speed USB device using ohci_hcd and address 6
usb 2-3.1.1: not running at top speed; connect to a high speed hub
usb 2-3.1.1: configuration #1 chosen from 1 choice
Initializing USB Mass Storage driver...
scsi2 : SCSI emulation for USB Mass Storage devices
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb-storage: device found at 6
usb-storage: waiting for device to settle before scanning
  Vendor: PVR-2     Model: USB DEVICE        Rev: 1.00
  Type:   Direct-Access                      ANSI SCSI revision: 00
SCSI device sdb: 78140160 512-byte hdwr sectors (40008 MB)
sdb: Write Protect is off
sdb: Mode Sense: 20 00 00 00
sdb: assuming drive cache: write through
SCSI device sdb: 78140160 512-byte hdwr sectors (40008 MB)
sdb: Write Protect is off
sdb: Mode Sense: 20 00 00 00
sdb: assuming drive cache: write through
 sdb: unknown partition table
sd 2:0:0:0: Attached scsi removable disk sdb
  Vendor: PVR-2     Model: USB DEVICE        Rev: 1.00
  Type:   Direct-Access                      ANSI SCSI revision: 00
sd 2:0:0:1: Attached scsi removable disk sdc
usb-storage: device scan complete
polonius:/home/nick# fdisk /dev/sdc

Unable to open /dev/sdc
polonius:/home/nick# fdisk /dev/sdb

The number of cylinders for this disk is set to 9576.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sdb: 40.0 GB, 40007761920 bytes
255 heads, 32 sectors/track, 9576 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes

This doesn't look like a partition table
Probably you selected the wrong device.

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   ?           1        9576    39070035    6  FAT16
Partition 1 does not end on cylinder boundary.

Command (m for help): q

polonius:/home/nick#
 
Old 10-15-2006, 06:54 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Try using Linux fdisk to create a new partition table.
 
Old 10-16-2006, 01:02 AM   #3
njbailey
LQ Newbie
 
Registered: Aug 2006
Location: North Ayrshire, Scotland
Distribution: Kubuntu (Hardy Heron)
Posts: 22

Original Poster
Rep: Reputation: 15
Writing a new partition table turns the thing into a paperweight: it won't even boot, saying "can't mount hdd" in the middle of the display... don't want to do that again (this is the second one). Fortuantely, it says "Mass Storage Capability" on the box, so I'm protected by the Sale of Goods act (it's "not of merchantable quality" if you're not even allowed to partition it, anyway, IANAL: I was nice to them and they sent me a replacement)

Can understand Window$ mounting it: MS are a law unto themselves. But how the heck does the Mac do it?
 
Old 10-16-2006, 02:28 AM   #4
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 1,748

Rep: Reputation: 159Reputation: 159
Are you running a custom kernel?

Do you have the correct 'partition type' support enabled?
 
Old 10-16-2006, 08:11 AM   #5
njbailey
LQ Newbie
 
Registered: Aug 2006
Location: North Ayrshire, Scotland
Distribution: Kubuntu (Hardy Heron)
Posts: 22

Original Poster
Rep: Reputation: 15
I'm running the kernel from Debian Sid, at the wrong computer right now but off hand it's 2.6.18-1-k7-smp. I've seen "partition type" threads on other forums when the "invalid partition type" comes up, but thought that as I'm on dual-processor wintel box hardware I'd be OK with consumer plug-in devices on that front.

How do I tell the partition type of the PVR? Could I dd the raw device (/dev/sdb) or something? or strings it?

Great idea though, keep 'em coming

Nick/.
 
Old 10-17-2006, 04:38 PM   #6
njbailey
LQ Newbie
 
Registered: Aug 2006
Location: North Ayrshire, Scotland
Distribution: Kubuntu (Hardy Heron)
Posts: 22

Original Poster
Rep: Reputation: 15
partition type

parted says it's msdos...

I've also found that the thing won't even display jpeg stills unless you use the windows app to convert them. Have checked the resolution, etc, used imagemagick v6 to convert them from larger source files.

It's looking like this machine's a bit of a crock as far as Linux is concerned.

Caveat emptor.

Nick/.
 
Old 10-31-2006, 02:38 PM   #7
njbailey
LQ Newbie
 
Registered: Aug 2006
Location: North Ayrshire, Scotland
Distribution: Kubuntu (Hardy Heron)
Posts: 22

Original Poster
Rep: Reputation: 15
Had a few spare hours so got a copy of qtparted to try and see what was going on.

Interesting.

/dev/sdd-1 [sic] free 0.01MB Start 0.03MB end 0.04MB
/dev/sdd1 fat32 Active 37.62GB Start 0.04MB end 37.26GB

And on the console you get:

nick@polonius:/home/export$ sudo qtparted
Error: The file system's CHS geometry is (4788, 255, 64), which is invalid.
The partition table's CHS geometry is (4864, 255, 63). If you select Ignore,
the file system's CHS geometry will be left unchanged. If you select Fix,
the file system's CHS geometry will be set to match the partition table's CHS
geometry.
Error: The file system's CHS geometry is (4788, 255, 64), which is invalid.
The partition table's CHS geometry is (4864, 255, 63). If you select Ignore,
the file system's CHS geometry will be left unchanged. If you select Fix,
the file system's CHS geometry will be set to match the partition table's CHS
geometry.


Not much you can do once it's told you that. Don't want to risk reformatting
it or rewriting the partition table, not after the last time!

Nick/.
 
  


Reply

Tags
partitiontable, usb


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
"No partition table or unknown signature on partition table" 10.1 install madcow007 Slackware 4 02-09-2009 11:04 AM
Partition Table Recovery in Linux/XP Dual Boot PC kumarnine Linux - Software 3 04-19-2006 10:50 PM
alternate partition table format for linux trabant Linux - Software 0 09-21-2005 08:27 AM
Slack 10: S-ATA = "No partition table or unknown signature on partition table"? dissolved soul Slackware - Installation 11 08-05-2004 02:12 PM
Partition table unreadable [by Linux installers] AndK Linux - Newbie 10 02-15-2003 04:39 AM


All times are GMT -5. The time now is 07:13 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration