Hi, usb_fdisk_table was created with fdisk command. Actually, it’s the output of "fdisk -W”.
Adam > On Jan 11, 2016, at 4:49 PM, Nahum Shalman <[email protected]> wrote: > > On 01/09/2016 06:21 AM, ZHU XIAN WEN wrote: >> hello Nahum Shalman, >> >> this is Tony, I read the disk table of usb_fdisk_table starting from 63 >> sector, it is not alignment, may I know what's the tool you used to >> generate the 2 GB disk table, actually, it is not aligned for 4k, how to >> align it? if I need a 8G usb, how to do it. >> >> * Id Act Bhead Bsect Bcyl Ehead Esect Ecyl Rsect Numsect >> 12 128 9 34 0 34 63 243 600 3905400 >> 0 0 0 0 0 0 0 0 0 0 >> 0 0 0 0 0 0 0 0 0 0 >> 0 0 0 0 0 0 0 0 0 0 >> >> thank you very much >> >> best wishes > > Hi Tony, > > If I recall correctly I think I just created a 2000MB file (slightly smaller > than 2GB to protect against people who might have gotten "2GB" USB sticks > that were slightly smaller than 2048MB) and then used that as a raw disk for > running SmartOS under QEMU. > > I think I then just used the standard illumos tools to partition the disk > from within the VM, then dumped out that partition table after mounting the > image as a lofi device. > Unfortunately it's been so long since I did it that I've forgotten precisely > how I did it. > > It might be worth revisiting that partition table to align it properly for 4k > block sizes along with testing the change proposed in > https://github.com/joyent/smartos-live/issues/528 > > I'm hoping others on the mailing list might have some ideas. Ideally if > someone has a physical 2GB device that advertises itself as using 4k blocks, > pointing the tools at that device might help generate a better partition > table, etc. > > -Nahum >
signature.asc
Description: Message signed with OpenPGP using GPGMail
------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
