Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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.
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.
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.