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 07-16-2006, 01:55 PM   #1
sr_25
Member
 
Registered: Nov 2005
Location: Colorado
Posts: 122

Rep: Reputation: 15
dd ntfs to fat32


I have read the very informative thread here about the dd command and thought I should tinker around with it. Here is what I did. I booted up my IBM laptop with Puppy 2 cd.
Code:
dd if=/dev/hda1 skip=1 of=/dev/sda1 seek=1 bs=4k conv=noerror
Worked just fine I could browse the new copy of my drive everything worked flawlessly. After a reboot though I can't access the newly copied partition at all. I tried mounting with MUT and it doesn't allow me to browse it.
dmesg | tail yields this:
Code:
    File system has been set read-only
FAT: Filesystem panic (dev sda1)
    invalid access to FAT (entry 0x00b80010)
e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
FAT: Filesystem panic (dev sda1)
    invalid access to FAT (entry 0x00b80010)
    File system has been set read-only
FAT: Filesystem panic (dev sda1)
    invalid access to FAT (entry 0x00b80010)
    File system has been set read-only
So I tried to mount as read only but no dice.
Code:
mount -t vfat -o ro /dev/sda1 /mnt/test
after creating the test folder of course. What have I done wrong?

Last edited by sr_25; 07-16-2006 at 01:57 PM.
 
Old 07-16-2006, 02:01 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
If it was ntfs on hda1 it will still be ntfs on sda1. Try mounting it with the ntfs driver.
 
Old 07-16-2006, 02:08 PM   #3
sr_25
Member
 
Registered: Nov 2005
Location: Colorado
Posts: 122

Original Poster
Rep: Reputation: 15
tried:
mount -t ntfs -o user,ro /dev/sda1 /mnt/test

output of dmesg | tail
Code:
FAT: Filesystem panic (dev sda1)
    invalid access to FAT (entry 0x00b80010)
FAT: Filesystem panic (dev sda1)
    invalid access to FAT (entry 0x00b80010)
NTFS-fs warning (device sda1): is_boot_sector_ntfs(): Invalid boot sector checksum.
NTFS-fs error (device sda1): read_ntfs_boot_sector(): Primary boot sector is invalid.
NTFS-fs error (device sda1): read_ntfs_boot_sector(): Mount option errors=recover not used. Aborting without trying to recover.
NTFS-fs error (device sda1): ntfs_fill_super(): Not an NTFS volume.
NTFS-fs error (device sda1): parse_options(): Unrecognized mount option user.
NTFS-fs error (device sda1): parse_options(): Unrecognized mount option user.
/edit
Looks like to me I could fix the mbr and actually boot this in windows, but I just want to be able to look at through linux for now.

Last edited by sr_25; 07-16-2006 at 02:11 PM.
 
Old 07-16-2006, 02:09 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
What is the reason for skipping the first 4K Bytes of the partition? I suspect that you have left out some crucial file system info.
 
Old 07-16-2006, 02:11 PM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 123Reputation: 123
Yeah, the skip/seek would have a tendency to screw things up when you don't copy the whole partition.
 
Old 07-16-2006, 07:16 PM   #6
sr_25
Member
 
Registered: Nov 2005
Location: Colorado
Posts: 122

Original Poster
Rep: Reputation: 15
http://www.linuxquestions.org/questi...light=learn+dd

Quote:
dd if=/dev/sda skip=1 of=/dev/sdb seek=1 bs=4k conv=noerror
Skip skips input blocks at the beginning of the media(sda). Seek skips over so many blocks on the output media before writing(sdb). By doing this, you leave the first 4k bytes on each drive untouched. You don't want to tell a drive it is bigger than it really is by writing a partition table from a larger drive to a smaller drive. The first 63 sectors of a drive are empty, except sector 1, the MBR.
The only difference that I think this makes is the fact that the partitions are different sizes and my original XP partition is primary and the copied to partition is logical. If I were cloning this drive to use as a boot partition I would have copied over the mbr also, but my intent was to just be able to read the data! This was just an exercise for me , but I would like to understand it.
 
Old 07-16-2006, 07:52 PM   #7
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 123Reputation: 123
Yes, the skip/seek might apply when copying a whole disk to another, but not from one partition to another. When using partitions, your are only copying filesystems and so you should copy from the very beginning on.
 
Old 07-16-2006, 07:56 PM   #8
sr_25
Member
 
Registered: Nov 2005
Location: Colorado
Posts: 122

Original Poster
Rep: Reputation: 15
Gotcha, so I messed up again! At least I know now, rather than later, when I might really need it! I missed that subtle difference when reading the dd post!
 
Old 07-16-2006, 08:03 PM   #9
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 123Reputation: 123
That's alright, it's why we're here.

Hope it works for you now.
 
  


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
NTFS -> FAT32 mounting help adds2one Slackware 5 09-20-2005 02:07 PM
Linux, NTFS and FAT32 foxy123 Linux - General 5 12-15-2004 06:09 AM
how to convert ntfs to fat32 Longinus Linux - Newbie 7 08-05-2004 06:58 AM
NTFS vs FAT32 Santorres General 21 03-18-2004 02:48 AM
NTFS vs. FAT32 44TR Linux - General 13 06-27-2003 10:30 PM


All times are GMT -5. The time now is 07:23 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