Hi guys. Slackware 13.1, using "sfdisk". I need to use this one as it can be used in a non-interactive mode, "parted" is not a solution for me. That being said, here is the problem.
Inside my own script I make the partition like this:
Code:
# MAKING PATITION:
set `losetup -f`; dev=$1
`losetup $dev $out`
sfdisk $dev << EOF
,,$fsys
EOF
However after formatting this single partition in FAT16 I can see the drive in my emulated Windows311, but not use it. It says that the drive cannot be accessed.
When I do the same thing interactively with fdisk it all works.
When inspecting the partitions in both cases via "fdisk -ul" I see that whenever sfdisk is used to create the partition it is created starting from the 1 sector. Whenever fdisk is used it is created from 63 sector (which is correct of course).
How can I make my sfdisk start the partition not from the 1st sector, but also from the 63 so that OS wouldn't have problem with that?
I tried like this:
Code:
sfdisk -uS $dev << EOF
63,,$fsys
EOF
But it then just says that the partition does not end on the boundary. Trying to see the content with fdisk -ul says that partition table is incorrect. So doing it this way doesn't work.
Would appreciate any help. Thx!