Unrecognized logical partitions by media:/, driving me nuts!

Non release banter
User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: Unrecognized logical partitions by media:/, driving me n

Post#11 by brokenman » 28 Mar 2011, 08:20

I'd also say to use the delay cheat to make sure there is sufficient time to pick it up. After boot try: partprobe /dev/sdc and see if you get the window popup for it.
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Unrecognized logical partitions by media:/, driving me n

Post#12 by fanthom » 28 Mar 2011, 08:25

@XAVIER
regarding slax: does this partition appear under /mnt or /media?
if /mnt then mounting is done through udev and not HAL so you may be interested in this solution:
http://forum.porteus.org/viewtopic.php?f=53&t=356
Please add [Solved] to your thread title if the solution was found.

User avatar
XAVIER
White ninja
White ninja
Posts: 12
Joined: 27 Mar 2011, 05:54
Location: USA
Contact:

Re: Unrecognized logical partitions by media:/, driving me n

Post#13 by XAVIER » 28 Mar 2011, 19:17

@fanthom

well i spent the better part of the morning gathering the files and neatly placing them where they are supposed to go.
Checked and triple checked everything.

No joy. :O: :wall:

So i tried the files from both 6.1 and even 6.0 as well, no luck there either.

I don't get it, there is absolutely nothing wrong with the media. I am able to manually mount the partition and write to it perfectly as well as verify the contents.
Everything comes back 5/5 , it simple just isn't picked up somewhere and sent to the appropriate place to be shown in media:/

I think the kde module for this is kio_media manager or something to that affect.


Let me just run by everyone one last time what fdisk says.

root@porteus:~# fdisk -l /dev/sdc

Disk /dev/sdc: 750.2 GB, 750156374016 bytes
34 heads, 32 sectors/track, 1346644 cylinders, total 1465149168 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: 0xa34266cf

Device Boot Start End Blocks Id System
/dev/sdc1 * 63 366281999 183140968+ c W95 FAT32 (LBA)
/dev/sdc2 366282000 1465127999 549423000 f W95 Ext'd (LBA)
/dev/sdc5 366282063 732563999 183140968+ 7 HPFS/NTFS
/dev/sdc6 732564063 1465127999 366281968+ 7 HPFS/NTFS




So as you can see (or how i understand it anyways) , there are 2 primary partitions. And under one of those are 2 logical partitions.

So 3 partitions in total. 2 of these (sdc1 and sdc6) *are* picked up and mounted by kio/hal however sdc5 isn't.

This is the first ntfs partition under the second primary.

I think I do remember at one time or another the partition being displayed in media, i may be wrong.
I should note, ive had similar issues with the flash drive and xfs file systems in the past. But nothing like this.

Posted after 27 minutes 16 seconds:
Re: Unrecognized logical partitions by media:/, driving me nuts!
Should probably also note that with the new files the 2 other partitions do automount at boot.

Also found the following post where people where having the same issues with kio mm, however those files that are referred to in the post dont show up in the porteus file system. (Unless by some chance they are deleted at boot)

http://ubuntuforums.org/archive/index.php/t-229336.html

Posted after 1 hour 27 minutes 54 seconds:
Re: Unrecognized logical partitions by media:/, driving me nuts!
One final and probably the most important thing.


You know what bothers me isn't even the problem so much with kioMM , but more the way that it is handling the practical application.

Which has got me absolutely upset. :shock:


Why do we even need to automount partitions at boot in order for hal to start picking them up? This is what worries me the most.
Especially these days with USB crapware running ramped. It maybe a paranoid agenda but its still a elusive one.


I dont think there is a smiley for this one.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Unrecognized logical partitions by media:/, driving me n

Post#14 by fanthom » 28 Mar 2011, 20:59

any chance to get output of 'blkid' command?
when you plug your hd before booting of porteus then linuxrc creates proper entries for the partitions in /etc/fstab.
HAL checks fstab first and if partition is not there then tries to mount device in the /media folder.

workaround:
add static entry to the fstab.
as you know fstab is refreshed after each boot so you would have to add something like:
mkdir /mnt/sda2 && echo "/dev/sda2 /mnt/sda2 ntfs-3g locale=pl_PL.UTF-8 0 0" >> /etc/fstab
to your /etc/rc.d/rc.local, after that HAL should mount it properly when you plug the device into PC.
Please add [Solved] to your thread title if the solution was found.

User avatar
XAVIER
White ninja
White ninja
Posts: 12
Joined: 27 Mar 2011, 05:54
Location: USA
Contact:

Re: Unrecognized logical partitions by media:/, driving me n

Post#15 by XAVIER » 29 Mar 2011, 04:23

blkid does NOT return the partition info for sdc5 after its mounted.

I tried

mkdir /mnt/sda2 && echo "/dev/sda2 /mnt/sda2 ntfs-3g locale=pl_PL.UTF-8 0 0" >> /etc/fstab

that didn't work so i tried

mkdir /mnt/sda2 && ntfs-3g /dev/sdc5 /mnt/sdc5 && echo "/dev/sdc5 /mnt/sdc5 ntfs-3g locale=pl_PL.UTF-8 0 0" >> /etc/fstab


that didn't work either. only new info is that blkid doesn't display the partition. , I also tried everything with sudo and no joy there either.

:o



edit:

Is there a way to mount the drive BEFORE hal starts ?

edit 2:

heres the output

root@porteus:~# blkid | grep sdc
/dev/sdc6: LABEL="LOCAL II" UUID="F8CCFDB0CCFD6970" TYPE="ntfs"
/dev/sdc1: LABEL="PRIMARY0" UUID="49D6-1C9E" TYPE="vfat"

Posted after 2 hours 52 minutes 37 seconds:
Re: Unrecognized logical partitions by media:/, driving me nuts!
Also not sure, but i think this might be helpful


root@porteus:~# hal-device | grep sdc5
block.device = '/dev/sdc5' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-2/2-2:1.0/host7/target7:0:0/7:0:0:0/block/sdc/sdc5' (string)

User avatar
Hamza
Warlord
Warlord
Posts: 1908
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: Unrecognized logical partitions by media:/, driving me n

Post#16 by Hamza » 29 Mar 2011, 04:27

I tried

mkdir /mnt/sda2 && echo "/dev/sda2 /mnt/sda2 ntfs-3g locale=pl_PL.UTF-8 0 0" >> /etc/fstab

that didn't work so i tried

mkdir /mnt/sda2 && ntfs-3g /dev/sdc5 /mnt/sdc5 && echo "/dev/sdc5 /mnt/sdc5 ntfs-3g locale=pl_PL.UTF-8 0 0" >> /etc/fstab
hehe , it is for localization :)

locale=en_US

Regards,
NjVFQzY2Rg==

User avatar
XAVIER
White ninja
White ninja
Posts: 12
Joined: 27 Mar 2011, 05:54
Location: USA
Contact:

Re: Unrecognized logical partitions by media:/, driving me n

Post#17 by XAVIER » 29 Mar 2011, 05:15

OK

A little progress. :) ,I'm now able to get the partition to automount. But it STILL doesn't show up in media places. :evil:

I think the partition needs to be mounted *before* HAL starts, i might be wrong.


:(

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Unrecognized logical partitions by media:/, driving me n

Post#18 by fanthom » 29 Mar 2011, 21:09

@XAVIER
if 'blkid' doesn't show the partition then there must be something wrong with partition table. i would do a backup and then follow these advices to create new UUID for sda5:
http://ubuntuforums.org/showpost.php?s= ... stcount=10
maybe it will solve the HAL issue?

"I'm now able to get the partition to automount. But it STILL doesn't show up in media places."
what did you do exactly?
Please add [Solved] to your thread title if the solution was found.

User avatar
XAVIER
White ninja
White ninja
Posts: 12
Joined: 27 Mar 2011, 05:54
Location: USA
Contact:

Re: Unrecognized logical partitions by media:/, driving me n

Post#19 by XAVIER » 30 Mar 2011, 00:04

fanthom wrote:what did you do exactly?

Not sure exactly , still trying to figure it out.

I tried adding a UUID with the following command but it didn't work.

dd if=/dev/urandom bs=80 count=1 |xxd -l 80 -c 8 | tail -1 | xxd -r - /dev/sdd5


Note: xxd isn't available in porteus so i had to package and install it manually.
Neither is urandom , but the command seemed to work.


I'm really up against the wall on this one. :sorry:

Posted after 48 minutes 42 seconds:
Re: Unrecognized logical partitions by media:/, driving me nuts!
I noticed something too, SHIFT+Insert no longer works inside terminal

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: Unrecognized logical partitions by media:/, driving me n

Post#20 by brokenman » 30 Mar 2011, 05:54

I noticed something too, SHIFT+Insert no longer works inside terminal
Ctrl + Shft + v
How do i become super user?
Wear your underpants on the outside and put on a cape.

User avatar
XAVIER
White ninja
White ninja
Posts: 12
Joined: 27 Mar 2011, 05:54
Location: USA
Contact:

Re: Unrecognized logical partitions by media:/, driving me n

Post#21 by XAVIER » 30 Mar 2011, 16:07

I think if i can change or add a new UUID to the filesystem(partition) i should be able to get HAL and KIOmm to pick it up.

Its a ntfs windows partition however. & i would need to make certain it wouldn't corrupt the logical partition.

All in all its a dangerous move and im not willing to risk the data right now. I wish NTFS played nice with linux. grrr microsloth

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5667
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Unrecognized logical partitions by media:/, driving me n

Post#22 by fanthom » 30 Mar 2011, 20:53

that's why i said that backup is required :)
up to you if you want to try this solution or just live with this "bug" (if it's your partition table fault then it's not a real porteus bug).

Cheers
Please add [Solved] to your thread title if the solution was found.

User avatar
XAVIER
White ninja
White ninja
Posts: 12
Joined: 27 Mar 2011, 05:54
Location: USA
Contact:

Re: Unrecognized logical partitions by media:/, driving me n

Post#23 by XAVIER » 01 Apr 2011, 01:49

we switched (or are switching) to a kubuntu base ? , is there a reason for this ? :%)

Posted after 9 hours 1 minute 1 second:
Re: Unrecognized logical partitions by media:/, driving me nuts!
well, i moved everything to another ntfs partition and then formatted with gparted 0.63 , everything looks like it went smoothly and KIO is finally picking up all 3 partition.

ill add more information about exactly what i did soon. thanks for everyones help!!!!!!!!!!!!!!!!!!!!!!!!


pps: if you guys could help and star this issue for me it would be a HUGE help
http://code.google.com/p/cyanogenmod/is ... il?id=2915

User avatar
brokenman
Site Admin
Site Admin
Posts: 6105
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v4 all desktops
Location: Brazil

Re: Unrecognized logical partitions by media:/, driving me n

Post#24 by brokenman » 01 Apr 2011, 22:12

Done, voted. Keep us posted. Good to see you found a way to hose the PT and start fresh.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Post Reply