Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 01 Sep 2014, 20:32
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Suggestions
Microsoft, Puppy and the UDF Format
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 5 [75 Posts]   Goto page: Previous 1, 2, 3, 4, 5 Next
Author Message
tazoc


Joined: 11 Dec 2006
Posts: 1157
Location: Lower Columbia Basin WA US

PostPosted: Sat 11 Aug 2012, 12:02    Post subject: Is there a way to detect a UDF disc?  

Master_wrong wrote:
@Karl
Quote:
Code:
mkdir /mnt/DVD
mount-FULL -s -o nostrict /dev/sr0 /mnt/DVD
i tested this to read udf disc burned by nero linux and it work.

shouldnt this be implemented in puppy ?

Thanks
Thank you Karl, that works in Lighthouse64 for a Windows 7 install disc I have. (udf kernel module was already loaded.)

Unfortunately blkid and probepart just tells me its media type is 'iso-9660', so I don't know how to automate that in pmount. Is there a way to detect a UDF disc device from the command line, prior to mounting the disc?

-TaZoC

_________________
lhpup.org Lighthouse 64 6.02
Back to top
View user's profile Send private message Visit poster's website 
pemasu


Joined: 08 Jul 2009
Posts: 5463
Location: Finland

PostPosted: Sun 12 Aug 2012, 02:50    Post subject:  

Not sure if this is of any help, but disktype tells me something:
# disktype /dev/sr0

--- /dev/sr0
Block device, size 6.628 GiB (7116390400 bytes)
CD-ROM, 1 track, CDDB disk ID 023BFD01
Track 1: Data track, 2.197 GiB (2358986752 bytes)
UDF file system
Sector size 2048 bytes
Volume name "ICE_AGE"
UDF version 1.02
ISO9660 file system
Volume name "ICE_AGE"
Publisher "FOX"
Preparer "CVC"
Data size 6.628 GiB (7116390400 bytes, 3474800 blocks of 2 KiB)
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 4231
Location: Gatineau (Qc), Canada

PostPosted: Sun 12 Aug 2012, 03:15    Post subject:  

@Makoto : Thanks for your answer.
_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
Karl Godt


Joined: 20 Jun 2010
Posts: 3964
Location: Kiel,Germany

PostPosted: Sun 12 Aug 2012, 10:09    Post subject: Re: Is there a way to detect a UDF disc?  

tazoc wrote:
Master_wrong wrote:
@Karl
Quote:
Code:
mkdir /mnt/DVD
mount-FULL -s -o nostrict /dev/sr0 /mnt/DVD
i tested this to read udf disc burned by nero linux and it work.

shouldnt this be implemented in puppy ?

Thanks
Thank you Karl, that works in Lighthouse64 for a Windows 7 install disc I have. (udf kernel module was already loaded.)

Unfortunately blkid and probepart just tells me its media type is 'iso-9660', so I don't know how to automate that in pmount. Is there a way to detect a UDF disc device from the command line, prior to mounting the disc?

-TaZoC


Oh god . disktype is heavy . But for comparison Windows Vista also fires the DVD drive up at DirectX/xwin $Windowmanger/boot .. and seems to automount. Have no idea about the commandline for windows though(used a "black 98" once and can remember windows fdisk command).

But my blkid s on Macpup_F3(430/2ttuuxxxdevx) can find it :

1:
bash-3.00#
Code:
file `which blkid`
/bin/blkid: symbolic link to `busybox'
BusyBox v1.19.4 (2012-04-19 16:14:01 GMT+1) multi-call binary.
Copyright (C) 1998-2011 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.

:
Quote:
/dev/sr0: LABEL="SUSE9-2-V0-WINBM" TYPE="udf"


2:
Code:
/sbin/blkid -c /dev/null /dev/sr0

:
Quote:
/dev/sr0: LABEL="SUSE9_2_V0_WINBM" TYPE="udf"

Code:
 /sbin/blkid -v

:
Quote:
blkid 1.0.0 (12-Feb-2003)


3:
Code:
/usr/local/sbin/blkid -c /dev/null /dev/sr0

:
Quote:
/dev/sr0: LABEL="SUSE9-2-V0-WINBM" TYPE="udf"

Code:
/usr/local/sbin/blkid -v

:
Quote:
blkid from util-linux-ng 2.16.2 (libblkid 2.16.0, 10-Feb-2009)

*

Tazoc, my guess is that there a newer defaults in util-linux/busybox. Busybox also has a hund reds of configuration options. The */local/* is configured i think simply "./configure" . UTF-8 seems to confuse things around too. I am starting to compile things "--with-system-gettext" or whatever that configuration option precisely is named since that helps with gtk-2.0 special non-english-chars. Maybe is important to all that poping ntfs malaisse around. Or Win7/8's newer udf -version is not recognized (by the kernel driver).

Further
/sbin/probepart is a script by BK that i have altered in different ways on my full installations to guess udf. Here the Macpup_Foxy3 version :
probepart.bz2
Description  should go to /sbin
crappy but that shows that i did not made it in 5 minutes.
bz2

 Download 
Filename  probepart.bz2 
Filesize  2.97 KB 
Downloaded  369 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
tazoc


Joined: 11 Dec 2006
Posts: 1157
Location: Lower Columbia Basin WA US

PostPosted: Mon 13 Aug 2012, 19:42    Post subject: blkid -p  

Thank you Pemasu and Karl. Very Happy

I think I'm using a blkid from Slackware64 and I found that 'blkid -p' works here.
Code:
bash-4.1# blkid -v
blkid from util-linux 2.19 (libblkid 2.19.0, 10-Feb-2011)
bash-4.1# blkid /dev/sr1
/dev/sr1: LABEL="GRMCULXFRER_EN_DVD" TYPE="iso9660"
bash-4.1# blkid -p /dev/sr1
/dev/sr1: LABEL="UDF Volume" TYPE="udf" USAGE="filesystem"
bash-4.1# blkid --help 2>&1|grep 'superblocks'
  -p          low-level superblocks probing (bypass cache)
-TaZoC
_________________
lhpup.org Lighthouse 64 6.02
Back to top
View user's profile Send private message Visit poster's website 
Karl Godt


Joined: 20 Jun 2010
Posts: 3964
Location: Kiel,Germany

PostPosted: Tue 14 Aug 2012, 09:17    Post subject:  

Mine manpage of blkid does not have the -p option ,
Quote:
E2fsprogs version 1.41.3 October 2008 BLKID(Cool

but i can confirm that the -p option works for blkid from util-linux-ng 2.16.2 .

For removable devices a fixed /etc/blkid.tab is nonsense imo .
Back to top
View user's profile Send private message Visit poster's website 
gcmartin

Joined: 14 Oct 2005
Posts: 4238
Location: Earth

PostPosted: Thu 16 Aug 2012, 18:15    Post subject: UDF is only understood if you read this thread  

One of us wrote:
Thanks to Master_wrong, this works in L64 for a Windows 7 install disc I have.
Code:
mount-FULL -s -o nostrict /dev/sr0 /mnt/dvd

Paste this into a terminal: (If your disc is in the second drive use /dev/sr1 instead of /dev/sr0.)

Unfortunately blkid and probepart just tells me its media type is 'iso-9660', so I don't know how to automate that in pmount or Drives Manager.
I used this approach and got favorable results on my LiH64 system
Code:
bash-4.1# mkdir /media/dvd
<root> ~
bash-4.1# mount-FULL -s -o nostrict /dev/sr0 /media/dvd
mount: block device /dev/sr0 is write-protected, mounting read-only
<root> ~
bash-4.1#
And I now have it mounted so that ROX/PBurn and other subsystems can make use of the DVD's data.

Now for the obvious question
I am sure we are asking ourselves, shouldn't Puppy be using that mount command instead of the one we are using. Is this just one more of those steps Puppy takes as it matures? Can the Puppy system alias this or something so that it not left to the user to just give up?

Understanding this, i thought it to be helpful to try the mount-FULL command on a Puppy ISO disk as well.
Code:
bash-4.1# mount-FULL
rootfs on / type rootfs (rw,relatime)
none on /sys type sysfs (rw,relatime)
tmpfs on /initrd/pup_rw type tmpfs (rw,relatime,size=3482168k)
tmpfs on /initrd/pup_ro1 type tmpfs (rw,relatime,size=1364328k)
tmpfs on /initrd/mnt/tmpfs type tmpfs (rw,relatime,size=364932k)
/dev/loop0 on /initrd/pup_ro2 type squashfs (ro,noatime)
   o
   o
   o
   o
bash-4.1# mount-FULL   -o username=root //192.168.1.42/HDD_a /mnt/NAS2
<root> ~
Thus, I am able to view my mounts (all USBs/HDDs/all DVD UDF media) and, as well, mount a remote LAN resource.

Question 2
How does a community find, like this, get rolled into the base distro build system such that its replaces the old mount command with the modern version which doesn't carry the limitations?

A community request
Could others also test the use of the mount-Full command to insure that compatibilities are not overlooked and shortcomings are missed?

Thanks in advance for any and all help. None of what has been found or shared here is major. But all of it does help in the maturity of Puppy. Its only a show-stopper when someone who isn't expecting a problem hits this.

Anyone know how to make BarryK aware of this need for switching the mount command (certainly would be nice to make him aware of our findings)?

Here to help
Edit: spelling and context corrections

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile

Last edited by gcmartin on Fri 17 Aug 2012, 19:51; edited 1 time in total
Back to top
View user's profile Send private message 
Smithy


Joined: 12 Dec 2011
Posts: 421

PostPosted: Fri 17 Aug 2012, 18:50    Post subject:  

Gave the code a try with a UDF disc (single layer) and a second one.
No Joy. But glad something's working for someone!
These discs can be read and written to in windows, but not on Puppy.

Code:
sh-4.1# mount-FULL -s -o nostrict /dev/sr0 /mnt/dvd
mount: block device /dev/sr0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sr0,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 4238
Location: Earth

PostPosted: Fri 17 Aug 2012, 19:55    Post subject:  

Smithy wrote:
Gave the code a try with a UDF disc (single layer) and a second one.
No Joy. But glad something's working for someone!
These discs can be read and written to in windows, but not on Puppy.

Code:
sh-4.1# mount-FULL -s -o nostrict /dev/sr0 /mnt/dvd
mount: block device /dev/sr0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sr0,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
Hi @Smithy,

Correct me if I'm wrong, but I think you can open /mnt/dvd in ROX and see all the files. I got the same message you got and I was able see the UDF files in ROX.

I'm not sure about the read-only portion and have appealed to others for understanding and expansion to what we can do should the media have been created multi-session.

But, I think you can "read" your files on the UDF media now.

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send private message 
Smithy


Joined: 12 Dec 2011
Posts: 421

PostPosted: Fri 17 Aug 2012, 20:17    Post subject:  

Hi gcmartin, I just tried, I navigated through mount/sr0 (the dvd drive) and it is empty. Tried also dvd folder, that is empty.
I am using 3HD derivative, don't know if the kernel might make a difference.

EDIT..omg..slap me round the head with a catfish, just stuck a dual layer in there, clicked on dvd in rox, and like you said, all the files are there!

And it mounted like lightning, usually have to sit there for a good minute while windows chuntles away loading a dual layer up.

Just tried a few others that are in an "open" state, i.e nearly full but have a coupla gigs left for writing to, and they show up as blank, so possibly closed discs are able to be read in puppy.

Anyways, very good news!
Back to top
View user's profile Send private message 
postfs1


Joined: 27 Mar 2010
Posts: 831

PostPosted: Sat 18 Aug 2012, 20:54    Post subject:  

http://en.wikipedia.org/wiki/Universal_Disk_Format

Quote:

Mount_sr0_UDF
Code:

mkdir -p /mnt/sr0 ; mount /dev/sr0 /mnt/sr0 -t udf -o ro,relatime,iocharset=utf8

ls -1 /mnt/sr0

umount /mnt/sr0 ; rmdir --ignore-fail-on-non-empty /mnt/sr0



_________________
  • I don't know why laboratories are named a hospitals.
  • The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.

Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11032
Location: Arizona USA

PostPosted: Sun 19 Aug 2012, 00:39    Post subject:  

According to this Wikipedia table, Linux can't write to later versions of UDF than 2.01. NetBSD 5, whatever that is, can write to all versions of UDF.
Back to top
View user's profile Send private message 
gcmartin

Joined: 14 Oct 2005
Posts: 4238
Location: Earth

PostPosted: Sun 19 Aug 2012, 11:23    Post subject:  

Yeah @Flash I did see that.

What would be nice is to determine which type of UDF (and from which OSes-applications) our PUPs are capable of reading?

With that understanding, it would make it a little simpler to approach the Linux community for further understanding in how to get PUPs to write. As it stand, currently, this is one of the first in-depth looks at mounting UDFs in PUPs.

Lastly, it should make us wonder if there will be increased use of Blu-Ray UDF file production or increased use of any DVD media as the technology begins to move to hand-helds.

I really do understand the limited resources and the need to prioritize to maximize community benefit.

Personally, this has help me better understand how to help family and friends in this area as they need. This was very timely and I THANK this community for providing insights. THX!!!

Lets hope that the current findings makes its way into current and future PUPs without user needs to request PPM/market research for this media mount. This could make additional development and resolutions a little easier.

Here to help

_________________
Get ACTIVE Create Circles; Do those good things which benefit people's needs!
We are all related ... Its time to show that we know this!
3 Different Puppy Search Engine or use DogPile
Back to top
View user's profile Send private message 
rjbrewer


Joined: 22 Jan 2008
Posts: 4422
Location: merriam, kansas

PostPosted: Sun 19 Aug 2012, 16:23    Post subject:  

gcmartin wrote:
Yeah @Flash I did see that.

What would be nice is to determine which type of UDF (and from which OSes-applications) our PUPs are capable of reading?


The other UDF thread:

http://murga-linux.com/puppy/viewtopic.php?search_id=1098907162&t=74519

_________________

Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs

Back to top
View user's profile Send private message 
Smithy


Joined: 12 Dec 2011
Posts: 421

PostPosted: Tue 04 Sep 2012, 14:54    Post subject:  

So would it be easy enough to put the UDF code in Zigberts PBurn, either automatically mounting when a UDF disk is inserted or possibly a Load UDF Button? Would be a neat little feature.

Maybe a little premature until a few more UDFs are reported in..

As regards writing to UDF, I'm not sure if any Puppyists want to go through the potential of cd/dvd disks occassionally losing their data, but I would bet UDF writing would be pretty solid in Linux, 'cos it seems really good at those sort of things.

And it usually only happens(ed) when you forget to dismount the thing and it used to freak out. Think write behind caching could catch one out sometimes.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 5 [75 Posts]   Goto page: Previous 1, 2, 3, 4, 5 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Taking the Puppy out for a walk » Suggestions
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1161s ][ Queries: 13 (0.0052s) ][ GZIP on ]