LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 07: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, 08: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, 08: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, 09: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, 09: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, 09: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, 09: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, 09: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, 01:21 AM   #9
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
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, 06: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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
Open Source Consulting | Domain Registration