All of lore.kernel.org
 help / color / mirror / Atom feed
* 64 bit kernel won't mount /
@ 2015-01-19 16:45 Gene Heskett
  2015-01-20 12:03 ` Gene Heskett
  2015-01-21 17:23 ` One Thousand Gnomes
  0 siblings, 2 replies; 8+ messages in thread
From: Gene Heskett @ 2015-01-19 16:45 UTC (permalink / raw)
  To: linux-ide

Greetings;

Amd Phenom, 8Gb of dram on an Asus M2N-SLI Deluxe board.  So old USB3 
isn't.

Ubuntu 10.04.4 LTS 32 bit server install here.  A recent experiment with a 
32 bit Wheezy (2.7) worked extremely well when I enabled it to install an 
amd64 kernel, fastest and smoothest this machine has ever worked.  
Unfortunately I destroyed it by installing a library firefox was 
complaining about the lack thereof, it pulled in about 20 other packages 
and destroyed what little KDE I had installed to be able to use kmail.

I have been reading up on man fstab, but it has not solved my problem of 
the boot waiting, sometimes for 30 seconds, for the drive to be mounted at 
/ to appear.  There is no disk activity during this wait period, and it 
does not always do it when booting a 32 bit PAE kernel.

But if I build an amd64 version of that kernel, it stops dead, no disk 
activity after announcing that the / device has not yet checked in.

But, after waiting a minute, I hit m to get what is marked as a root 
terminal, but which has no rights, I see that the directory contents of / 
are visible.

Fdisk complains that there are 3503 unallocated 512 byte sectors after 
partition 1 on the disk, but its been doing that for 3 or 4 years.  
Terrabyte disk so its not seriously effected unless it slows it somehow 
that I haven't noticed.

On wheezy, for as long as it worked, it worked a treat.

Suggested fix for the 64 bit boot stall? I am familiar with make xconfig.

Thanks all.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 64 bit kernel won't mount /
  2015-01-19 16:45 64 bit kernel won't mount / Gene Heskett
@ 2015-01-20 12:03 ` Gene Heskett
  2015-01-21 17:23 ` One Thousand Gnomes
  1 sibling, 0 replies; 8+ messages in thread
From: Gene Heskett @ 2015-01-20 12:03 UTC (permalink / raw)
  To: linux-ide

On Monday 19 January 2015 11:45:41 Gene Heskett did opine
And Gene did reply:
> Greetings;
> 
> Amd Phenom, 8Gb of dram on an Asus M2N-SLI Deluxe board.  So old USB3
> isn't.
> 
> Ubuntu 10.04.4 LTS 32 bit server install here.  A recent experiment
> with a 32 bit Wheezy (2.7) worked extremely well when I enabled it to
> install an amd64 kernel, fastest and smoothest this machine has ever
> worked. Unfortunately I destroyed it by installing a library firefox
> was complaining about the lack thereof, it pulled in about 20 other
> packages and destroyed what little KDE I had installed to be able to
> use kmail.
> 
> I have been reading up on man fstab, but it has not solved my problem
> of the boot waiting, sometimes for 30 seconds, for the drive to be
> mounted at / to appear.  There is no disk activity during this wait
> period, and it does not always do it when booting a 32 bit PAE kernel.
> 
> But if I build an amd64 version of that kernel, it stops dead, no disk
> activity after announcing that the / device has not yet checked in.
> 
> But, after waiting a minute, I hit m to get what is marked as a root
> terminal, but which has no rights, I see that the directory contents of
> / are visible.
> 
> Fdisk complains that there are 3503 unallocated 512 byte sectors after
> partition 1 on the disk, but its been doing that for 3 or 4 years.
> Terrabyte disk so its not seriously effected unless it slows it somehow
> that I haven't noticed.
> 
> On wheezy, for as long as it worked, it worked a treat.
> 
> Suggested fix for the 64 bit boot stall? I am familiar with make
> xconfig.
> 
> Thanks all.
> 
> Cheers, Gene Heskett

Ping?

Secondary problem, seems like a miss-match between partitioning tools.

2 of my 4 1Tb drives can do 4096 byte sectors.
fdisk complains noisily about the partitions I have setup on one of these 
disks not being starting sector aligned, yet when I did the partitioning 
with gparted, the align with "cylinders" was checked.

Do we have a partitioning tool that can actually sort this correctly on a 
4k sector disk?

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 64 bit kernel won't mount /
  2015-01-19 16:45 64 bit kernel won't mount / Gene Heskett
  2015-01-20 12:03 ` Gene Heskett
@ 2015-01-21 17:23 ` One Thousand Gnomes
  2015-01-21 19:21   ` Gene Heskett
  1 sibling, 1 reply; 8+ messages in thread
From: One Thousand Gnomes @ 2015-01-21 17:23 UTC (permalink / raw)
  To: Gene Heskett; +Cc: linux-ide

On Mon, 19 Jan 2015 11:45:41 -0500
Gene Heskett <gheskett@wdtv.com> wrote:

> Greetings;
> 
> Amd Phenom, 8Gb of dram on an Asus M2N-SLI Deluxe board.  So old USB3 
> isn't.
> 
> Ubuntu 10.04.4 LTS 32 bit server install here.  A recent experiment with a 

Then you want to ask Ubuntu lists, nobody here can remember that far back
8) or did you mean 14.04 ?

> I have been reading up on man fstab, but it has not solved my problem of 
> the boot waiting, sometimes for 30 seconds, for the drive to be mounted at 
> / to appear.  There is no disk activity during this wait period, and it 
> does not always do it when booting a 32 bit PAE kernel.

30 seconds is about the timeout for the case when there appears to be a
drive but probing it gets no results.

> Fdisk complains that there are 3503 unallocated 512 byte sectors after 
> partition 1 on the disk, but its been doing that for 3 or 4 years.  

Doesn't matter.

Alan

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 64 bit kernel won't mount /
  2015-01-21 17:23 ` One Thousand Gnomes
@ 2015-01-21 19:21   ` Gene Heskett
  2015-01-22 15:34     ` One Thousand Gnomes
  0 siblings, 1 reply; 8+ messages in thread
From: Gene Heskett @ 2015-01-21 19:21 UTC (permalink / raw)
  To: One Thousand Gnomes; +Cc: linux-ide

On Wednesday 21 January 2015 12:23:26 One Thousand Gnomes did opine
And Gene did reply:
> On Mon, 19 Jan 2015 11:45:41 -0500
> 
> Gene Heskett <gheskett@wdtv.com> wrote:
> > Greetings;
> > 
> > Amd Phenom, 8Gb of dram on an Asus M2N-SLI Deluxe board.  So old USB3
> > isn't.
> > 
> > Ubuntu 10.04.4 LTS 32 bit server install here.  A recent experiment
> > with a
> 
> Then you want to ask Ubuntu lists, nobody here can remember that far
> back 8) or did you mean 14.04 ?

Nope, stuck on the 10.04.4 release as yet as we haven't managed to 
successfully build an RTAI enabled kernel for wheezy or any of the other 
LTS distros like Mint 17.

We are running computer numerically controlled software, known as LinuxCNC 
on these machines as they demand an IRQ latency of less than 20 
microseconds when you are generating the step and dir pulses with 
software.  Even a 20% wobble in this timing destroys the stay locked 
torque of a stepper motor.

> > I have been reading up on man fstab, but it has not solved my problem
> > of the boot waiting, sometimes for 30 seconds, for the drive to be
> > mounted at / to appear.  There is no disk activity during this wait
> > period, and it does not always do it when booting a 32 bit PAE
> > kernel.
> 
> 30 seconds is about the timeout for the case when there appears to be a
> drive but probing it gets no results.

I've waited 10 minutes or more.  No biscuit.

I am convinced ATM that this boot stall is an artifact of the fact that 
none of the linux installers used, knows a thing about 4k/sector disks, 
and that somehow in my configuring a .config, I have crippled the kernels 
ability to deal with a miss-aligned disk partition, and none of the 
installers is smart enough to align its partitions.  The net results of 
course are 15M/sec write speeds on a disk that can do 120M/sec when it 
does work. But first, it has to boot.
 
> > Fdisk complains that there are 3503 unallocated 512 byte sectors
> > after partition 1 on the disk, but its been doing that for 3 or 4
> > years.
> 
> Doesn't matter.

I didn't think so.  But fdisk still complains about the miss-alignment if 
it exists. This disk is pure 512 byte sectors=no problem.

> Alan

Thanks Alan.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 64 bit kernel won't mount /
  2015-01-21 19:21   ` Gene Heskett
@ 2015-01-22 15:34     ` One Thousand Gnomes
  2015-01-23  5:06       ` Gene Heskett
  2015-01-25 21:18       ` Phillip Susi
  0 siblings, 2 replies; 8+ messages in thread
From: One Thousand Gnomes @ 2015-01-22 15:34 UTC (permalink / raw)
  To: Gene Heskett; +Cc: linux-ide

> I am convinced ATM that this boot stall is an artifact of the fact that 
> none of the linux installers used, knows a thing about 4k/sector disks, 
> and that somehow in my configuring a .config, I have crippled the kernels 
> ability to deal with a miss-aligned disk partition, and none of the 
> installers is smart enough to align its partitions.  The net results of 
> course are 15M/sec write speeds on a disk that can do 120M/sec when it 
> does work. But first, it has to boot.

Unlikely. Apart from fdisk the setup is basically invisible. The drive
reports a block size and an offset. The firmware offset is chosen so that
the chassic DOS alignments in fdisk happen to just fall nicely on 4K
boundaries for partition starts.

There is nothing special the OS does to deal with ATA/SATA 4K sectors.

Alan

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 64 bit kernel won't mount /
  2015-01-22 15:34     ` One Thousand Gnomes
@ 2015-01-23  5:06       ` Gene Heskett
  2015-01-25 21:18       ` Phillip Susi
  1 sibling, 0 replies; 8+ messages in thread
From: Gene Heskett @ 2015-01-23  5:06 UTC (permalink / raw)
  To: One Thousand Gnomes; +Cc: linux-ide

On Thursday 22 January 2015 10:34:58 One Thousand Gnomes did opine
And Gene did reply:
> > I am convinced ATM that this boot stall is an artifact of the fact
> > that none of the linux installers used, knows a thing about
> > 4k/sector disks, and that somehow in my configuring a .config, I
> > have crippled the kernels ability to deal with a miss-aligned disk
> > partition, and none of the installers is smart enough to align its
> > partitions.  The net results of course are 15M/sec write speeds on a
> > disk that can do 120M/sec when it does work. But first, it has to
> > boot.
> 
> Unlikely. Apart from fdisk the setup is basically invisible. The drive
> reports a block size and an offset. The firmware offset is chosen so
> that the chassic DOS alignments in fdisk happen to just fall nicely on
> 4K boundaries for partition starts.
> 
> There is nothing special the OS does to deal with ATA/SATA 4K sectors.
> 
> Alan

Good to know Alan, thanks. I'll turn my flashlight in a different 
direction then.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 64 bit kernel won't mount /
  2015-01-22 15:34     ` One Thousand Gnomes
  2015-01-23  5:06       ` Gene Heskett
@ 2015-01-25 21:18       ` Phillip Susi
  2015-01-26 21:38         ` One Thousand Gnomes
  1 sibling, 1 reply; 8+ messages in thread
From: Phillip Susi @ 2015-01-25 21:18 UTC (permalink / raw)
  To: One Thousand Gnomes, Gene Heskett; +Cc: linux-ide

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 01/22/2015 10:34 AM, One Thousand Gnomes wrote:
> Unlikely. Apart from fdisk the setup is basically invisible. The
> drive reports a block size and an offset. The firmware offset is
> chosen so that the chassic DOS alignments in fdisk happen to just
> fall nicely on 4K boundaries for partition starts.
> 
> There is nothing special the OS does to deal with ATA/SATA 4K
> sectors.

Incorrect: the kernel bogus/synthetic "geometry" is the maximum
allowed of 63 sectors per track, and the old dos default alignment for
the first partition on the disk places its start at sector 63, which
is not 4k aligned.  The special thing that partitioning tools have to
do is to align the partition start to a 4k boundary.  For several
years now, parted has defaulted to 1 MiB alignment, like Windows has
done, which gives a 4k alignment.  I don't recall if Ubuntu 10.04 is
old enough to predate this change.  You certainly do NOT want to use
the cylinder alignment option in gparted.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBCgAGBQJUxV2jAAoJENRVrw2cjl5RjZIH/ijuJw1bfOxqHDi5PsfOjZqi
yiH9wGiwJukiwTkfqXoR3hRLemP3WO7vMxf/Ub/+DhmLQR7F3iGlHwfDq/8wQzpQ
2MucBJDT0ARt/I9z/xhPK3bUVdj9ooSUJfHGklhyhijdceAi7M/HwYh9Hftx5Mrn
5qw0N0E6TLNLaNYraJEEqc2aATfXRFcfLrqI5pmRhoT+KCs6IFrggyj4F7uwiaNb
QmrvUPzdAN5jmbVxm+sActWdDG/UDxIXeqLXxJ+N/OwYd4iPh6QNlsPv0/U1R71W
i+ZEoNNH729N1JMQUN/qD7Ut4oNj2nqLzrsVh5K8Z5fRkIXYLIuUMgKn0KJJQDk=
=3PnL
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: 64 bit kernel won't mount /
  2015-01-25 21:18       ` Phillip Susi
@ 2015-01-26 21:38         ` One Thousand Gnomes
  0 siblings, 0 replies; 8+ messages in thread
From: One Thousand Gnomes @ 2015-01-26 21:38 UTC (permalink / raw)
  To: Phillip Susi; +Cc: Gene Heskett, linux-ide

On Sun, 25 Jan 2015 16:18:27 -0500
Phillip Susi <psusi@ubuntu.com> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
> 
> On 01/22/2015 10:34 AM, One Thousand Gnomes wrote:
> > Unlikely. Apart from fdisk the setup is basically invisible. The
> > drive reports a block size and an offset. The firmware offset is
> > chosen so that the chassic DOS alignments in fdisk happen to just
> > fall nicely on 4K boundaries for partition starts.
> > 
> > There is nothing special the OS does to deal with ATA/SATA 4K
> > sectors.
> 
> Incorrect: the kernel bogus/synthetic "geometry" is the maximum
> allowed of 63 sectors per track, and the old dos default alignment for
> the first partition on the disk places its start at sector 63, which
> is not 4k aligned.  The special thing that partitioning tools 

I guess if you count partitioning tools as the "OS" this is true, but by
the OS I meant "system call layer and below".

Alan

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-01-26 22:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-19 16:45 64 bit kernel won't mount / Gene Heskett
2015-01-20 12:03 ` Gene Heskett
2015-01-21 17:23 ` One Thousand Gnomes
2015-01-21 19:21   ` Gene Heskett
2015-01-22 15:34     ` One Thousand Gnomes
2015-01-23  5:06       ` Gene Heskett
2015-01-25 21:18       ` Phillip Susi
2015-01-26 21:38         ` One Thousand Gnomes

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.