LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 02-04-2012, 05:35 AM   #1
mbzadegan
Member
 
Registered: Jul 2011
Location: beside of andromeda
Distribution: LFS , Fedora , Debian , Redhat , TC , Slitaz , Suse , ....
Posts: 34

Rep: Reputation: Disabled
Question Change Sector Size from 2048 to 512 for syslinux installing ?


Dear Forumer,
I tried to install syslinux to my pendrive but note me to sector size is not 512b.
How can i change my sector size from 2048 to 512b for install syslinux on it?

Last edited by mbzadegan; 02-04-2012 at 05:53 AM.
 
Old 02-04-2012, 04:40 PM   #2
jefro
Guru
 
Registered: Mar 2008
Posts: 5,946

Rep: Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583
HUH??

I never heard of that. I just run install it to whatever flash I have and when it fails it fails for other reasons.

HP had one of the best tools to fix stubborn flash drives. There was a flip bit program that might fix a few others. But you don't need to change the geometry of the drive. Pretty hard to do also.

Why do you want to do this?
 
Old 02-04-2012, 10:11 PM   #3
mbzadegan
Member
 
Registered: Jul 2011
Location: beside of andromeda
Distribution: LFS , Fedora , Debian , Redhat , TC , Slitaz , Suse , ....
Posts: 34

Original Poster
Rep: Reputation: Disabled
I found it by parted and fdisk ,

root@bt:~# parted /dev/sdb
Warning: Device /dev/sdb has a logical sector size of 2048. Not all parts of GNU Parted support this at the moment, and the working code is HIGHLY EXPERIMENTAL.

GNU Parted 2.2
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: SONY WALKMAN (scsi)
Disk /dev/sdb: 3974MB
Sector size (logical/physical): 2048B/2048B
Partition Table: msdos

Number Start End Size Type File system Flags

(parted) q
root@bt:~# fdisk -l

Disk /dev/sda: 1000.2 GB, 1000203804160 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xee9eee9e

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 12749 102297600 7 HPFS/NTFS
/dev/sda3 12749 117284 839680000 7 HPFS/NTFS
Partition 3 does not end on cylinder boundary.
/dev/sda4 117284 121602 34678785 5 Extended
/dev/sda5 117284 120931 29295616 83 Linux
/dev/sda6 120932 121602 5382144 82 Linux swap / Solaris
Note: sector size is 2048 (not 512)

Disk /dev/sdb: 3974 MB, 3974103040 bytes
123 heads, 62 sectors/track, 254 cylinders
Units = cylinders of 7626 * 2048 = 15618048 bytes
Sector size (logical/physical): 2048 bytes / 2048 bytes
I/O size (minimum/optimal): 2048 bytes / 2048 bytes
Disk identifier: 0x6f20736b
 
Old 02-06-2012, 04:55 PM   #4
jefro
Guru
 
Registered: Mar 2008
Posts: 5,946

Rep: Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583Reputation: 583
I meant I never heard of trying to change it.

Did you get it working?
 
Old 02-08-2012, 06:44 AM   #5
mbzadegan
Member
 
Registered: Jul 2011
Location: beside of andromeda
Distribution: LFS , Fedora , Debian , Redhat , TC , Slitaz , Suse , ....
Posts: 34

Original Poster
Rep: Reputation: Disabled
With 0,1 anything is possible ...
I think that like this link http://www.syslinux....ary/007870.html i must changed sector size in syslinux source !!
can anyone help me to change sector size in syslinux source from 512 to 2048 ??

Last edited by mbzadegan; 02-08-2012 at 06:48 AM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
reducing the advertised EDNS UDP packet size to 512 octets waqasce Linux - Server 2 05-11-2012 11:14 PM
how to find the sector size of a hard drive? rabbit2345 Linux - Hardware 3 01-23-2012 09:19 PM
How to change USB flash drive sector size ario Linux - Hardware 3 10-06-2011 05:05 PM
cdrom sector size rajesh_b Programming 3 06-02-2006 11:07 AM
FAT: bogus logical sector size 0 dzt Linux - General 3 10-22-2003 08:10 PM


All times are GMT -5. The time now is 06:47 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration