LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-15-2005, 08:34 AM   #1
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Rep: Reputation: 30
dd very strange.


this one could be very strange.




linux:/home/student/Desktop # mount 1.iso 1 -o loop
linux:/home/student/Desktop # du 1
3 1/media.5
480910 1/suse/i586
215250 1/suse/noarch
696162 1/suse
696271 1 --------------------------------------------------------->>>see file size
linux:/home/student/Desktop # du 1.iso
1504 1.iso -------------------------------------------------------->>see file size.
linux:/home/student/Desktop #


one 1.5MB data is now 696.2MB of data?how is this?
 
Old 09-15-2005, 09:17 AM   #2
blindcoder
ROCK Linux
 
Registered: Dec 2003
Location: Berlin, Germany
Distribution: Crystal ROCK
Posts: 108

Rep: Reputation: 15
If you downloaded the file then it might be incomplete. The iso9660 metadata is complete and telling you the files in that directory are actuall 600 MB in size but the ISO is incomplete and trying to access the file would fail.
You are free to try :)


Greetings,
Benjamin
 
Old 09-15-2005, 09:45 AM   #3
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
no no no .
i have not downloaded anythink .
this this what i did.

#dd if=/dev/hdc of=1.iso count=3000

it extract's only 1.5 of data to my 1.iso.when i mount it it shows 680MB.It is really a strange.is not it?
 
Old 09-15-2005, 10:06 AM   #4
blindcoder
ROCK Linux
 
Registered: Dec 2003
Location: Berlin, Germany
Distribution: Crystal ROCK
Posts: 108

Rep: Reputation: 15
no it is not strange. It is exactly the same as if you had only downloaded the first 1.5 MB. After that see my explanation above.
 
Old 09-15-2005, 10:13 AM   #5
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
so is there any way to extract the first 150 MB of data from my full cd.
and also 150MB to 500MB of data using dd command.
 
Old 09-15-2005, 10:16 AM   #6
blindcoder
ROCK Linux
 
Registered: Dec 2003
Location: Berlin, Germany
Distribution: Crystal ROCK
Posts: 108

Rep: Reputation: 15
mount it using -o loop and then start copying.

Besides, maybe it would be easier if you just told us what you want to achieve.
 
Old 09-15-2005, 10:30 AM   #7
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
i want to copy a few MB's from my cd.but there is no virtual connection between my hdc and the data.( also i want to copy some portion of my
cd to my harddisk.)is this possible by dd or else any command.
 
Old 09-15-2005, 10:47 AM   #8
blindcoder
ROCK Linux
 
Registered: Dec 2003
Location: Berlin, Germany
Distribution: Crystal ROCK
Posts: 108

Rep: Reputation: 15
why not just mount the cd and copy the files over?
 
Old 09-19-2005, 02:21 AM   #9
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora
Posts: 1,835

Rep: Reputation: 260Reputation: 260Reputation: 260
You use

dd if=/dev/hdc of=myfile.iso bs=2048 count=75000 conv=notrunc,noerror

This will extract about the first 150 MB. An iso9660 sector is 2048 bytes. This is a sector for sector copy.
 
Old 09-19-2005, 07:37 AM   #10
bruse
Member
 
Registered: Feb 2005
Location: internet
Distribution: Debian
Posts: 821

Original Poster
Rep: Reputation: 30
what about copying 150 MB to 300 MB data of my cd.?thanks.
 
  


Reply


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
a very strange need mchitrakar Linux - Software 1 10-15-2005 02:14 PM
Strange New Look Boffy Mandriva 4 04-14-2005 08:23 PM
strange, strange alsa problem: sound is grainy/pixellated? fenderman11111 Linux - Software 1 11-01-2004 06:16 PM
Sound Issues with XMMS/ mpg123 strange (strange noises) thegreatbob Linux - Software 0 06-25-2004 04:18 PM
strange wim Linux - General 3 02-06-2002 03:35 PM


All times are GMT -5. The time now is 02:47 PM.

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